Hello, I'm building gcc-4.9.2 on Solaris 5.10 SPARC following the attached recipe. This fails when building the compiler (and the used libs gmp/mpfr/mpc) as 32-bit objects. And fails also for 64bit. Here is the error msg and the recipe; the config.log is attached as well. $ gmake ... gmake[3]: [doc/gpl.7] Error 1 (ignored) cp doc/gcc.1 doc/g++.1 rm gcc.pod gmake[3]: Leaving directory `/export/home/guru/OpenSource/gcc-4.9.2-obj/gcc' mkdir sparc-sun-solaris2.10/libgcc Checking multilib configuration for libgcc... Configuring stage 1 in sparc-sun-solaris2.10/libgcc configure: creating cache ./config.cache checking build system type... sparc-sun-solaris2.10 checking host system type... sparc-sun-solaris2.10 checking for --enable-version-specific-runtime-libs... no checking for a BSD-compatible install... /usr/local/bin/install -c checking for gawk... nawk checking for sparc-sun-solaris2.10-ar... ar checking for sparc-sun-solaris2.10-lipo... lipo checking for sparc-sun-solaris2.10-nm... /export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/nm checking for sparc-sun-solaris2.10-ranlib... true checking for sparc-sun-solaris2.10-strip... strip checking whether ln -s works... yes checking for sparc-sun-solaris2.10-gcc... /export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/xgcc -B/export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/bin/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/lib/ -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/include -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/sys-include checking for suffix of object files... configure: error: in `/export/home/guru/OpenSource/gcc-4.9.2-obj/sparc-sun-solaris2.10/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. gmake[2]: *** [configure-stage1-target-libgcc] Error 1 gmake[2]: Leaving directory `/export/home/guru/OpenSource/gcc-4.9.2-obj' gmake[1]: *** [stage1-bubble] Error 2 gmake[1]: Leaving directory `/export/home/guru/OpenSource/gcc-4.9.2-obj' gmake: *** [all] Error 2 The log file ./sparc-sun-solaris2.10/libgcc/config.log is attached; recipe for making gcc-4.9.2 on SPARC $ uname -a SunOS srap06dsR1 5.10 Generic_150400-35 sun4u sparc SUNW,SPARC-Enterprise $ gcc -v Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77 Thread model: posix gcc version 3.4.6 see also: https://gcc.gnu.org/install/prerequisites.html gmp: $ wget http://ftp.gnu.org/gnu/gmp/gmp-6.0.0a.tar.bz2 for ar(1): $ export PATH=$PATH:/usr/ccs/bin/sparcv9 $ bzip2 -dc gmp-6.0.0a.tar.bz2 | tar xf - $ cd gmp-6.0.0 $ ABI=32 ./configure --prefix=/usr/local/gmp-600 $ gmake $ sudo gmake install $ cd .. $ rm -r gmp-6.0.0 mpfr: $ wget http://www.mpfr.org/mpfr-current/mpfr-3.1.3.tar.gz $ gtar xzf mpfr-3.1.3.tar.gz $ cd mpfr-3.1.3 $ ABI=32 ./configure --prefix=/usr/local/mpfr-313 --with-gmp=/usr/local/gmp-600 $ gmake $ sudo gmake install $ cd .. $ rm -r mpfr-3.1.3 mpc: $ wget https://ftp.gnu.org/gnu/mpc/mpc-1.0.2.tar.gz $ gtar xzf mpc-1.0.2.tar.gz $ cd mpc-1.0.2 $ ABI=32 ./configure --prefix=/usr/local/mpc-102 --with-gmp=/usr/local/gmp-600 --with-mpfr=/usr/local/mpfr-313 $ gmake $ sudo gmake install $ cd .. $ rm -r mpc-1.0.2 gcc: gcc should be build in its own build dir, for example 'gcc-4.9.2-obj' and not in 'gcc-4.9.2'; see also: https://gcc.gnu.org/install/configure.html $ wget ftp://gd.tuwien.ac.at/gnu/gcc/releases/gcc-4.9.2/gcc-4.9.2.tar.gz $ gtar xzf gcc-4.9.2.tar.gz $ mkdir gcc-4.9.2-obj $ cd gcc-4.9.2-obj $ LD_LIBRARY_PATH=/usr/local/mpc-102/lib:/usr/local/mpfr-313/lib:/usr/local/gmp-600/lib:/usr/local/lib export LD_LIBRARY_PATH $ ../gcc-4.9.2/configure \ --prefix=/usr/local/gcc-492 \ --with-gmp=/usr/local/gmp-600 \ --with-mpfr=/usr/local/mpfr-313 \ --with-mpc=/usr/local/mpc-102 \ --without-isl \ --without-cloog $ gmake # sudo su $ LD_LIBRARY_PATH=/usr/local/mpc-102/lib:/usr/local/mpfr-313/lib:/usr/local/gmp-600/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH # gmake install gcc as 64-bit application: build gmp/mpfr/mpc with ABI=64 ./configure ... ---- $ CC="gcc -m64" CXX="g++ -m64" ../gcc-4.9.2/configure \ --prefix=/usr/local/gcc-492 \ --with-gmp=/usr/local/gmp-600 \ --with-mpfr=/usr/local/mpfr-313 \ --with-mpc=/usr/local/mpc-102 \ --without-isl \ --without-cloog $ gmake failed to with same problem; Thanks in advance matthias -- Matthias Apitz, ✉ guru@xxxxxxxxxxx, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045
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.64. Invocation command line was $ /export/home/guru/OpenSource/gcc-4.9.2/libgcc/configure --cache-file=./config.cache --enable-multilib --prefix=/usr/local/gcc-492 --with-gmp=/usr/local/gmp-600 --with-mpfr=/usr/local/mpfr-313 --with-mpc=/usr/local/mpc-102 --without-isl --without-cloog --enable-languages=c,c++,fortran,java,lto,objc --program-transform-name=s,y,y, --disable-option-checking --with-target-subdir=sparc-sun-solaris2.10 --build=sparc-sun-solaris2.10 --host=sparc-sun-solaris2.10 --target=sparc-sun-solaris2.10 --srcdir=../../../gcc-4.9.2/libgcc --disable-intermodule --enable-checking=yes,types --disable-coverage --enable-languages=c,c++,lto --disable-build-format-warnings ## --------- ## ## Platform. ## ## --------- ## hostname = srap06dsR1 uname -m = sun4u uname -r = 5.10 uname -s = SunOS uname -v = Generic_150400-35 /usr/bin/uname -p = sparc /bin/uname -X = System = SunOS Node = srap06dsR1 Release = 5.10 KernelID = Generic_150400-35 Machine = sun4u BusType = <unknown> Serial = <unknown> Users = <unknown> OEM# = 0 Origin# = 1 NumCPU = 16 /bin/arch = sun4 /usr/bin/arch -k = sun4u /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/bin PATH: /bin PATH: /usr/local/bin PATH: /usr/sfw/bin PATH: /usr/ccs/bin/sparcv9 ## ----------- ## ## Core tests. ## ## ----------- ## configure:1980: creating cache ./config.cache configure:2163: checking build system type configure:2177: result: sparc-sun-solaris2.10 configure:2197: checking host system type configure:2210: result: sparc-sun-solaris2.10 configure:2307: checking for --enable-version-specific-runtime-libs configure:2320: result: no configure:2368: checking for a BSD-compatible install configure:2436: result: /usr/local/bin/install -c configure:2452: checking for gawk configure:2479: result: nawk configure:2579: checking for sparc-sun-solaris2.10-ar configure:2606: result: ar configure:2671: checking for sparc-sun-solaris2.10-lipo configure:2698: result: lipo configure:2763: checking for sparc-sun-solaris2.10-nm configure:2790: result: /export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/nm configure:2855: checking for sparc-sun-solaris2.10-ranlib configure:2882: result: true configure:2947: checking for sparc-sun-solaris2.10-strip configure:2974: result: strip configure:3036: checking whether ln -s works configure:3040: result: yes configure:3057: checking for sparc-sun-solaris2.10-gcc configure:3084: result: /export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/xgcc -B/export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/bin/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/lib/ -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/include -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/sys-include configure:3353: checking for C compiler version configure:3362: /export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/xgcc -B/export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/bin/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/lib/ -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/include -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/sys-include --version >&5 xgcc (GCC) 4.9.2 Copyright (C) 2014 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:3373: $? = 0 configure:3362: /export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/xgcc -B/export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/bin/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/lib/ -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/include -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/sys-include -v >&5 Reading specs from /export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/specs COLLECT_GCC=/export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/xgcc COLLECT_LTO_WRAPPER=/export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/lto-wrapper Target: sparc-sun-solaris2.10 Configured with: ../gcc-4.9.2/configure --prefix=/usr/local/gcc-492 --with-gmp=/usr/local/gmp-600 --with-mpfr=/usr/local/mpfr-313 --with-mpc=/usr/local/mpc-102 --without-isl --without-cloog Thread model: posix gcc version 4.9.2 (GCC) configure:3373: $? = 0 configure:3362: /export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/xgcc -B/export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/bin/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/lib/ -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/include -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/sys-include -V >&5 xgcc: error: unrecognized command line option '-V' xgcc: fatal error: no input files compilation terminated. configure:3373: $? = 1 configure:3362: /export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/xgcc -B/export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/bin/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/lib/ -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/include -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/sys-include -qversion >&5 xgcc: error: unrecognized command line option '-qversion' xgcc: fatal error: no input files compilation terminated. configure:3373: $? = 1 configure:3389: /export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/xgcc -B/export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/bin/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/lib/ -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/include -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/sys-include -o conftest -g -O2 conftest.c >&5 /export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/as: -Qy: not found configure:3392: $? = 1 configure:3580: checking for suffix of object files configure:3602: /export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/xgcc -B/export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/bin/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/lib/ -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/include -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/sys-include -c -g -O2 conftest.c >&5 /export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/as: -Qy: not found configure:3606: $? = 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; | } configure:3620: error: in `/export/home/guru/OpenSource/gcc-4.9.2-obj/sparc-sun-solaris2.10/libgcc': configure:3623: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=sparc-sun-solaris2.10 ac_cv_env_CC_set=set ac_cv_env_CC_value='/export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/xgcc -B/export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/bin/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/lib/ -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/include -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/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_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set=set ac_cv_env_build_alias_value=sparc-sun-solaris2.10 ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=sparc-sun-solaris2.10 ac_cv_env_target_alias_set=set ac_cv_env_target_alias_value=sparc-sun-solaris2.10 ac_cv_host=sparc-sun-solaris2.10 ac_cv_prog_AR=ar ac_cv_prog_AWK=nawk ac_cv_prog_CC='/export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/xgcc -B/export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/bin/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/lib/ -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/include -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/sys-include ' ac_cv_prog_LIPO=lipo ac_cv_prog_NM=/export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/nm ac_cv_prog_RANLIB=true ac_cv_prog_STRIP=strip ## ----------------- ## ## Output variables. ## ## ----------------- ## AR='ar' AWK='nawk' CC='/export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/xgcc -B/export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/bin/ -B/usr/local/gcc-492/sparc-sun-solaris2.10/lib/ -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/include -isystem /usr/local/gcc-492/sparc-sun-solaris2.10/sys-include ' CFLAGS='-g -O2' CPP='' CPPFLAGS='' DEFS='' ECHO_C='' ECHO_N='-n' ECHO_T='' EXEEXT='' INSTALL_DATA='/usr/local/bin/install -c -m 644' INSTALL_PROGRAM='/usr/local/bin/install -c' INSTALL_SCRIPT='/usr/local/bin/install -c' LDFLAGS='' LIBOBJS='' LIBS='' LIPO='lipo' LN_S='ln -s' LTLIBOBJS='' MAINT='#' NM='/export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/nm' OBJEXT='' PACKAGE_BUGREPORT='' PACKAGE_NAME='GNU C Runtime Library' PACKAGE_STRING='GNU C Runtime Library 1.0' PACKAGE_TARNAME='libgcc' PACKAGE_URL='http://www.gnu.org/software/libgcc/' PACKAGE_VERSION='1.0' PATH_SEPARATOR=':' PICFLAG='-fPIC' RANLIB='true' SHELL='/bin/bash' STRIP='strip' ac_ct_CC='' asm_hidden_op='' bindir='${exec_prefix}/bin' build='sparc-sun-solaris2.10' build_alias='sparc-sun-solaris2.10' build_cpu='sparc' build_libsubdir='build-sparc-sun-solaris2.10' build_os='solaris2.10' build_subdir='build-sparc-sun-solaris2.10' build_vendor='sun' cpu_type='' datadir='${datarootdir}' datarootdir='${prefix}/share' decimal_float='' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' double_type_size='' dvidir='${docdir}' enable_decimal_float='' enable_shared='yes' enable_vtable_verify='no' exec_prefix='NONE' extra_parts='' fixed_point='' host='sparc-sun-solaris2.10' host_alias='sparc-sun-solaris2.10' host_cpu='sparc' host_noncanonical='sparc-sun-solaris2.10' host_os='solaris2.10' host_subdir='.' host_vendor='sun' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' libgcc_topdir='../../../gcc-4.9.2/libgcc/..' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' long_double_type_size='' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/usr/local/gcc-492' program_transform_name='s,y,y,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' set_have_cc_tls='' set_use_emutls='' sfp_machine_header='' sharedstatedir='${prefix}/com' slibdir='$(libdir)' sysconfdir='${prefix}/etc' target_alias='sparc-sun-solaris2.10' target_noncanonical='sparc-sun-solaris2.10' target_subdir='sparc-sun-solaris2.10' thread_header='' tm_defines='' tm_file='' tmake_file='' toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)' toolexeclibdir='$(libdir)' vis_hide='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* 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/" configure: exit 1