Compile error in makedepf90 (GCC, Linux i686)

DMT dobro... at
Tue Oct 30 13:28:25 UTC 2012


make -j 2 ARCH=Linux-i686-g95 VERSION=sopt

I get the following:

bash-4.1# make -j 2 ARCH=Linux-i686-g95 VERSION=sopt
make LDFLAGS= -C 
/root/programs/cp2k/cp2k/makefiles/../obj/Linux-i686-g95/tools -f 
/root/programs/cp2k/cp2k/makefiles/../makefiles/Makefile makedepf90
make[1]: Entering directory 
test -d 
|| ( mkdir makedepf90-build ; cp 
/root/programs/cp2k/cp2k/makefiles/../tools/makedepf90/* makedepf90-build )
{ cd makedepf90-build ; ./configure 
--bindir=/root/programs/cp2k/cp2k/makefiles/../obj/Linux-i686-g95/tools ; 
make VERSION="2.8.8cp2k" ; make install ; }
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C 
compiler cannot create executables
See `config.log' for more details.
make[2]: Entering directory 
make[2]: *** No targets specified and no makefile found.  Stop.
make[2]: Leaving directory 
make[2]: Entering directory 
make[2]: *** No rule to make target `install'.  Stop.
make[2]: Leaving directory 
make[1]: *** [makedepf90] Error 2
make[1]: Leaving directory 
make: *** [deptool] Error 2

I realize it's not really a part of the cp2k program itself but rather an 
external tool to help with the dependencies, here is its config.log

configure:1610: gcc -O2 -march=pentium4 -fomit-frame-pointer -C 
-D__GFORTRAN -D__FFTSG -D__FFTW3 -D__LIBINT -traditional  
-D__COMPILE_ARCH="\"Linux-i686-g95\"" -D__COMPILE_DATE="\"Tue Oct 30 
14:18:22 EET 2012\"" -D__COMPILE_HOST="\"bol\"" 
-I/root/programs/cp2k/cp2k/makefiles/../src  conftest.c  >&5
gcc: Oct: No such file or directory
gcc: 30: No such file or directory
gcc: 14:18:22: No such file or directory
gcc: EET: No such file or directory
gcc: 2012\"": No such file or directory
gcc: GNU C no longer supports -traditional without -E
configure:1613: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| /* end confdefs.h.  */
| int
| main ()
| {
|   ;
|   return 0;
| }
configure:1652: error: C compiler cannot create executables
See `config.log' for more details.

... and then it goes on to some other things, which include no errors

I tried that line (the command from the configure script) that fails and on 
the console it's fine, except for the missing conftest.c file, of course. 
why does it think that the date string is a file to compile ? the syntax 
seems ok to me but again i'm not an expert

My Linux is Slackware 13.37, with uname -a:
Linux bol #2 SMP Sat Apr 9 23:39:07 CDT 2011 i686 Intel(R) 
Pentium(R) 4 CPU 2.80GHz GenuineIntel GNU/Linux

bash-4.1# gcc -v 
Reading specs from /usr/lib/gcc/i486-slackware-linux/4.5.2/specs
Target: i486-slackware-linux
Configured with: ../gcc-4.5.2/configure --prefix=/usr --libdir=/usr/lib 
--mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap 
--enable-languages=ada,c,c++,fortran,java,objc,lto --enable-threads=posix 
--enable-checking=release --with-system-zlib 
--disable-libunwind-exceptions --enable-__cxa_atexit --enable-libssp 
--enable-lto --with-gnu-ld --verbose --with-arch=i486 
--target=i486-slackware-linux --build=i486-slackware-linux 
Thread model: posix
gcc version 4.5.2 (GCC)

and here is the ARCH file:

I_PREFIX = /usr/include
L_PREFIX = /usr/lib

CC       = cc
CPP      = cpp

FC       = g95 
LD       = g95

AR       = ar -r

FCFLAGS  = -cpp -O3 -ffast-math -march=pentium4 -fomit-frame-pointer 
-funroll-loops -I$(I_PREFIX)
LIBS     = $(L_PREFIX)/libderiv.a \
           $(L_PREFIX)/libint.a \


it is not complete yet, as I'm still testing. blas and lapack are ready, 
tho (and even gotoblas2 with no threads)

on another subject if I just put the -D__FFTACML -D__FFTMKL -D__FFTESSL 
flags in it will it compile fine ? the INSTALL sais i better use the fft 
routines provided with these in the program itself

it seems to be an easy error to solve but I spend too much time on it, any 
help will be useful

thanx in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the CP2K-user mailing list