From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28775 invoked by alias); 28 Jul 2006 19:37:37 -0000 Received: (qmail 28664 invoked by uid 48); 28 Jul 2006 19:37:28 -0000 Date: Fri, 28 Jul 2006 19:37:00 -0000 Message-ID: <20060728193728.28663.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug bootstrap/28133] Cross-compile of GCC fails with "C compiler cannot create executables" error In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "spkelly at andrew dot cmu dot edu" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-07/txt/msg02198.txt.bz2 List-Id: ------- Comment #2 from spkelly at andrew dot cmu dot edu 2006-07-28 19:37 ------- (In reply to comment #1) > Actually this is a dup of bug 25035. > > *** This bug has been marked as a duplicate of 25035 *** > Actually, I'm getting the same list of errors when trying to build programs ~with~ an i686 to powerpc-eabi cross compiling gcc4.1.1, before and after applying the patch for 25035, and even after rebuilding everything with --disable-libssp. The following output and config.log are from an attempt to build newlib with the successfully-compiled powerpc-*-eabi-gcc (lexically different but functionally identical --host and --target specified to force the newlib configure into recognizing cross-compilation and allowing --with-headers), but the same output happens when attempting to build a 5-line simple arithmetic test app. Not to say this isn't a ~different~ already-known bug, but it doesn't seem to be the 25035 bug. Apologies if I've screwed up the commenting protocol, this is my first time using bugzilla so I don't know how much I can safely write/set/tweak. ---- creating cache ./config.cache checking host system type... powerpc-ibm-eabi checking target system type... powerpc-unknown-eabi checking build system type... i686-pc-linux-gnu checking for a BSD compatible install... /usr/local/bin/install -c checking whether ln works... yes checking whether ln -s works... yes checking for powerpc-ibm-eabi-gnatbind... no checking for gnatbind... no checking whether compiler driver understands Ada... no checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2 checking for correct version of gmp.h... no /scratch/spkelly/ppcbin/lib/gcc/powerpc-ibm-eabi/4.1.1/../../../../powerpc-ibm-eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 01800074 /scratch/spkelly/ppcbin/lib/gcc/powerpc-ibm-eabi/4.1.1/libgcc.a(eabi.o)(.text+0xc4): In function `__eabi': /scratch/spkelly/gcc-4.1.1/build/gcc/eabi.S:232: undefined reference to `__init' /scratch/spkelly/ppcbin/lib/gcc/powerpc-ibm-eabi/4.1.1/libgcc.a(eabi.o)(.got2+0x8):/scratch/spkelly/gcc-4.1.1/build/gcc/eabi.S:146: undefined reference to `__SDATA_START__' /scratch/spkelly/ppcbin/lib/gcc/powerpc-ibm-eabi/4.1.1/libgcc.a(eabi.o)(.got2+0xc):/scratch/spkelly/gcc-4.1.1/build/gcc/eabi.S:148: undefined reference to `__SBSS_END__' /scratch/spkelly/ppcbin/lib/gcc/powerpc-ibm-eabi/4.1.1/libgcc.a(eabi.o)(.got2+0x14):/scratch/spkelly/gcc-4.1.1/build/gcc/eabi.S:150: undefined reference to `__SDATA2_START__' /scratch/spkelly/ppcbin/lib/gcc/powerpc-ibm-eabi/4.1.1/libgcc.a(eabi.o)(.got2+0x18):/scratch/spkelly/gcc-4.1.1/build/gcc/eabi.S:151: undefined reference to `__SBSS2_END__' /scratch/spkelly/ppcbin/lib/gcc/powerpc-ibm-eabi/4.1.1/libgcc.a(eabi.o)(.got2+0x1c):/scratch/spkelly/gcc-4.1.1/build/gcc/eabi.S:152: undefined reference to `__GOT_START__' /scratch/spkelly/ppcbin/lib/gcc/powerpc-ibm-eabi/4.1.1/libgcc.a(eabi.o)(.got2+0x28):/scratch/spkelly/gcc-4.1.1/build/gcc/eabi.S:155: undefined reference to `__GOT_END__' /scratch/spkelly/ppcbin/lib/gcc/powerpc-ibm-eabi/4.1.1/libgcc.a(eabi.o)(.got2+0x2c):/scratch/spkelly/gcc-4.1.1/build/gcc/eabi.S:156: undefined reference to `__GOT2_START__' /scratch/spkelly/ppcbin/lib/gcc/powerpc-ibm-eabi/4.1.1/libgcc.a(eabi.o)(.got2+0x30):/scratch/spkelly/gcc-4.1.1/build/gcc/eabi.S:157: undefined reference to `__GOT2_END__' /scratch/spkelly/ppcbin/lib/gcc/powerpc-ibm-eabi/4.1.1/libgcc.a(eabi.o)(.got2+0x34):/scratch/spkelly/gcc-4.1.1/build/gcc/eabi.S:158: undefined reference to `__FIXUP_START__' /scratch/spkelly/ppcbin/lib/gcc/powerpc-ibm-eabi/4.1.1/libgcc.a(eabi.o)(.got2+0x38):/scratch/spkelly/gcc-4.1.1/build/gcc/eabi.S:159: undefined reference to `__FIXUP_END__' /scratch/spkelly/ppcbin/lib/gcc/powerpc-ibm-eabi/4.1.1/libgcc.a(eabi.o)(.got2+0x3c):/scratch/spkelly/gcc-4.1.1/build/gcc/eabi.S:163: undefined reference to `__CTOR_LIST__' /scratch/spkelly/ppcbin/lib/gcc/powerpc-ibm-eabi/4.1.1/libgcc.a(eabi.o)(.got2+0x40):/scratch/spkelly/gcc-4.1.1/build/gcc/eabi.S:164: undefined reference to `__CTOR_END__' /scratch/spkelly/ppcbin/lib/gcc/powerpc-ibm-eabi/4.1.1/libgcc.a(eabi.o)(.got2+0x44):/scratch/spkelly/gcc-4.1.1/build/gcc/eabi.S:165: undefined reference to `__DTOR_LIST__' /scratch/spkelly/ppcbin/lib/gcc/powerpc-ibm-eabi/4.1.1/libgcc.a(eabi.o)(.got2+0x48):/scratch/spkelly/gcc-4.1.1/build/gcc/eabi.S:166: undefined reference to `__DTOR_END__' /scratch/spkelly/ppcbin/lib/gcc/powerpc-ibm-eabi/4.1.1/libgcc.a(eabi.o)(.got2+0x4c):/scratch/spkelly/gcc-4.1.1/build/gcc/eabi.S:167: undefined reference to `__EXCEPT_START__' /scratch/spkelly/ppcbin/lib/gcc/powerpc-ibm-eabi/4.1.1/libgcc.a(eabi.o)(.got2+0x50):/scratch/spkelly/gcc-4.1.1/build/gcc/eabi.S:171: undefined reference to `__EXCEPT_END__' collect2: ld returned 1 exit status *** The command 'powerpc-ibm-eabi-gcc -o conftest -g -O2 conftest.c' failed. *** You must set the environment variable CC to a working compiler. --- This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:600: checking host system type configure:621: checking target system type configure:639: checking build system type configure:694: checking for a BSD compatible install configure:747: checking whether ln works configure:771: checking whether ln -s works configure:2080: checking for powerpc-ibm-eabi-gnatbind configure:2112: checking for gnatbind configure:2145: checking whether compiler driver understands Ada configure:2177: checking how to compare bootstrapped objects configure:2275: checking for correct version of gmp.h configure:2288: powerpc-ibm-eabi-gcc -c -g -O2 conftest.c 1>&5 configure:2278:17: error: gmp.h: No such file or directory configure: In function 'main': configure:2282: error: 'choke' undeclared (first use in this function) configure:2282: error: (Each undeclared identifier is reported only once configure:2282: error: for each function it appears in.) configure:2282: error: expected ';' before 'me' configure: failed program was: #line 2277 "configure" #include "confdefs.h" #include "gmp.h" int main() { #if __GNU_MP_VERSION < 3 choke me #endif ; return 0; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28133