Trouble building GCC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I'm having trouble building GCC 4.5.0. I'm building it on a RHEL4 64-bit
system so have built several dependencies as well. Below is my configure
command:

../src/configure --prefix=/path/gcc-4.5.0 --with-mpc=/path/mpc-0.8.1
--with-mpfr=/path/mpfr-2.4.2 --with-gmp=/path/gmp-4.3.2 --disable-shared

Configure completes fine but the build does not using "make -j10":
  checking for x86_64-unknown-linux-gnu-gcc... /path/x86_64/./gcc/xgcc
-B/path/x86_64/./gcc/ -B/path/gcc-4.5.0/x86_64-unknown-linux-gnu/bin/
-B/path
  /gcc-4.5.0/x86_64-unknown-linux-gnu/lib/ -isystem
/path/gcc-4.5.0/x86_64-unknown-linux-gnu/include -isystem
/path/gcc-4.5.0/x86_64-unknown-linux-
  gnu/sys-include
  checking for suffix of object files... configure: error: in
`/path/x86_64/x86_64-unknown-linux-gnu/libgcc':
  configure: error: cannot compute suffix of object files: cannot compile
  See `config.log' for more details.
  make[2]: *** [configure-stage1-target-libgcc] Error 1
  make[2]: Leaving directory `/path/x86_64'
  make[1]: *** [stage1-bubble] Error 2
  make[1]: Leaving directory `/path/x86_64'
  make: *** [all] Error 2

The config.log file looks like this:
configure:3004: $? = 0
configure:2993: /path/x86_64/./gcc/xgcc -B/path/x86_64/./gcc/
-B/path/gcc-4.5.0/x86_64-unknown-linux-gnu/bin/
-B/path/gcc-4.5.0/x86_64-unknown-linux-gnu/lib/ -isystem
/path/gcc-4.5.0/x86_64-unknown-linux-gnu/include -isystem
/path/gcc-4.5.0/x86_64-unknown-linux-gnu/sys-include    -V >&5
xgcc: '-V' must come at the start of the command line
configure:3004: $? = 1
configure:2993: /path/x86_64/./gcc/xgcc -B/path/x86_64/./gcc/
-B/path/gcc-4.5.0/x86_64-unknown-linux-gnu/bin/
-B/path/gcc-4.5.0/x86_64-unknown-linux-gnu/lib/ -isystem
/path/gcc-4.5.0/x86_64-unknown-linux-gnu/include -isystem
/path/gcc-4.5.0/x86_64-unknown-linux-gnu/sys-include    -qversion >&5
xgcc: unrecognized option '-qversion'
xgcc: no input files
configure:3004: $? = 1
configure:3020: /path/x86_64/./gcc/xgcc -B/path/x86_64/./gcc/
-B/path/gcc-4.5.0/x86_64-unknown-linux-gnu/bin/
-B/path/gcc-4.5.0/x86_64-unknown-linux-gnu/lib/ -isystem
/path/gcc-4.5.0/x86_64-unknown-linux-gnu/include -isystem
/path/gcc-4.5.0/x86_64-unknown-linux-gnu/sys-include    -o conftest -g -O2
conftest.c  >&5
/path/x86_64/./gcc/cc1: error while loading shared libraries: libmpc.so.2:
cannot open shared object file: No such file or directory
configure:3023: $? = 1
configure:3211: checking for suffix of object files
configure:3233: /path/x86_64/./gcc/xgcc -B/path/x86_64/./gcc/
-B/path/gcc-4.5.0/x86_64-unknown-linux-gnu/bin/
-B/path/gcc-4.5.0/x86_64-unknown-linux-gnu/lib/ -isystem
/path/gcc-4.5.0/x86_64-unknown-linux-gnu/include -isystem
/path/gcc-4.5.0/x86_64-unknown-linux-gnu/sys-include    -c -g -O2
conftest.c >&5
/path/x86_64/./gcc/cc1: error while loading shared libraries: libmpc.so.2:
cannot open shared object file: No such file or directory
configure:3237: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/";
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }

What I don't understand is that libmpc.so.2 is in the provided --with-mpc
path yet configure isn't passing it in to the test program. The build passes
by the way if I add the lib directories of all those --with arguments to
LD_LIBRARY_PATH but then produced executables require the LD_LIBRARY_PATH to
continue to be set. I had this problem with GCC 4.4.x but not for earlier
versions.

Thanks,
Uri

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux