C compiler cannot create executables

Hello,
I’m trying to install root5.26 on a kubuntu9.10 distribution. The problem seems to be related to a compiler problem. I listed here the error message and also the output for “./configure linux”.
I tried several versions of root without success but the same error.
May someone would have an idea what is wrong in my linux installation?
Regards.


checking for C compiler default output file name…
configure: error: C compiler cannot create executables
See `config.log’ for more details.
make[1]: entrant dans le répertoire « /home/manso/Alice/root/core/pcre/src/pcre-7.8 »
make[1]: *** Pas de règle pour fabriquer la cible « libpcre.la ». Arrêt.
make[1]: quittant le répertoire « /home/manso/Alice/root/core/pcre/src/pcre-7.8 »
make: *** [core/pcre/src/pcre-7.8/.libs/libpcre.a] Erreur 2


manso@clrna60p04:~/Alice/root$ ./configure linux
Configuring for linux
Checking for GNU Make version >= 3.79.1 … ok
Checking for C compiler … gcc
Checking for C++ compiler … g++
Checking for linker (LD) … g++
Checking for F77 compiler … gfortran
Checking for libX11 … /usr/lib
Checking for X11/Xlib.h … /usr/include
Checking for X11/Xft/Xft.h … /usr/include
Checking for X11/extensions/shape.h … /usr/include
Checking for libXpm … /usr/lib
Checking for libXft … /usr/lib
Checking for libXext … /usr/lib
Checking whether to build included libfreetype6 … yes
Checking whether to build included libftgl … yes
Checking whether to build included libpcre … yes
Checking whether to build included zlib … yes
Checking for ncurses.h, or curses.h … no
Checking for libncurses, or libcurses … no
Checking for GL/gl.h … /usr/include
Checking for libGL, or libMesaGL … /usr/lib
Checking for libGLU, or libMesaGLU … no
Checking for mysql_config … /usr/bin/mysql_config
Checking for libmysqlclient version >= 3.23.* … ok
Checking for mysql.h … /usr/include/mysql
Checking for occi.h … no
Checking for libclntsh, or oci … no
Checking for libocci, or oraocci10 … no
Checking for libpq-fe.h … no
Checking for libpq … no
Checking for sql.h … no
Checking for libsqlod … no
Checking for sqlext.h … no
Checking for libiodbc, libodbc, or odbc32 … no
Checking for rfio_api.h … no
Checking for librfio, libshift, shiftmd, or shift … no
Checking for rfio_api.h … no
Checking for stager_api.h … no
Checking for libshift, shiftmd, or shift … no
Checking for gfal_api.h … no
Checking for libgfal … no
Checking for G4Navigator.hh … no
Checking for libG4navigation … no
Checking for CLHEP/Vector/Rotation.h … no
Checking for ApMon.h … no
Checking for libapmoncpp … no
Checking for fftw3.h … no
Checking for libfftw3, or libfftw3-3 … no
Checking for gvc.h … no
Checking for libgvc, or gvc … no
Checking for libgraph, or graph … no
Checking for libcdt, or cdt … no
Checking for libpathplan, or pathplan … no
Checking for libgvplugin_dot_layout, or gvplugin_dot_layout … no
Checking for libPythia6 … no
Checking for Pythia.h … no
Checking for libpythia8 … no
Checking for dcap.h … no
Checking for libdcap … no
Checking for chirp_client.h … no
Checking for libchirp_client … no
Checking for hdfs.h … no
Checking for jni.h … no
Checking for libhdfs … no
Checking for libjvm … no
Checking for dns_sd.h … no
Checking for libdns_sd … no
Checking for libglite-api-wrapper … no
Checking for gapiUI.h … no
Checking for libgapiUI … no
Checking for jpeglib.h … no
Checking for png.h … no
Checking for tiffio.h … no
Checking for gif_lib.h … no
Checking for libjpeg … no
Checking for libtiff … no
Checking for libungif … no
Checking for libz … /usr/lib
Checking for libpng … no
Checking whether to build included libAfterImage … yes
Checking for ldap.h … no
Checking for libldap … no
Checking for Python.h … /usr/include/python2.6
Checking for python2.6, libpython2.6, libpython, python, or Python … /usr/lib/python2.6/config
Checking for xml2-config … /usr/bin/xml2-config
Checking for libxml2 version >= 2.4.x … ok
Checking whether to build xrootd … yes
Checking for libssl … /usr/lib
Checking for libcrypto … /usr/lib
Checking for openssl/bio.h … /usr/include
Checking for openssl/blowfish.h … /usr/include
Checking for openssl/err.h … /usr/include
Checking for openssl/pem.h … /usr/include
Checking for openssl/rand.h … /usr/include
Checking for openssl/rsa.h … /usr/include
Checking for t_server.h … no
Checking for libsrp … no
Checking for libgmp … no
Checking for libmisc … no
Checking for pwauth.h … no
Checking for shadow passwords … yes
Checking for gsl/gsl_version.h … /usr/include
Checking for GSL version >= 1.8 … ok
Checking for libgsl, gslML, or gsl … /usr/lib
Checking for libgslcblas, gslcblasML, gslcblas, or cblas … /usr/lib
Checking whether /usr/lib/libgsl.a is compiled with -fPIC … yes
Checking whether /usr/lib/libgslcblas.a is compiled with -fPIC … yes
Checking whether to build libMathMore … yes
Checking whether to build libGenVector … yes
Checking whether to build CINT5 … yes
Checking whether to build CINT7 … no
Checking whether to build libCintex … yes
Checking whether to build libReflex … yes
Checking whether to build libRooFit … no
Checking whether to build libMinuit2 … no
Checking whether to build libUnuran … no
Checking whether to build libGdml … no
Checking whether to build libTable … no
Checking whether to build libTMVA … yes
Checking whether to build libMemStat … yes
Checking for Clarens support … no
Checking for PEAC support … no
Generating cint dictionaries.
Checking whether setresuid declared in /usr/include/unistd.h … yes
Writing config/Makefile.config … done
Writing config/Makefile.comp … done
Writing include/RConfigure.h … done
Writing include/RConfigOptions.h … done
Writing bin/root-config … done
Writing etc/system.rootrc … done
Writing etc/system.rootauthrc … done
Writing etc/system.rootdaemonrc … done
Writing etc/root.mimes … done
Writing etc/daemons/rootd.rc.d … done
Writing etc/daemons/rootd.xinetd … done
Writing etc/daemons/proofd.rc.d … done
Writing etc/daemons/proofd.xinetd … done
Writing etc/daemons/xrootd.rc.d … done
Writing etc/daemons/olbd.rc.d … done
Writing bin/memprobe … done
Writing build/misc/root-help.el … done
Writing macros/html.C … done
Writing bin/thisroot.sh … done
Writing bin/thisroot.csh … done
Writing bin/genreflex … done
Writing bin/genreflex-rootcint … done
Writing config.status … done

Enabled support for asimage, astiff, builtin_afterimage, builtin_ftgl, builtin_freetype, builtin_pcre, builtin_zlib, cint5, cintex, exceptions, genvector, mathmore, memstat, mysql, python, reflex, shadowpw, shared, ssl, tmva, xft, xml, xrootd.

the only thing that I can suggest is

make distclean ./configure with your list of options make
Rene

Hello,
I tried “./configure --with-cxx=/usr/bin/gcc-4.2 --with-cc=/usr/bin/gcc-4.2” and even with gcc4.1, the error is always there.
With kind of options should I use in my configure?

Regards.

checking for gcc… /usr/bin/gcc-4.1
checking for C compiler default output file name…
configure: error: C compiler cannot create executables
See `config.log’ for more details.
make[1]: entrant dans le répertoire « /home/manso/Alice/root/core/pcre/src/pcre-7.8 »
make[1]: *** Pas de règle pour fabriquer la cible « libpcre.la ». Arrêt.
make[1]: quittant le répertoire « /home/manso/Alice/root/core/pcre/src/pcre-7.8 »
make: *** [core/pcre/src/pcre-7.8/.libs/libpcre.a] Erreur 2
rm core/utils/src/RStl_tmp.cxx core/utils/src/rootcint_tmp.cxx

