[Bug bootstrap/12019] New: check for working C compiler on newlib targets fails due to missing crt0.o
dhazeghi at yahoo dot com
gcc-bugzilla@gcc.gnu.org
Thu Aug 21 19:36:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12019
Summary: check for working C compiler on newlib targets fails due
to missing crt0.o
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Keywords: build
Severity: normal
Priority: P2
Component: bootstrap
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, fr30-elf
Using gcc mainline to build for some (most?) newlib targets fails when building libstdc++ due to:
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** [configure-target-libstdc++-v3] Error 1
Looking at config.log, we see:
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/collect-ld: cannot open crt0.o: No such file or directory
Of course, crt0.o does exist, and has been built. To fix this, all we need to do is add -B$OBJDIR/
$TARGET/libgloss/$TARGET to the above command line, and gcc will find both crt0.o and libsim.a
(which is also needed).
Not sure which autoconf variables need hacking though...
More information about the Gcc-bugs
mailing list