"ld returned 1 exit status" error while building LATEST-4.7

Nathan Ridge zeratul976@hotmail.com
Sun Nov 6 02:18:00 GMT 2011


I am trying to build the current LATEST-4.7 snapshot (20111105),
and I am getting the following error:

gcc   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H  -o lto1 \
                lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o main.o tree-browser.o libbackend.a libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a   -lmpc -lmpfr -lgmp -rdynamic -ldl  -L../zlib -lz libcommon.a ../libcpp/libcpp.a   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
collect2: ld returned 1 exit status
make[3]: *** [lto1] Error 1
make[3]: Leaving directory `/home/nr/Programs/gcc/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/home/nr/Programs/gcc/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/nr/Programs/gcc/build'
make: *** [bootstrap-lean] Error 2
nr@dali:~/Programs/gcc/build$ cd ..
nr@dali:~/Programs/gcc$ ls

Since there is no error message, I don't even know how to investigate
the issue further...

I am configuring with:

../src/configure --program-suffix=-4.7 --enable-languages=c,c++ --prefix=/home/nr/Programs/gcc/dest-20111105/

and building with:

make bootstrap-lean

I have successfully built older snapshots (from October, IIRC) on the same machine
with the same commands.

Any idea about what might be going on?

Thanks,
Nate
 		 	   		  



More information about the Gcc-help mailing list