public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/28133] New: Cross-compile of GCC fails with "C compiler cannot create executables" error
@ 2006-06-22 1:01 aweiner at lsil dot com
2006-06-28 21:16 ` [Bug bootstrap/28133] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: aweiner at lsil dot com @ 2006-06-22 1:01 UTC (permalink / raw)
To: gcc-bugs
config.log contents:
configure:2274: $? = 0
configure:2276: /cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/xgcc
-B/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/
-B/cygdrive/c/gcc_4.1.1_ppc_440/powerpc-440-eabi/bin/
-B/cygdrive/c/gcc_4.1.1_ppc_440/powerpc-440-eabi/lib/ -isystem
/cygdrive/c/gcc_4.1.1_ppc_440/powerpc-440-eabi/include -isystem
/cygdrive/c/gcc_4.1.1_ppc_440/powerpc-440-eabi/sys-include -v </dev/null >&5
Reading specs from /cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/specs
Target: powerpc-440-eabi
Configured with: ../gcc-4.1.1-src/configure --disable-shared
--prefix=/cygdrive/c/gcc_4.1.1_ppc_440 --target=powerpc-440-eabi --with-cpu=440
--with-newlib --enable-languages=c,c++
--with-headers=../newlib-1.14.0-src/newlib/libc/include
Thread model: single
gcc version 4.1.1
configure:2279: $? = 0
configure:2281: /cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/xgcc
-B/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/
-B/cygdrive/c/gcc_4.1.1_ppc_440/powerpc-440-eabi/bin/
-B/cygdrive/c/gcc_4.1.1_ppc_440/powerpc-440-eabi/lib/ -isystem
/cygdrive/c/gcc_4.1.1_ppc_440/powerpc-440-eabi/include -isystem
/cygdrive/c/gcc_4.1.1_ppc_440/powerpc-440-eabi/sys-include -V </dev/null >&5
xgcc: '-V' must come at the start of the command line
configure:2284: $? = 1
configure:2307: checking for C compiler default output file name
configure:2310: /cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/xgcc
-B/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/
-B/cygdrive/c/gcc_4.1.1_ppc_440/powerpc-440-eabi/bin/
-B/cygdrive/c/gcc_4.1.1_ppc_440/powerpc-440-eabi/lib/ -isystem
/cygdrive/c/gcc_4.1.1_ppc_440/powerpc-440-eabi/include -isystem
/cygdrive/c/gcc_4.1.1_ppc_440/powerpc-440-eabi/sys-include -O2 -g -O2
conftest.c >&5
/cygdrive/c/gcc_4.1.1_ppc_440/powerpc-440-eabi/bin/ld: warning: cannot find
entry symbol _start; defaulting to 01800074
/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/nof/libgcc.a(eabi.o): In
function `__eabi':
/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/gcc/eabi.S:232: undefined
reference to `__init'
/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/nof/libgcc.a(eabi.o):(.got2+0x8):
undefined reference to `__SDATA_START__'
/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/nof/libgcc.a(eabi.o):(.got2+0xc):
undefined reference to `__SBSS_END__'
/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/nof/libgcc.a(eabi.o):(.got2+0x14):
undefined reference to `__SDATA2_START__'
/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/nof/libgcc.a(eabi.o):(.got2+0x18):
undefined reference to `__SBSS2_END__'
/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/nof/libgcc.a(eabi.o):(.got2+0x1c):
undefined reference to `__GOT_START__'
/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/nof/libgcc.a(eabi.o):(.got2+0x28):
undefined reference to `__GOT_END__'
/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/nof/libgcc.a(eabi.o):(.got2+0x2c):
undefined reference to `__GOT2_START__'
/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/nof/libgcc.a(eabi.o):(.got2+0x30):
undefined reference to `__GOT2_END__'
/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/nof/libgcc.a(eabi.o):(.got2+0x34):
undefined reference to `__FIXUP_START__'
/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/nof/libgcc.a(eabi.o):(.got2+0x38):
undefined reference to `__FIXUP_END__'
/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/nof/libgcc.a(eabi.o):(.got2+0x3c):
undefined reference to `__CTOR_LIST__'
/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/nof/libgcc.a(eabi.o):(.got2+0x40):
undefined reference to `__CTOR_END__'
/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/nof/libgcc.a(eabi.o):(.got2+0x44):
undefined reference to `__DTOR_LIST__'
/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/nof/libgcc.a(eabi.o):(.got2+0x48):
undefined reference to `__DTOR_END__'
/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/nof/libgcc.a(eabi.o):(.got2+0x4c):
undefined reference to `__EXCEPT_START__'
/cygdrive/c/gcc_4.1.1_source/build-gcc-4.1.1-ppc/./gcc/nof/libgcc.a(eabi.o):(.got2+0x50):
undefined reference to `__EXCEPT_END__'
collect2: ld returned 1 exit status
configure:2313: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libssp"
| #define PACKAGE_TARNAME "libssp"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "libssp 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libssp"
| #define VERSION "1.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2352: error: C compiler cannot create executables
See `config.log' for more details.
--
Summary: Cross-compile of GCC fails with "C compiler cannot
create executables" error
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: aweiner at lsil dot com
GCC host triplet: i686-pc-cygwin
GCC target triplet: powerpc-440-eabi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28133
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug bootstrap/28133] Cross-compile of GCC fails with "C compiler cannot create executables" error
2006-06-22 1:01 [Bug bootstrap/28133] New: Cross-compile of GCC fails with "C compiler cannot create executables" error aweiner at lsil dot com
@ 2006-06-28 21:16 ` pinskia at gcc dot gnu dot org
2006-07-28 19:37 ` spkelly at andrew dot cmu dot edu
2006-07-31 14:51 ` spkelly at andrew dot cmu dot edu
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-28 21:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-06-28 21:16 -------
Actually this is a dup of bug 25035.
*** This bug has been marked as a duplicate of 25035 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28133
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug bootstrap/28133] Cross-compile of GCC fails with "C compiler cannot create executables" error
2006-06-22 1:01 [Bug bootstrap/28133] New: Cross-compile of GCC fails with "C compiler cannot create executables" error aweiner at lsil dot com
2006-06-28 21:16 ` [Bug bootstrap/28133] " pinskia at gcc dot gnu dot org
@ 2006-07-28 19:37 ` spkelly at andrew dot cmu dot edu
2006-07-31 14:51 ` spkelly at andrew dot cmu dot edu
2 siblings, 0 replies; 4+ messages in thread
From: spkelly at andrew dot cmu dot edu @ 2006-07-28 19:37 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug bootstrap/28133] Cross-compile of GCC fails with "C compiler cannot create executables" error
2006-06-22 1:01 [Bug bootstrap/28133] New: Cross-compile of GCC fails with "C compiler cannot create executables" error aweiner at lsil dot com
2006-06-28 21:16 ` [Bug bootstrap/28133] " pinskia at gcc dot gnu dot org
2006-07-28 19:37 ` spkelly at andrew dot cmu dot edu
@ 2006-07-31 14:51 ` spkelly at andrew dot cmu dot edu
2 siblings, 0 replies; 4+ messages in thread
From: spkelly at andrew dot cmu dot edu @ 2006-07-31 14:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from spkelly at andrew dot cmu dot edu 2006-07-31 14:51 -------
My bug has been further probed, wholely separated from 25035, and submitted
independently as http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28551
Don't bother investigating it as part of 25035 or 28133.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28133
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-07-31 14:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-22 1:01 [Bug bootstrap/28133] New: Cross-compile of GCC fails with "C compiler cannot create executables" error aweiner at lsil dot com
2006-06-28 21:16 ` [Bug bootstrap/28133] " pinskia at gcc dot gnu dot org
2006-07-28 19:37 ` spkelly at andrew dot cmu dot edu
2006-07-31 14:51 ` spkelly at andrew dot cmu dot edu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).