Error compiling GCC 4.4.2
Hi!
I'm having an error trying to compile GCC 4.4.2 on RHEL4 64Bit. The configure runs fine but when i try to make it says: checking for suffix of object files... configure: error: in `/home/tra/gcc/gcc442_svn/obj/x86_64-unknown-linux-gnu/libgcc':My configure string looks like this: obj]# ../source/configure --with-gmp=/home/tra/experimental/gmp-4.2.4 --with-mpfr=/home/tra/experimental/mpfr-2.3.2 --prefix=/home/tra/gcc/gcc442_svn/bin --enable-languages=c,c++I've searched the error a lot and i'm not the only one with the error, some of the solution was to export LD_LIBRARY_PATH i tryed that without luck, my LD_LIBRARY_PATH is now: I have also tryed moving the gmp and mpfr libs into the source of my gcc. Any ideas? Thanks in advance! More details about the error: checking for x86_64-unknown-linux-gnu-gcc... /home/tra/gcc/gcc442_svn/obj/./gcc/xgcc -B/home/tra/gcc/gcc442_svn/obj/./gcc/ -B/home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/bin/ -B/home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/lib/ -isystem /home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/include -isystem /home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/sys-include checking for suffix of object files... configure: error: in `/home/tra/gcc/gcc442_svn/obj/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 `/home/tra/gcc/gcc442_svn/obj' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/home/tra/gcc/gcc442_svn/obj' make: *** [all] Error 2 x86_64-unknown-linux-gnu/libgcc/config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by GNU C Runtime Library configure 1.0, which was generated by GNU Autoconf 2.59. Invocation command line was $ /home/tra/gcc/gcc442_svn/source/libgcc/configure --cache-file=./config.cache --enable-multilib --with-gmp=/home/tra/experimental/gmp-4.2.4 --with-mpfr=/home/tra/experimental/mpfr-$ ## --------- ## ## Platform. ## ## --------- ## hostname = localhost uname -m = x86_64 uname -r = 2.6.9-78.0.22.ELsmp uname -s = Linux uname -v = #1 SMP Fri Apr 24 12:48:19 EDT 2009 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = x86_64 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/kerberos/sbin PATH: /usr/kerberos/bin PATH: /usr/local/bin PATH: /bin PATH: /usr/bin PATH: /usr/X11R6/bin PATH: /usr/local/firefox PATH: /usr/java/default/bin PATH: /usr/NX/bin PATH: /home/akmn/bin PATH: /usr/NX/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1199: creating cache ./config.cache configure:1388: checking for --enable-version-specific-runtime-libs configure:1403: result: no configure:1435: checking for a BSD-compatible install configure:1490: result: /usr/bin/install -c configure:1506: checking for gawk configure:1522: found /bin/gawk configure:1532: result: gawk configure:1555: checking build system type configure:1573: result: x86_64-unknown-linux-gnu configure:1581: checking host system type configure:1595: result: x86_64-unknown-linux-gnu configure:1654: checking for x86_64-unknown-linux-gnu-ar configure:1680: result: ar configure:1733: checking for x86_64-unknown-linux-gnu-lipo configure:1759: result: lipo configure:1813: checking for x86_64-unknown-linux-gnu-nm configure:1839: result: /home/tra/gcc/gcc442_svn/obj/./gcc/nm configure:1892: checking for x86_64-unknown-linux-gnu-ranlib configure:1918: result: ranlib configure:1972: checking for x86_64-unknown-linux-gnu-strip configure:1998: result: strip configure:2049: checking whether ln -s works configure:2053: result: yes configure:2070: checking for x86_64-unknown-linux-gnu-gcc configure:2096: result: /home/tra/gcc/gcc442_svn/obj/./gcc/xgcc -B/home/tra/gcc/gcc442_svn/obj/./gcc/ -B/home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/bin/ -B/home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/lib/ -isystem /home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/include -isystem /home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/sys-include configure:2380: checking for C compiler version configure:2383: /home/tra/gcc/gcc442_svn/obj/./gcc/xgcc -B/home/tra/gcc/gcc442_svn/obj/./gcc/ -B/home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/bin/ -B/home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/lib/ -isystem /home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/include -isystem /home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/sys-include --version </dev/null >&5 xgcc (GCC) 4.4.2 Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:2386: $? = 0 configure:2388: /home/tra/gcc/gcc442_svn/obj/./gcc/xgcc -B/home/tra/gcc/gcc442_svn/obj/./gcc/ -B/home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/bin/ -B/home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/lib/ -isystem /home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/include -isystem /home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/sys-include -v </dev/null >&5 Reading specs from /home/tra/gcc/gcc442_svn/obj/./gcc/specs Target: x86_64-unknown-linux-gnu Configured with: ../source/configure --with-gmp=/home/tra/experimental/gmp-4.2.4 --with-mpfr=/home/tra/experimental/mpfr-2.3.2 --prefix=/home/tra/gcc/gcc442_svn/bin --enable-languages=c,c++ Thread model: posix gcc version 4.4.2 (GCC) configure:2391: $? = 0 configure:2393: /home/tra/gcc/gcc442_svn/obj/./gcc/xgcc -B/home/tra/gcc/gcc442_svn/obj/./gcc/ -B/home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/bin/ -B/home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/lib/ -isystem /home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/include -isystem /home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/sys-include -V </dev/null >&5 xgcc: '-V' must come at the start of the command line configure:2396: $? = 1 configure:2415: /home/tra/gcc/gcc442_svn/obj/./gcc/xgcc -B/home/tra/gcc/gcc442_svn/obj/./gcc/ -B/home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/bin/ -B/home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/lib/ -isystem /home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/include -isystem /home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/sys-include -o conftest -g -O2 conftest.c >&5 /home/tra/gcc/gcc442_svn/obj/./gcc/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory configure:2418: $? = 1 configure:2590: checking for suffix of object files configure:2611: /home/tra/gcc/gcc442_svn/obj/./gcc/xgcc -B/home/tra/gcc/gcc442_svn/obj/./gcc/ -B/home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/bin/ -B/home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/lib/ -isystem /home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/include -isystem /home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/sys-include -c -g -O2 conftest.c >&5 /home/tra/gcc/gcc442_svn/obj/./gcc/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory configure:2614: $? = 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 "" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2627: error: in `/home/tra/gcc/gcc442_svn/obj/x86_64-unknown-linux-gnu/libgcc': configure:2630: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=x86_64-unknown-linux-gnu ac_cv_build_alias=x86_64-unknown-linux-gnu ac_cv_env_CC_set=set ac_cv_env_CC_value='/home/tra/gcc/gcc442_svn/obj/./gcc/xgcc -B/home/tra/gcc/gcc442_svn/obj/./gcc/ -B/home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/bin/ -B/home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/lib/ -isystem /home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/include -isystem /home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/sys-include' ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-g -O2 ' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value= ac_cv_env_build_alias_set=set ac_cv_env_build_alias_value=x86_64-unknown-linux-gnu ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=x86_64-unknown-linux-gnu ac_cv_env_target_alias_set=set ac_cv_env_target_alias_value=x86_64-unknown-linux-gnu ac_cv_host=x86_64-unknown-linux-gnu ac_cv_host_alias=x86_64-unknown-linux-gnu ac_cv_prog_AR=ar ac_cv_prog_AWK=gawk ac_cv_prog_CC='/home/tra/gcc/gcc442_svn/obj/./gcc/xgcc -B/home/tra/gcc/gcc442_svn/obj/./gcc/ -B/home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/bin/ -B/home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/lib/ -isystem /home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/include -isystem /home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/sys-include' ac_cv_prog_LIPO=lipo ac_cv_prog_NM=/home/tra/gcc/gcc442_svn/obj/./gcc/nm ac_cv_prog_RANLIB=ranlib ac_cv_prog_STRIP=strip ## ----------------- ## ## Output variables. ## ## ----------------- ## AR='ar' AWK='gawk' CC='/home/tra/gcc/gcc442_svn/obj/./gcc/xgcc -B/home/tra/gcc/gcc442_svn/obj/./gcc/ -B/home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/bin/ -B/home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/lib/ -isystem /home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/include -isystem /home/tra/gcc/gcc442_svn/bin/x86_64-unknown-linux-gnu/sys-include' CFLAGS='-g -O2 ' CPP='' CPPFLAGS='' DEFS='' ECHO_C='' ECHO_N='-n' ECHO_T='' EXEEXT='' INSTALL_DATA='/usr/bin/install -c -m 644' INSTALL_PROGRAM='/usr/bin/install -c' INSTALL_SCRIPT='/usr/bin/install -c' LDFLAGS='' LIBOBJS='' LIBS='' LIPO='lipo' LN_S='ln -s' LTLIBOBJS='' NM='/home/tra/gcc/gcc442_svn/obj/./gcc/nm' OBJEXT='' PACKAGE_BUGREPORT='' PACKAGE_NAME='GNU C Runtime Library' PACKAGE_STRING='GNU C Runtime Library 1.0' PACKAGE_TARNAME='libgcc' PACKAGE_VERSION='1.0' PATH_SEPARATOR=':' RANLIB='ranlib' SHELL='/bin/sh' STRIP='strip' ac_ct_AR='' ac_ct_CC='' ac_ct_LIPO='' ac_ct_NM='' ac_ct_RANLIB='' ac_ct_STRIP='' asm_hidden_op='' bindir='${exec_prefix}/bin' build='x86_64-unknown-linux-gnu' build_alias='x86_64-unknown-linux-gnu' build_cpu='x86_64' build_libsubdir='build-x86_64-unknown-linux-gnu' build_os='linux-gnu' build_subdir='build-x86_64-unknown-linux-gnu' build_vendor='unknown' datadir='${prefix}/share' decimal_float='' enable_decimal_float='' enable_shared='yes' exec_prefix='NONE' extra_parts='' fixed_point='' host='x86_64-unknown-linux-gnu' host_alias='x86_64-unknown-linux-gnu' host_cpu='x86_64' host_noncanonical='x86_64-unknown-linux-gnu' host_os='linux-gnu' host_subdir='.' host_vendor='unknown' includedir='${prefix}/include' infodir='${prefix}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' libgcc_topdir='../../../source/libgcc/..' localstatedir='${prefix}/var' mandir='${prefix}/man' oldincludedir='/usr/include' prefix='/home/tra/gcc/gcc442_svn/bin' program_transform_name='s,y,y,' sbindir='${exec_prefix}/sbin' set_have_cc_tls='' sharedstatedir='${prefix}/com' slibdir='$(libdir)' sysconfdir='${prefix}/etc' target_alias='x86_64-unknown-linux-gnu' target_subdir='x86_64-unknown-linux-gnu' tmake_file='' vis_hide='' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE_BUGREPORT "" #define PACKAGE_NAME "GNU C Runtime Library" #define PACKAGE_STRING "GNU C Runtime Library 1.0" #define PACKAGE_TARNAME "libgcc" #define PACKAGE_VERSION "1.0" configure: exit 1 |
Quote:
How did you build libmpfr? Are you sure you did a `make install'? Remember that in `--with-mpfr=<path-to-mpfr>', the `<path-to-mpfr>' should be the same as the argument to `--prefix' when you ran configure for mpfr. If that doesn't give you something to do to work towards a solution, try posting the output of running `locate libmpfr.so.1' (after running `updatedb', of course :p). John G |
Output of locate libmpfr.so.1 is:
/home/tra/development/temp/libs/libmpfr.so.1 /home/tra/development/temp/libs/libmpfr.so.1.1.0 /home/tra/development/temp/gcc4.4/build/lib/libmpfr.so.1 /home/tra/development/temp/gcc4.4/build/lib/libmpfr.so.1.1.2 /home/tra/Desktop/mpfr/mpfr-2.3.2/.libs/libmpfr.so.1 /home/tra/Desktop/mpfr/mpfr-2.3.2/.libs/libmpfr.so.1.1.2 /home/tra/libmpfr.so.1.1.0 /home/tra/experimental/mpfr-2.3.2/lib/libmpfr.so.1 /home/tra/experimental/mpfr-2.3.2/lib/libmpfr.so.1.1.2 /home/gcc/src/mpfr-2.3.1/.libs/libmpfr.so.1 /home/gcc/src/mpfr-2.3.1/.libs/libmpfr.so.1.1.1 /home/gcc/lib/libmpfr.so.1 /home/gcc/lib/libmpfr.so.1.1.1 The installation of libmpfr and gmp has been used before for compiling an older GCC. |
Quote:
John G |
The people who create / maintain gcc, recommend the LFS method
to build gcc : http://www.linuxfromscratch.org/lfs/view/6.5/ gcc, pass 1 : http://www.linuxfromscratch.org/lfs/...gcc-pass1.html gcc pass 2 : http://www.linuxfromscratch.org/lfs/...ter06/gcc.html If you do it this way, you will get a gcc, that is usable. ... And I guess, that's the whole idea about building a compiler ? A gcc-4.x will probably be a good idea for the build of 4.4.x : Install gcc4 with yum or up2date and get gcc4-4.1.2-44.EL4.x86_64.rpm The c++ compiler : gcc4-c++ ( -4.1.2-44.EL4.x86_64.rpm ) seems to be installed too, together with gcc4. .. And may be you don't have to build one, 4.1.2 is versatile. ..... Building 4..4.x : Suggest gcc-4.4.1 , probably easier. Version 4.4.2 will be in Fedora 13, due June - 2010. ..... ..... :) ... Good luck ! ..... |
All times are GMT -5. The time now is 05:38 PM. |