Top Page > Browsing
Error installing patch 3.9.2
Date: 2020/03/19 01:48
Name: Samuel Dechamps   <samuel.dechamps@uclouvain.be>

Dear all,

I successfully installed OpenMX 3.9 on my desktop.

However, after downloading patch 3.9.2, I get the following mistake when 'make all' :

"""
/tmp/ccjw20yV.o: In function `main':
/home/sam/Software/openmx3.9/source/gcube2oned.c:114: undefined reference to `sqrt'
collect2: error: ld returned 1 exit status
<builtin>: recipe for target 'gcube2oned' failed
make: *** [gcube2oned] Error 1
"""

Here is my makefile :

"""
CC = mpicc -O3 -fopenmp -I/usr/include/
FC = mpifort -O3 -I/usr/include/
# with openmpi : /usr/lib/openmpi/lib/
LIB = -L/usr/lib/x86_64-linux-gnu/ -lfftw3 -L/usr/lib/ -lscalapack-openmpi -llapack -lblas -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi -lpthread -lm -ldl -lgfortran #
"""

Regards,
S. Dechamps
メンテ
Page: [1]

Re: Error installing patch 3.9.2 ( No.1 )
Date: 2020/03/19 12:55
Name: Mitsuaki Kawamura  <mkawamura@issp.u-tokyo.ac.jp>

Dear Dr. S. Dechamps

Hello,
This is caused by a syntax error in makefile.
Could you modify the makefile as follows?


At line 1014, please add

gcube2oned: gcube2oned.c
gcc gcube2oned.c -lm -o gcube2oned

**Be careful for the number of spaces in the beginning of the second line!**

Also at the line 174:
UTIL = DosMain jx analysis_example esp polB calB Z2FH bandgnu13 bin2txt cube2xsf intensity_map md2axsf tp cube2xsf kSpin BandDispersion ADenBand FermiLoop GridCalc MulPOnly MulPCalc example_mpi_spawn gcube2oned

UTIL = DosMain jx analysis_example esp polB calB Z2FH bandgnu13 bin2txt cube2xsf intensity_map md2axsf tp kSpin BandDispersion ADenBand FermiLoop GridCalc MulPOnly MulPCalc example_mpi_spawn gcube2oned

Best regards,
Mitsuaki Kawamura(ISSP, U-Tokyo)
メンテ
Re: Error installing patch 3.9.2 ( No.2 )
Date: 2020/03/20 02:02
Name: Samuel Dechamps  <samuel.dechamps@uclouvain.be>

Dear Dr Mitsuaki Kawamura,

the patch has now compiled smoothly.

Regards,
S. Dechamps
メンテ

Page: [1]

Thread Title (must) Move the thread to the top
Your Name (must)
E-Mail (must)
URL
Password (used in modification of the submitted text)
Comment (must)

   Save Cookie