[CPMD-list] Compilation error II

Alexander Martins Silva alex.msilva at uol.com.br
Sat Sep 30 21:20:13 CEST 2006


          Hi Ari and Axel,

          Sorry, I should to send a excerpt of the Makefile. So, I 'm 
doing this now:
for the PC-IFC:

SRC  = .
DEST = .
BIN  = .
FFLAGS = -c -r8 -w90 -w95 -O3 -pc64 -axM -tpp6
LFLAGS = -llapack -lblas -Vaxlib -static
CFLAGS = -c -O2 -Wall
CPP = /lib/cpp -P -C -traditional
CPPFLAGS = -D__Linux -D__PGI -DFFT_DEFAULT -DLINUX_IFC
NOOPT_FLAG =
CC = gcc
FC = ifort
LD = ifort
AR = ar
   
    I have the libm.a in the /usr/lib64/ directory. So I made a symbolic 
link to the /usr/lib. After that, I got the following error message:

(...) vdw.o bs_forces_diag.o bswfo.o lsforce.o setbsstate.o wrccfl.o 
mdshop_cp.o mdshop_bo.o mm_mdshop_cp.o mm_mdshop_bo.o fusion.o rk4ov.o 
shop_adds.o  sysdepend.o    -llapack -lblas -Vaxlib -static
ld: skipping incompatible /usr/lib/liblapack.a when searching for -llapack
ld: skipping incompatible /usr/lib64/liblapack.a when searching for -llapack
ld: skipping incompatible /usr/lib/libblas.a when searching for -lblas
ld: skipping incompatible /usr/lib64/libblas.a when searching for -lblas
ld: skipping incompatible /usr/lib/libblas.a when searching for -lblas
ld: cannot find -lblas
make: *** [cpmd.x] Error 1
       This lapapack also was linked to the /usr/lib64. I almost sure 
that I cannot use this option at my 64bits machine. My mistake.

However, for IFORT-AMD64

IRAT = 2
SRC  = .
DEST = .
BIN  = .
FFLAGS = -pc64  -tpp6 -O2 -unroll
LFLAGS = -L. -latlas_x86_64
CFLAGS = -O2 -Wall -m64
CPP = /lib/cpp -P -C -traditional
CPPFLAGS = -D__Linux -D__PGI -DFFT_DEFAULT -DPOINTER8 -DLINUX_IFC
NOOPT_FLAG =
CC = gcc
FC = ifort -c
LD = ifort -i-static
AR = ar
 
  I've got :

(...)  vdwin.o vdw.o bs_forces_diag.o bswfo.o lsforce.o setbsstate.o 
wrccfl.o mdshop_cp.o mdshop_bo.o mm_mdshop_cp.o mm_mdshop_bo.o fusion.o 
rk4ov.o shop_adds.o  sysdepend.o    -L. -latlas_x86_64
OBJREAD Error: Could not create mapping for "/usr/lib/libatlas_x86_64.a".
ifort: error: problem during multi-file optimization compilation (code 1)
make: *** [cpmd.x] Error 1

          I'm using the latest Ifort version (9.1.11) and the 
libatlas_x86_64.a was obtained from the Axel's site.

                      Thanks,

             Alexander.


Ari P Seitsonen wrote:

>
> Dear Alexander,
>
>   Like Axel (Kohlmeyer) tends to say, please specify the machine 
> (architecture, processors) and the options for the compiler (about the 
> first 12 lines with definition of variables). Which version of 'ifort' 
> are you using?
>
>   It would be _very_ strange if the C mathematical library is not 
> installed on your machine; please check '/usr/lib/libm.a'. You can 
> also check `rpm -qa glibc-devel`, `uname -a` and `cat /proc/cpuinfo`. 
> The latter two might show if you have inconsistencies in the 
> compilation (e.g. 32 vs 64 bits).
>
>     Greetings from Paris,
>
>        apsi
>
> -=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=- 
>
>   Ari P Seitsonen / Ari.P.Seitsonen at iki.fi / http://www.iki.fi/~apsi/
>   CNRS & IMPMC, Université Pierre et Marie Curie
>   Tel: +33-1-4427 7542, Fax: +33-1-4427 3785, GSM: +33-6-6736 3820
>
> On Sat, 30 Sep 2006, Alexander Martins Silva wrote:
>
>>
>>      Hi,
>>
>>      when i try compile the CPMD code on this same machine mentioned 
>> before now using the configuration file for PC-IFC I get another 
>> error during th compilation:
>> (...)
>> if [ "." != "." ]; then ln -s ./cpmd.x cpmd.x; fi
>> ifort  -o ./cpmd.x cpmd.o timetag.o softex.o  ...
>> vdw.o bs_forces_diag.o bswfo.o lsforce.o setbsstate.o wrccfl.o 
>> mdshop_cp.o mdshop_bo.o mm_mdshop_cp.o mm_mdshop_bo.o fusion.o 
>> rk4ov.o shop_adds.o sysdepend.o    -llapack -lblas -Vaxlib -static
>> IPO link: can not find -lm
>> ifort: error: problem during multi-file optimization compilation 
>> (code 1)
>> make: *** [cpmd.x] Error 1
>>
>>               Any idea?
>>
>>               Thanks,
>>                           Alexander.
>> _______________________________________________
>> CPMD-list mailing list
>> CPMD-list at cpmd.org
>> http://cpmd.org/mailman/listinfo/cpmd-list
>>
>------------------------------------------------------------------------
>
>_______________________________________________
>CPMD-list mailing list
>CPMD-list at cpmd.org
>http://cpmd.org/mailman/listinfo/cpmd-list
>  
>




More information about the CPMD-list mailing list