This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
building gcc 4.2
- From: "Bob Yu" <tocalert at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 20 Nov 2007 11:32:32 -0600
- Subject: building gcc 4.2
Hi, there
I am trying to install gcc 4.2 in a Xeon. During make, it stops at the
following error mesg:
checking for getrusage... configure: error: Link tests are not allowed
after GCC_NO_EXECUTABLES.
make[1]: *** [configure-target-libgfortran] Error 1
make[1]: Leaving directory `/u/ac/haibo/sys/gcc'
make: *** [all] Error 2
I checked the config.log
Here is the error mesg:
configure:10293: /u/ac/haibo/sys/gcc/./gcc/xgcc
-B/u/ac/haibo/sys/gcc/./gcc/
-B/u/ac/haibo/sys/x86_64-unknown-linux-gnu/bin/
-B/u/ac/haibo/sys/x86_64-unknown-linux-gnu/lib/ -isystem
/u/ac/haibo/sys/x86_64-unknown-linux-gnu/include -isystem
/u/ac/haibo/sys/x86_64-unknown-linux-gnu/sys-include -o conftest
-std=gnu99 -O2 -g -O2 conftest.c >&5
/tmp/ccqY0GIK.o(.text+0x9): In function `main':
/u/ac/haibo/sys/gcc/x86_64-unknown-linux-gnu/libgfortran/conftest.c:106:
undefined reference to `setmode'
/tmp/ccqY0GIK.o(.data+0x0): undefined reference to `setmode'
collect2: ld returned 1 exit status
configure:10299: $? = 1
Could you please suggest me how to solve this problem?
Thanks
Haibo