Before playing with exotic compilers and too many options, try

make distclean ./configure make
Rene

In fact, I have usually tried with the only option “./configure linux”.
Now, without any option in the configure, the problem is always the same.

Franck Manso.

[quote]checking for C compiler default output file name…
configure: error: C compiler cannot create executables
See `config.log’ for more details.
make[1]: entrant dans le répertoire « /home/manso/Alice/root/core/pcre/src/pcre-7.8 »
make[1]: *** Pas de règle pour fabriquer la cible « libpcre.la ». Arrêt. [/quote]What does the file /home/manso/Alice/root/core/pcre/src/pcre-7.8/config.log contains (in particular which error)?

Philippe.

Hello,
Here is a copy of the start of config.log file from pcre module.

Franck.


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by PCRE configure 7.8, which was
generated by GNU Autoconf 2.61. Invocation command line was

$ ./configure --with-pic --disable-shared CC=gcc CFLAGS=-m32 -O

---------

Platform.

---------

hostname = clrna60p04
uname -m = i686
uname -r = 2.6.31-14-generic
uname -s = Linux
uname -v = #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /home/manso/Alice/root/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /home/manso/Alice/AliRoot/bin/tgt_linux

-----------

Core tests.

-----------

configure:2030: checking for a BSD-compatible install
configure:2086: result: /usr/bin/install -c
configure:2097: checking whether build environment is sane
configure:2140: result: yes
configure:2168: checking for a thread-safe mkdir -p
configure:2207: result: /bin/mkdir -p
configure:2220: checking for gawk
configure:2250: result: no
configure:2220: checking for mawk
configure:2236: found /usr/bin/mawk
configure:2247: result: mawk
configure:2258: checking whether make sets $(MAKE)
configure:2279: result: yes
configure:2531: checking for gcc
configure:2558: result: gcc
configure:2796: checking for C compiler version
configure:2803: gcc --version >&5
gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1
Copyright © 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:2806: $? = 0
configure:2813: gcc -v >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: …/src/configure -v --with-pkgversion=‘Ubuntu 4.4.1-4ubuntu9’ --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9)
configure:2816: $? = 0
configure:2823: gcc -V >&5
gcc: ‘-V’ option must have argument
configure:2826: $? = 1
configure:2849: checking for C compiler default output file name
configure:2876: gcc -m32 -O conftest.c /usr/lib >&5
/usr/bin/ld: /usr/lib: No such file: File format not recognized
collect2: ld returned 1 exit status
configure:2879: $? = 1
configure:2917: result:
configure: failed program was:
| /* confdefs.h. /
| #define PACKAGE_NAME “PCRE”
| #define PACKAGE_TARNAME “pcre”
| #define PACKAGE_VERSION “7.8”
| #define PACKAGE_STRING “PCRE 7.8”
| #define PACKAGE_BUGREPORT “”
| #define PACKAGE “pcre”
| #define VERSION “7.8”
| /
end confdefs.h. */

[quote]configure:2876: gcc -m32 -O conftest.c /usr/lib >&5 [/quote]This indirectly indicates that the environement variable LIBS is set to ‘/usr/lib’ when the pcre configure is called. It is mostly likely set in your shell (before you call make).

Cheers,
Philippe.