[Clfs-support] Error at Cross Compile GCC Final
lk
lksguard at 163.com
Mon Nov 23 03:16:44 PST 2009
Hello,
I meant to build the cross-compiler according to Chapter 5.12 but got an error when cross-compiling lingomp.
make[3]: Leaving directory `/home/LK/Download/build/src/gcc-4.4.2/build-gcc-final/arm-linux/libgcc'
make[2]: Leaving directory `/home/LK/Download/build/src/gcc-4.4.2/build-gcc-final/arm-linux/libgcc'
Checking multilib configuration for libgomp...
Configuring in arm-linux/libgomp
configure: loading cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for --enable-generated-files-in-srcdir... no
checking build system type... i386-cross-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-strip... /opt/crosstool/gcc-4.4.2-eglibc-2.10.1/arm-linux/bin/strip
checking for arm-linux-gcc... /home/LK/Download/build/src/gcc-4.4.2/build-gcc-final/./gcc/xgcc -B/home/LK/Download/build/src/gcc-4.4.2/build-gcc-final/./gcc/ -B/opt/crosstool/gcc-4.4.2-eglibc-2.10.1/arm-linux/bin/ -B/opt/crosstool/gcc-4.4.2-eglibc-2.10.1/arm-linux/lib/ -isystem /opt/crosstool/gcc-4.4.2-eglibc-2.10.1/arm-linux/include -isystem /opt/crosstool/gcc-4.4.2-eglibc-2.10.1/arm-linux/sys-include
checking for C compiler default output file name... configure: error: in `/home/LK/Download/build/src/gcc-4.4.2/build-gcc-final/arm-linux/libgomp':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[1]: *** [configure-target-libgomp] Error 1
make[1]: Leaving directory `/home/LK/Download/build/src/gcc-4.4.2/build-gcc-final'
make: *** [all] Error 2
so I looked into the config.log to check the output:
configure:2569: checking for C compiler default output file name
configure:2572: /home/LK/Download/build/src/gcc-4.4.2/build-gcc-final/./gcc/xgcc -B/home/LK/Download/build/src/gcc-4.4.2/build-gcc-final/./gcc/ -B/opt/crosstool/gcc-4.4.2-eglibc-2.10.1/arm-linux/bin/ -B/opt/crosstool/gcc-4.4.2-eglibc-2.10.1/arm-linux/lib/ -isystem /opt/crosstool/gcc-4.4.2-eglibc-2.10.1/arm-linux/include -isystem /opt/crosstool/gcc-4.4.2-eglibc-2.10.1/arm-linux/sys-include -g -O2 conftest.c >&5
/home/LK/Download/build/src/gcc-4.4.2/build-gcc-final/./gcc/cc1: error while loading shared libraries: /home/LK/Download/build/src/gcc-4.4.2/build-gcc-final/./gcc/libgcc_s.so.1: ELF file OS ABI invalid
configure:2575: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "GNU OpenMP Runtime Library"
| #define PACKAGE_TARNAME "libgomp"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU OpenMP Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libgomp"
| #define VERSION "1.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2613: error: in `/home/LK/Download/build/src/gcc-4.4.2/build-gcc-final/arm-linux/libgomp':
configure:2616: error: C compiler cannot create executables
See `config.log' for more details.
It seems that XGCC doesn't work, so I did a test to do the compiling manually, a.out is generated without issue,which make me confused.Have anyone met this before? What should I do next?
Hi Schumi Imor,
I also searched the history of the maillist and found you have got the same problem,Has it been solved?
B.R
Kan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20091123/2280012a/attachment.html>
More information about the Clfs-support
mailing list