Bug 45573 - --enable-build-with-cxx failures with ld: crtbegin.o: No such file: No such file or directory
Summary: --enable-build-with-cxx failures with ld: crtbegin.o: No such file: No such f...
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.6.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-07 02:27 UTC by Jack Howarth
Modified: 2012-01-28 05:28 UTC (History)
1 user (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build: x86_64-unknown-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jack Howarth 2010-09-07 02:27:14 UTC
When trying to bootstrap gcc trunk (r163445 or earlier to avoid PR45538) with --enable-build-with-cxx, the bootstrap fails at...

g++  -g -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H  -o cc1-dummy c-lang.o c-family/stub-objc.o attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o i386-c.o \
	  dummy-checksum.o main.o tree-browser.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a  -lcloog  -lppl_c -lppl -lgmpxx -L/usr/lib -L/usr/lib -L/usr/lib -lmpc -lmpfr -lgmp -rdynamic -ldl  -L../zlib -lz -lelf
ld: crtbegin.o: No such file: No such file or directory
make[3]: *** [cc1-dummy] Error 1

when bootstrapping with...

../gcc/configure --with-gmp=/usr --with-mpfr=/usr --with-mpc=/usr --prefix=/home/howarth/dist --enable-languages=c,c++ --enable-build-with-cxx

on x86_64 Fedora 10. This problem exists as far back as r161093. whereas before that commit the failure was...

g++ -c  -g -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I/usr/include -I/usr/include -I/usr/include  -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/bid -I../libdecnumber  -DCLOOG_PPL_BACKEND  -I/usr/include/libelf  insn-attrtab.c -o insn-attrtab.o
g++: error trying to exec 'cc1plus': execvp: No such file or directory
make[3]: *** [insn-attrtab.o] Error 1
Comment 1 Jack Howarth 2010-12-09 18:12:48 UTC
This problem no longer exists on x86_64 Fedora10 with gcc trunk at r167647, however building with...

../gcc/configure --with-gmp=/usr --with-mpfr=/usr --with-mpc=/usr --prefix=/home/howarth/dist --enable-languages=c,c++ --enable-build-with-cxx

also no longer results in cc1-dummy being built (whose linkage caused the previous bootstrap failure).
Comment 2 Andrew Pinski 2012-01-28 05:28:10 UTC
 --enable-build-with-cxx is no longer really needed as stage2/stage3 are built with C++ already and it works on most targets including GNU/Linux.