Page 1 of 1

HELP! Compilation

Posted: Tue Jul 12, 2005 8:02 pm
by srodrigues
I will try to put sevaral information about my machine Pentium 4

Linux (Debian) kernel 2.6.8.1 #1 SMP Wed Sep 15 19:20:39 BRT 2004 i686 GNU/Linux

FFTW Version: 3.0.1
ATLAS Version: 3.6.0
LAPACK Version: 3.0
MPI version: 1.2.5.2
PGF90 Version: 5.1


I have problems when I try to compile Vasp I don´t know what to do ...please someone can help me?

this mensage appear when I use make:

fft3dlib.o: In function `ftrigc_':
fft3dlib.o(.text+0x5c38): undefined reference to `__mth_i_dcosx'
fft3dlib.o(.text+0x5c50): undefined reference to `__mth_i_dsinx'
fft3dlib.o: In function `ftrigr_':
fft3dlib.o(.text+0x5cd0): undefined reference to `__mth_i_dcosx'
fft3dlib.o(.text+0x5ce8): undefined reference to `__mth_i_dsinx'
fft3dlib.o(.text+0x5d74): undefined reference to `__mth_i_dcosx'
fft3dlib.o(.text+0x5d8c): undefined reference to `__mth_i_dsinx'
make: *** [vasp] Error 2


My Makefile
http://scrodrigues.sites.uol.com.br/Makefile.pdf


extras about machines:


Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda6 24707412 254288 23198048 2% /
tmpfs 1870240 0 1870240 0% /dev/shm
/dev/hda2 15554 1896 12855 13% /boot
/dev/hda3 1968620 735948 1132668 40% /var
/dev/hda5 9843276 4229544 5113712 46% /usr
/dev/md0 115377576 19034312 90482356 18% /home

and here
http://scrodrigues.sites.uol.com.br/mensage.txt

Thank you

<span class='smallblacktext'>[ Edited ]</span>

HELP! Compilation

Posted: Wed Jul 13, 2005 10:00 am
by admin
the error is due to missing library functions (dsinx dcosx), which do not seem to be included
in any of the libraries you have linked.
try to do the following:
1) use Juergen Furthmueller's FFT routines instead,
subroutine ftrigc in his fft3dlib uses the generic sin and cos functions
2) have a look whether the library functions YYY that are missing are included in any
of the library archives you have installed. This can be found out by typing
ar -tv (library).a | grep YYY
if you find an appropriate library libXXX.a, include it in your makefile, e.g. as
LINK = -L/(lib-path)/ -lXXX

HELP! Compilation

Posted: Mon Jul 18, 2005 6:58 pm
by srodrigues
Thank you ^^

I used the second option and I got to make the compilation ^^
again thanks :P