This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/12020] New: undefined reference in libgcc2.c to __do_global_ctors when testing C compiler
- From: "dhazeghi at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Aug 2003 19:54:41 -0000
- Subject: [Bug target/12020] New: undefined reference in libgcc2.c to __do_global_ctors when testing C compiler
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12020
Summary: undefined reference in libgcc2.c to __do_global_ctors
when testing C compiler
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Keywords: build
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dhazeghi at yahoo dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: d30v
Even after working around the problem of PR 12019, d30v C compiler test fails when building
libstdc++:
configure:2352: /home/dara/mainline/objdir/gcc/xgcc -B/home/dara/mainline/objdir/gcc/ -
nostdinc -B/home/dara/mainline/objdir/d30v/newlib/ -isystem /home/dara/mainline/objdir/
d30v/newlib/targ-include -isystem /home/dara/mainline/combined/newlib/libc/include -B/tmp/
/d30v/bin/ -B/tmp//d30v/lib/ -isystem /tmp//d30v/include -isystem /tmp//d30v/sys-include -
L/home/dara/mainline/objdir/ld -g -Os -Wa,-C -g -Os -Wa,-C conftest.c >&5
/home/dara/mainline/objdir/gcc/libgcc.a(__main.o)(.text+0x38): In function `__main':
/home/dara/mainline/objdir/gcc/../../combined/gcc/libgcc2.c:1701: undefined reference to
`__do_global_ctors'
collect2: ld returned 1 exit status
This is with mainline (using a combined tree), configuring: ../gcc/configure --target=d30v --
prefix=/tmp --enable-languages=c,c++,objc