This is the mail archive of the
mailing list for the GCC project.
Re: Trouble building gcc on debian testing
On Fri, Jul 08, 2011 at 02:30:02PM +0200, Pedro Larroy wrote:
> In which reference platform is it known to build without so much hassle?
I just compiled (also the newest svn 4.7.0 20110708) on a "Debian stable"
-- no hassle at all. I did NOT have to copy crt1.o or crti.o
I just configured as
../gcc_trunk/configure --prefix=/opt/gcc_4_7 --program-suffix=-4.7 --enable-languages=c,c++,fortran
and then run "make" without any adjustments or problems.
"make -k check" reports however a few errors as usual :-)
gfortran: 1 unexpected failure
g++: 6 unexpected failures
gcc: 40 unexpected failures, 35 unexpected successes
libmudflap: 1 unexpected failures
> configure:3666: checking for C compiler default output file name
> configure:3688: /home/piotr/devel/gcc_obj/./gcc/xgcc -B/home/piotr/devel/gcc_obj/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -g -O2 conftest.c >&5
> /usr/bin/ld: cannot find crt1.o: No such file or directory
> /usr/bin/ld: cannot find crti.o: No such file or directory
> collect2: error: ld returned 1 exit status
For me, configure line 3688 reads:
configure:3688: /home/afreyn/gcc_build/./gcc/xgcc -B/home/afreyn/gcc_build/./gcc/ -B/opt/gcc_4_7/x86_64-unknown-linux-gnu/bin/ -B/opt/gcc_4_7/x86_64-unknown-linux-gnu/lib/ -isystem /opt/gcc_4_7/x86_64-unknown-linux-gnu/include -isystem /opt/gcc_4_7/x86_64-unknown-linux-gnu/sys-include -g -O2 conftest.c >&5
This command run without problems.
The directory /opt/gcc_4_7/ does NOT exists right now on my machine, so for
sure the compiler can't find anything there -- gcc succeeds to find
crt1.o and crti.o somehow ;-)
Just for completeness: According to "dpkg", those two files are
installed by the packages libc6-dev and libc6-dev-i386 into /usr/lib/
and /usr/lib32/. Probably you have also installed those two packages?