<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE>BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>

<META content="MSHTML 6.00.6000.16939" name=GENERATOR></HEAD>
<BODY style="MARGIN: 10px"><FONT face=Verdana size=2>
<DIV>Hello,<BR></DIV>
<DIV>I meant  to build the cross-compiler according to Chapter 5.12 but got 
an error when cross-compiling lingomp.</DIV>
<DIV> </DIV>
<DIV>
<DIV><FONT 
color=#0000ff>make[3]: Leaving directory `/home/LK/Download/build/src/gcc-4.4.2/build-gcc-final/arm-linux/libgcc'</FONT></DIV>
<DIV><FONT 
color=#0000ff>make[2]: Leaving directory `/home/LK/Download/build/src/gcc-4.4.2/build-gcc-final/arm-linux/libgcc'</FONT></DIV>
<DIV><FONT 
color=#0000ff>Checking multilib configuration for libgomp...</FONT></DIV>
<DIV><FONT color=#0000ff>Configuring in arm-linux/libgomp</FONT></DIV>
<DIV><FONT 
color=#0000ff>configure: loading cache ./config.cache</FONT></DIV>
<DIV><FONT 
color=#0000ff>checking for --enable-version-specific-runtime-libs... no</FONT></DIV>
<DIV><FONT 
color=#0000ff>checking for --enable-generated-files-in-srcdir... no</FONT></DIV>
<DIV><FONT 
color=#0000ff>checking build system type... i386-cross-linux-gnu</FONT></DIV>
<DIV><FONT 
color=#0000ff>checking host system type... arm-unknown-linux-gnu</FONT></DIV>
<DIV><FONT 
color=#0000ff>checking target system type... arm-unknown-linux-gnu</FONT></DIV>
<DIV><FONT 
color=#0000ff>checking for a BSD-compatible install... /usr/bin/install -c</FONT></DIV>
<DIV><FONT 
color=#0000ff>checking whether build environment is sane... yes</FONT></DIV>
<DIV><FONT color=#0000ff>checking for gawk... gawk</FONT></DIV>
<DIV><FONT 
color=#0000ff>checking whether make sets $(MAKE)... yes</FONT></DIV>
<DIV><FONT 
color=#0000ff>checking for arm-linux-strip... /opt/crosstool/gcc-4.4.2-eglibc-2.10.1/arm-linux/bin/strip</FONT></DIV>
<DIV><FONT 
color=#0000ff>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</FONT></DIV>
<DIV><FONT 
color=#0000ff>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':</FONT></DIV>
<DIV><FONT 
color=#0000ff>configure: error: C compiler cannot create executables</FONT></DIV>
<DIV><FONT 
color=#0000ff>See `config.log' for more details.</FONT></DIV>
<DIV><FONT 
color=#0000ff>make[1]: *** [configure-target-libgomp] Error 1</FONT></DIV>
<DIV><FONT 
color=#0000ff>make[1]: Leaving directory `/home/LK/Download/build/src/gcc-4.4.2/build-gcc-final'</FONT></DIV>
<DIV><FONT 
color=#0000ff>make: *** [all] Error 2</FONT></DIV>
<DIV> </DIV>
<DIV>so I looked into the config.log to check the output:</DIV>
<DIV> </DIV>
<DIV>
<DIV><FONT 
color=#0000ff>configure:2569: checking for C compiler default output file name</FONT></DIV>
<DIV><FONT 
color=#0000ff>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</FONT></DIV>
<DIV><FONT 
color=#0000ff>/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</FONT></DIV>
<DIV><FONT color=#0000ff>configure:2575: $? = 1</FONT></DIV>
<DIV><FONT 
color=#0000ff>configure: failed program was:</FONT></DIV>
<DIV><FONT color=#0000ff>| /* confdefs.h.  */</FONT></DIV>
<DIV><FONT color=#0000ff>|</FONT></DIV>
<DIV><FONT 
color=#0000ff>| #define PACKAGE_NAME "GNU OpenMP Runtime Library"</FONT></DIV>
<DIV><FONT 
color=#0000ff>| #define PACKAGE_TARNAME "libgomp"</FONT></DIV>
<DIV><FONT 
color=#0000ff>| #define PACKAGE_VERSION "1.0"</FONT></DIV>
<DIV><FONT 
color=#0000ff>| #define PACKAGE_STRING "GNU OpenMP Runtime Library 1.0"</FONT></DIV>
<DIV><FONT 
color=#0000ff>| #define PACKAGE_BUGREPORT ""</FONT></DIV>
<DIV><FONT color=#0000ff>| #define PACKAGE "libgomp"</FONT></DIV>
<DIV><FONT color=#0000ff>| #define VERSION "1.0"</FONT></DIV>
<DIV><FONT 
color=#0000ff>| /* end confdefs.h.  */</FONT></DIV>
<DIV><FONT color=#0000ff>|</FONT></DIV>
<DIV><FONT color=#0000ff>| int</FONT></DIV>
<DIV><FONT color=#0000ff>| main ()</FONT></DIV>
<DIV><FONT color=#0000ff>| {</FONT></DIV>
<DIV><FONT color=#0000ff>|</FONT></DIV>
<DIV><FONT color=#0000ff>|   ;</FONT></DIV>
<DIV><FONT color=#0000ff>|   return 0;</FONT></DIV>
<DIV><FONT color=#0000ff>| }</FONT></DIV>
<DIV><FONT 
color=#0000ff>configure:2613: error: in `/home/LK/Download/build/src/gcc-4.4.2/build-gcc-final/arm-linux/libgomp':</FONT></DIV>
<DIV><FONT 
color=#0000ff>configure:2616: error: C compiler cannot create executables</FONT></DIV>
<DIV><FONT 
color=#0000ff>See `config.log' for more details.</FONT></DIV>
<DIV> </DIV>
<DIV>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?</DIV>
<DIV> </DIV>
<DIV>Hi Schumi Imor,</DIV>
<DIV>I also searched the history of the maillist and found you have got the same 
problem,Has it been solved?</DIV>
<DIV> </DIV>
<DIV>B.R</DIV>
<DIV>Kan</DIV></DIV></DIV></FONT></BODY></HTML>