From mboxrd@z Thu Jan 1 00:00:00 1970 From: hsteinhaus@gmx.de To: gcc-gnats@gcc.gnu.org Subject: target/4024: gcc 3.0 arm-coff is unable to build executables, undefined symbols in libgcc2.c Date: Tue, 14 Aug 2001 16:16:00 -0000 Message-id: <20010814230723.11789.qmail@sourceware.cygnus.com> X-SW-Source: 2001-08/msg00405.html List-Id: >Number: 4024 >Category: target >Synopsis: gcc 3.0 arm-coff is unable to build executables, undefined symbols in libgcc2.c >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Aug 14 16:16:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: hsteinhaus@gmx.de >Release: gcc version 3.0 >Organization: >Environment: host: Linux 2.2.16, glibc 2.1.3 target: arm-coff, gcc 3.0 built using binutils 2.10.1 and gcc 2.95.2, newlib 1.9.0 >Description: I 've compiled a cross-gcc 3.0 for a arm-coff target. No errors have occured while compilation of gcc, but the new compiler is unable to create any executable, because it encounters undefined symbols in libgcc2.c: strong@darkstar:~ > cat test.c /* char __EH_FRAME_BEGIN__[]; */ main() {} strong@darkstar:~ > arm-coff-gcc -v -save-temps test.c Reading specs from /home/strong/lib/gcc-lib/arm-coff/3.0/specs Configured with: ../gcc-3.0/configure --target=arm-coff --prefix=/home/strong -v : (reconfigured) ../gcc-3.0/configure --target=arm-coff -with-newlib --prefix=/home/strong -v Thread model: single gcc version 3.0 /home/strong/lib/gcc-lib/arm-coff/3.0/cpp0 -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=0 -Acpu=arm -Amachine=arm -D__CHAR_UNSIGNED__ -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D__ARM_ARCH_3__ -D__APCS_32__ -D__ARMEL__ -D__semi__ -D__arm__ test.c test.i GNU CPP version 3.0 (cpplib) (ARM/coff) ignoring nonexistent directory "/home/strong/arm-coff/sys-include" #include "..." search starts here: #include <...> search starts here: /home/strong/lib/gcc-lib/arm-coff/3.0/include /home/strong/arm-coff/include End of search list. /home/strong/lib/gcc-lib/arm-coff/3.0/cc1 -fpreprocessed test.i -quiet -dumpbase test.c -version -o test.s GNU CPP version 3.0 (cpplib) (ARM/coff) GNU C version 3.0 (arm-coff) compiled by GNU C version 2.95.2 19991024 (release). /home/strong/lib/gcc-lib/arm-coff/3.0/../../../../arm-coff/bin/as -o test.o test.s /home/strong/lib/gcc-lib/arm-coff/3.0/collect2 -X /home/strong/lib/gcc-lib/arm-coff/3.0/../../../../arm-coff/lib/crt0.o -L/home/strong/lib/gcc-lib/arm-coff/3.0 -L/home/strong/lib/gcc-lib/arm-coff/3.0/../../../../arm-coff/lib test.o -lgcc -lc -lgcc /home/strong/lib/gcc-lib/arm-coff/3.0/libgcc.a(__main.o): In function `_do_global_dtors': /home/strong/src/build-gcc/gcc/../../gcc-3.0/gcc/libgcc2.c(.text+0x74): undefined reference to `__EH_FRAME_BEGIN__' /home/strong/lib/gcc-lib/arm-coff/3.0/libgcc.a(__main.o): In function `_do_global_ctors': /home/strong/src/build-gcc/gcc/../../gcc-3.0/gcc/libgcc2.c(.text+0x100): undefined reference to `__EH_FRAME_BEGIN__' collect2: ld returned 1 exit status >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: