Hi David,<br><br>You are missing the libderiv in the LIBS line also. You should have it on the same directory of  /usr/local/libint/1.1.4-stable/lib/<br><br>Cheers,<br><br><div class="gmail_quote">On Mon, Oct 1, 2012 at 1:26 PM, David T <span dir="ltr"><<a href="mailto:amazing...@gmail.com" target="_blank">amazing...@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Iain,<br>thanks for your answer. I modified a bit the arch file. Now my shell starts to compile. Unfortunately after a while I got an error related to the blacs library. Since I installed them with aptitude I am sure they are correctly compiled so the error is in the arch file (i.e. in the option). I will struggle with it.<br>

Any tips from you or other readers would be really appreciated :-)<br><br>here my new arch file:<div class="im"><br><br>CC       = cc<br>CPP      =<br>FC       = mpif90<br></div>LD       = mpif90<div class="im"><br>AR       = ar -r<br>

CPPFLAGS =<br></div>DFLAGS   =  -D__GFORTRAN -D__FFTSG -D__FFTW3 -D__LIBINT -D__parallel -D__SCALAPACK -D__BLACS<br>FCFLAGS  = -O2 -fopenmp -ffast-math -funroll-loops -ftree-vectorize -march=native -ffree-form $(DFLAGS)<br>

LDFLAGS  = $(FCFLAGS)<br>LIBS     =  -llapack -lblas -lfftw3 /usr/local/libint/1.1.4-stable/lib/libint.a /usr/lib/libscalapack-openmpi.a /usr/lib/libblacs-openmpi.a<br>OBJECTS_ARCHITECTURE = machine_gfortran.o<br><br>this is the error:<br>

<br>/home/dt378/Programs/cp2k-2.3/makefiles/../lib/Linux-x86-64-gfortran/psmp/libcp2k_lib.a(hfx_libint_wrapper.o): In function `__hfx_libint_wrapper_MOD_initialize_libderiv':<br>hfx_libint_wrapper.F:(.text+0x3c9): undefined reference to `init_libderiv_base'<br>

hfx_libint_wrapper.F:(.text+0x3dc): undefined reference to `init_libderiv1'<br>/home/dt378/Programs/cp2k-2.3/makefiles/../lib/Linux-x86-64-gfortran/psmp/libcp2k_lib.a(hfx_libint_wrapper.o): In function `__hfx_libint_wrapper_MOD_terminate_libderiv':<br>

hfx_libint_wrapper.F:(.text+0x361): undefined reference to `free_libderiv'<br>/home/dt378/Programs/cp2k-2.3/makefiles/../lib/Linux-x86-64-gfortran/psmp/libcp2k_lib.a(cp_blacs_calls.o): In function `__cp_blacs_calls_MOD_cp_blacs_pinfo':<br>

cp_blacs_calls.F:(.text+0x143): undefined reference to `blacs_pinfo_'<br>/usr/lib/libscalapack-openmpi.a(pdgemr.o): In function `Cpdgemr2do':<br>(.text+0x302a): undefined reference to `Cblacs_pinfo'<br>/usr/lib/libscalapack-openmpi.a(pdgemr.o): In function `pdgemr2do_':<br>

(.text+0x316e): undefined reference to `Cblacs_pinfo'<br>/usr/lib/libscalapack-openmpi.a(pdtrmr.o): In function `Cpdtrmr2do':<br>(.text+0x2bbc): undefined reference to `Cblacs_pinfo'<br>/usr/lib/libscalapack-openmpi.a(pdtrmr.o): In function `pdtrmr2do_':<br>

(.text+0x2d2a): undefined reference to `Cblacs_pinfo'<br>/usr/lib/libscalapack-openmpi.a(pdlaed2.o): In function `pdlaed2_':<br>(.text+0xd3): undefined reference to `blacs_pinfo_'<br>/usr/lib/libblacs-openmpi.a(blacs_get_.o): In function `blacs_get_':<br>

(.text+0x1bc): undefined reference to `Cblacs_pinfo'<br>/usr/lib/libblacs-openmpi.a(blacs_get_.o): In function `blacs_get_':<br>(.text+0x1d7): undefined reference to `Cblacs_pinfo'<br>/usr/lib/libblacs-openmpi.a(blacs_gridmap_.o): In function `blacs_gridmap_':<br>

(.text+0x4c5): undefined reference to `Cblacs_pinfo'<br>/usr/lib/libblacs-openmpi.a(blacs_get_.C): In function `Cblacs_get':<br>(.text+0x1de): undefined reference to `Cblacs_pinfo'<br>/usr/lib/libblacs-openmpi.a(blacs_get_.C): In function `Cblacs_get':<br>

(.text+0x20c): undefined reference to `Cblacs_pinfo'<br>/usr/lib/libblacs-openmpi.a(Cblacs_gridmap_.C):(.text+0x503): more undefined references to `Cblacs_pinfo' follow<br>collect2: ld returned 1 exit status<br>make[1]: *** [/home/dt378/Programs/cp2k-2.3/makefiles/../exe/Linux-x86-64-gfortran/cp2k.psmp] Error 1<br>

make[1]: Leaving directory `/home/dt378/Programs/cp2k-2.3/obj/Linux-x86-64-gfortran/psmp'<br>make: *** [build] Error 2<div class="im"><br><br>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "cp2k" group.<br></div>
To view this discussion on the web visit <a href="https://groups.google.com/d/msg/cp2k/-/zju283blEK4J" target="_blank">https://groups.google.com/d/msg/cp2k/-/zju283blEK4J</a>.<div class="HOEnZb"><div class="h5"><br> 
To post to this group, send email to <a href="mailto:cp...@googlegroups.com" target="_blank">cp...@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href="mailto:cp2k%2Bun...@googlegroups.com" target="_blank">cp2k+uns...@googlegroups.com</a>.<br>

For more options, visit this group at <a href="http://groups.google.com/group/cp2k?hl=en" target="_blank">http://groups.google.com/group/cp2k?hl=en</a>.<br>


</div></div></blockquote></div><br><br clear="all"><br>-- <br>[]'s<br>Christiane Pousa Ribeiro<br> <br>"Judge a man by his questions, rather than by his answers" <br>