Compile error in makedepf90 (GCC, Linux i686)

DMT dobro... at gmail.com
Tue Oct 30 14:28:25 CET 2012


with 

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 
`/root/programs/cp2k/cp2k/obj/Linux-i686-g95/tools'
test -d 
/root/programs/cp2k/cp2k/makefiles/../obj/Linux-i686-g95/tools/makedepf90-build 
|| ( mkdir makedepf90-build ; cp 
/root/programs/cp2k/cp2k/makefiles/../tools/makedepf90/* makedepf90-build )
{ cd makedepf90-build ; ./configure 
--prefix=/root/programs/cp2k/cp2k/makefiles/../obj/Linux-i686-g95/tools 
--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 
`/root/programs/cp2k/cp2k/obj/Linux-i686-g95/tools/makedepf90-build'
make[2]: *** No targets specified and no makefile found.  Stop.
make[2]: Leaving directory 
`/root/programs/cp2k/cp2k/obj/Linux-i686-g95/tools/makedepf90-build'
make[2]: Entering directory 
`/root/programs/cp2k/cp2k/obj/Linux-i686-g95/tools/makedepf90-build'
make[2]: *** No rule to make target `install'.  Stop.
make[2]: Leaving directory 
`/root/programs/cp2k/cp2k/obj/Linux-i686-g95/tools/makedepf90-build'
make[1]: *** [makedepf90] Error 2
make[1]: Leaving directory 
`/root/programs/cp2k/cp2k/obj/Linux-i686-g95/tools'
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\"" 
-D__COMPILE_REVISION="\"12476\"" 
-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 ""
| #define PACKAGE_BUGREPORT ""
| /* 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.6.37.6-smp #2 SMP Sat Apr 9 23:39:07 CDT 2011 i686 Intel(R) 
Pentium(R) 4 CPU 2.80GHz GenuineIntel GNU/Linux

GCC:
bash-4.1# gcc -v 
Reading specs from /usr/lib/gcc/i486-slackware-linux/4.5.2/specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i486-slackware-linux/4.5.2/lto-wrapper
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 
--with-python-dir=/lib/python2.6/site-packages 
--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 
--host=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

CPPFLAGS = -C -D__GFORTRAN -D__FFTSG -D__FFTW3 -D__LIBINT -traditional 
FCFLAGS  = -cpp -O3 -ffast-math -march=pentium4 -fomit-frame-pointer 
-funroll-loops -I$(I_PREFIX)
LDFLAGS  = $(FCFLAGS) 
LIBS     = $(L_PREFIX)/libderiv.a \
           $(L_PREFIX)/libint.a \
           $(L_PREFIX)/libfftw.a

OBJECTS_ARCHITECTURE = machine_g95.o

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: <https://lists.cp2k.org/archives/cp2k-user/attachments/20121030/885a028f/attachment.html>


More information about the CP2K-user mailing list