Host upgraded to Fedora14, downloaded crosstool-ng-1.10.0, compiled to arm-cortex_a8 compilation steps: 1. Directly copy crosstool-ng-1.10.0/samples/arm-cortex_a8-linux-gnueabi/crosstool. config to the target directory. config2. Execute ct-ngmenuconfig to view and verify the compilation options without any
Host upgraded to Fedora 14, downloaded crosstool-ng-1.10.0, compiled to arm-cortex_a8
Compilation steps:
1. Directly copy the crosstool-ng-1.10.0/samples/arm-cortex_a8-linux-gnueabi/crosstool. config to the. config in the target directory.
2. Run ct-ng menuconfig to view and verify the compilation options without any modification.
3. Execute ct-ng build. If you want to speed up compilation and the host has multiple cores, you can use the option build. X indicates the number of threads used. Generally, it is enough to be twice the host core.
The compilation failed as scheduled and the following error occurred:
- [INFO] ============================================ ======================================
- [INFO] InstallingStaticCore C compiler
- [EXTRA] processing ingStaticCore C compiler
- [EXTRA] BuildingStaticCore C compiler
- [ERROR] make [2]: *** [cc1-dummy] Error 1
- [ERROR] make [1]: *** [all-gcc] Error 2
- [ERROR] Build failedInStep'Installing static core C compiler'
- [ERROR] Error happenedIn '/Home/sam/devel/devkit8000/crosstool-ng/crosstool-ng-1.10.0/scripts/functions' InFunction'Ct _ doexeclog'(Line unknown, sorry)
- [ERROR] called from'/Home/sam/devel/devkit8000/crosstool-ng/crosstool-ng-1.10.0/scripts/build/cc/gcc. Sh'At line #320InFunction'Do _ cc_core'
- [ERROR] called from'/Home/sam/devel/devkit8000/crosstool-ng/crosstool-ng-1.10.0/scripts/build/cc/gcc. Sh'At line #52InFunction'Do _ cc_core_pass_1'
- [ERROR] called from'/Home/sam/devel/devkit8000/crosstool-ng/crosstool-ng-1.10.0/scripts/crosstool-NG.sh'At line #606InFunction'Main'
- [ERROR] Look'/Home/sam/x-tools/arm-cortex_a8-linux-gnueabi/build. Log' ForMore info onThisError.
- [ERROR] (elapsed: 10: 11. 57)
- [10: 11]/make: *** [build] Error 2
An error occurred when compiling static GCC for the first time. Follow the error prompt to view the compilation log build. log and find the following error message:
- [ALL]/usr/bin/ld: cannot find-lstdc ++
- [ALL] collect2: ld returned 1 exit status
- [ERROR] make [2]: *** [cc1-dummy] Error 1
It seems that the link program cannot find libstdc ++. Start ct-ng menuconfig and enter the C Compiler menu. You can see
[*] Link libstdc ++ statically into the gcc binary
GCC is statically linked during compilation, that is, libstdc ++ is not generated, so libstdc ++ cannot be connected. Therefore, www.linuxidc.com removes this option and compiles it again.
The following error occurs:
- [INFO] Installing C library headers
- [EXTRA] processing ing C library
- [EXTRA] Installing C library headers
- [ERROR] make [3]: *** [manual/install-headers] Error 2
- [ERROR] make [2]: *** [install-headers] Error 2
- [ERROR] Build failedInStep'Installing C library headers'
- [ERROR] Error happenedIn '/Home/sam/devel/devkit8000/crosstool-ng/crosstool-ng-1.9.3/scripts/functions' InFunction'Ct _ doexeclog'(Line unknown, sorry)
- [ERROR] called from'/Home/sam/devel/devkit8000/crosstool-ng/crosstool-ng-1.9.3/scripts/build/libc/glibc. Sh'At line #175InFunction'Do _ libc_headers'
- [ERROR] called from'/Home/sam/devel/devkit8000/crosstool-ng/crosstool-ng-1.9.3/scripts/crosstool-NG.sh'At line #597InFunction'Main'
- [ERROR] Look'/Home/sam/x-tools/arm-cortex_a8-linux-gnueabi/build. Log' ForMore info onThisError.
- [ERROR] (elapsed: 38: 55.31)
- [38: 56]/make [1]: *** [build] Error 2
- Make: *** [build.4] Error 2
Visible errors occur when GLIBC is compiled. Open build. log and you can see the following error message:
- [ALL] make [4]: Entering directory '/home/sam/devel/devkit8000/crosstool-ng/arm-cortex_a8/. build/src/glibc-2.9/Manual'
- [ALL] Makefile: 240: *** mixedImplicitAnd normal rules. Stop.
It turns out that the make statement used by the new Fedora 14 does not support the Mixed expression of the original display rules and implicit rules. Later, we checked that the make version was upgraded from fedora13 to fedora14, upgraded from 3.81 to 3.82, but this minor upgrade removed support for mixed use of Display rules and implicit rules in makefile.
This is really a tangled problem. www.linuxidc.com has a lot of software that is used to the mixed support of make for the two rules. If the rule is removed, glibc is solved, similar problems may occur in compilation of other software. It seems that you have to downgrade the make version.
In order to pass the compilation, first reduce make to version 3.81 used by Fedora13.
Yum -- releasever = 13 downgrade make
Re-compile and pass.
Experience:
If compilation fails, but build. log does not see any obvious error information at the end, which may be caused by parallel compilation. Records of parallel compilation in log may also be disordered, making the error information inaccurate. At this time, as long as parallel compilation is not used, the error information will be accurately recorded in the log.