Compile error in qmmm_util.F (CPSourceFileRef define)

DMT dobro... at gmail.com
Wed Nov 7 14:38:09 UTC 2012


I renamed the arch file to Linux-i686-gcc.sopt and placed -D__GCC in it and 
env-ed F77=gcc and i get an error much much sooner, which looks like the 
previous one btw:

make[1]: Entering directory `/home/dmt/cp2k/cp2k/obj/Linux-i686-gcc/sopt'
cpp -C -D__GCC -D__FFTSG -D__FFTW3 -D__LIBINT 
-D__COMPILE_ARCH="\"Linux-i686-gcc\"" -D__COMPILE_DATE="\"Wed Nov  7 
16:34:57 EET 2012\"" -D__COMPILE_HOST="\"bol\"" 
-D__COMPILE_REVISION="\"12476\"" -I/home/dmt/cp2k/cp2k/makefiles/../src 
-D__SHORT_FILE__="\"machine.F\"" 
/home/dmt/cp2k/cp2k/makefiles/../src/machine.F > machine.f90
g95  -c -cpp -O3 -ffast-math -march=pentium4 -fomit-frame-pointer 
-funroll-loops -I/usr/include machine.f90
/home/dmt/cp2k/cp2k/makefiles/../src/machine.F:128.33:

       m_memory, m_iargc, m_abort, m_chdir, m_loc_r, m_loc_c, m_mov, 
m_memory_d
                                 1
Error: Symbol 'm_abort' at (1) has no IMPLICIT type
/home/dmt/cp2k/cp2k/makefiles/../src/machine.F:128.42:

       m_memory, m_iargc, m_abort, m_chdir, m_loc_r, m_loc_c, m_mov, 
m_memory_d
                                          1
Error: Symbol 'm_chdir' at (1) has no IMPLICIT type
/home/dmt/cp2k/cp2k/makefiles/../src/machine.F:126.33:

... and it goes on much further with all the vars in these lines

On Thursday, November 1, 2012 8:33:11 PM UTC+2, Matt W wrote:
>
> HI,
>
> you should be using gfortran rather than g95, no? I think g95 was merged 
> with the main gcc sometime ago(?).
>
> Whatever arch file you are using point it to your gcc rather than g95...
>
> Matt
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20121107/b6c60741/attachment.htm>


More information about the CP2K-user mailing list