This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building G.C.C 4.3.3 on Centos 5.5


On 12 March 2012 08:25, Moran Smith wrote:
> Hello,
>
> I'm trying to build gcc-4.3.3 (C, C++) on a CentOS 5.5 system (gcc 4.1.2).
> But I'm hitting an error I don't know how to deal correct.
>
> Configure:
>
> /worktable/gcc-4.3.3/configure --program-suffix=-4.3.3
> --enable-version-specific-runtime-libs --enable-languages=c,c++
> --disable-nls --with-mpfr=/usr/local
> --with-mpfr-include=/usr/local/include --with-mpfr-lib=/usr/local/lib

You don't need to use --with-mpfr-include and --with-mpfr-lib here,
because the --with-mpfr option is present and so the include dir will
automatically be /usr/local/include and the lib dir will automatically
by /usr/local/lib

> I get the following error during "make bootstrap":
>
> mkdir -p -- x86_64-unknown-linux-gnu/libgcc
> Checking multilib configuration for libgcc...
> Configuring stage 1 in x86_64-unknown-linux-gnu/libgcc
> configure: creating cache ./config.cache
> checking for --enable-version-specific-runtime-libs... yes
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for gawk... gawk
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> checking for x86_64-unknown-linux-gnu-ar... ar
> checking for x86_64-unknown-linux-gnu-lipo... lipo
> checking for x86_64-unknown-linux-gnu-nm... /worktable/gcc-4.3.3-objdir/./gcc/nm
> checking for x86_64-unknown-linux-gnu-ranlib... ranlib
> checking for x86_64-unknown-linux-gnu-strip... strip
> checking whether ln -s works... yes
> checking for x86_64-unknown-linux-gnu-gcc...
> /worktable/gcc-4.3.3-objdir/./gcc/xgcc
> -B/worktable/gcc-4.3.3-objdir/./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
> checking for suffix of object files... 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 `/worktable/gcc-4.3.3-objdir'
> make[1]: *** [stage1-bubble] Error 2
> make[1]: Leaving directory `/worktable/gcc-4.3.3-objdir'
> make: *** [bootstrap] Error 2
>
>
> config.log from x86_64-unknown-linux-gnu-gcc/libgcc:
>
> 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='/worktable/gcc-4.3.3/libgcc/..'
> localstatedir='${prefix}/var'
> mandir='${prefix}/man'
> oldincludedir='/usr/include'
> prefix='NONE'
> program_transform_name='s,$,-4.3.3,'
> sbindir='${exec_prefix}/sbin'
> set_have_cc_tls=''
> sharedstatedir='${prefix}/com'
> slibdir='$(libsubdir)'
> 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

You haven't found the relevant part of config.log that refers to the
"cannot compute suffix" error which terminates the process.

> Any suggestions?

Have you read http://gcc.gnu.org/wiki/FAQ#configure_suffix ?

The most likely explanation is that you need to run ldconfig or use
some other method such as setting LD_LIBRARY_PATH to ensure the
runtime linker can find the libraries in /usr/local/lib


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]