Error compiling nwchem-6.5 in Ubuntu

From NWChem

Viewed 304 times, With a total of 3 Posts
Jump to: navigation, search

Just Got Here
Threads 2
Posts 4
Hi, I've been trying to compile nwchem on Ubuntu. I get an error I assume comes from lapack:

<command-line>:0:1: error: macro names must be identifiers
clustrfix.c: In function 'clustrfix_':
clustrfix.c:206:9: error: 'DLAMCHE' undeclared (first use in this function)
   eps = DLAMCHE;
         ^
clustrfix.c:206:9: note: each undeclared identifier is reported only once for each function it appears in


Does anyone have an idea how to fix this?

I set the enviromment variables as follows:

export SCRATCH=/scratch
#NWCHEM STUFF here:
#NWCHEM variables
export NWCHEM_TOP=/home/liviu/builds_cryst03/nwchem-6.5
export NWCHEM_TARGET=LINUX64
#export NWCHEM_TARGET_CPU=x86_64
export ARMCI_NETWORK=OPENIB
export USE_MPI=y
export USE_MPIF=y
export USE_MPIF4=y
# run: $NWCHEM_TOP/contrib/distro-tools/getmpidefs_nwchem
# to obtain the MPI environment variables
export MPI_INCLUDE="-I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib"
export MPI_LIB="-L/usr//lib -L/usr/lib/openmpi/lib"
export LIBMPI="-lmpi_f90 -lmpi_f77 -lmpi -ldl -lhwloc"
export NWCHEM_MODULES="all python"
export USE_NOFSCHECK=TRUE
export USE_NOIO=TRUE
#Python variables
export PYTHONHOME=/usr/lib/python2.7
export PYTHONPATH=/usr/bin
export PYTHONVERSION=2.7
#Math libraries
export BLASOPT="-L/usr/local/atlas/lib -llapack -lf77blas -latlas"


I ran
make nwchem_config
make FC=gfortran CC=gcc
Edited On 2:23:08 AM PDT - Wed, Jun 3rd 2015 by Liviu

Forum Vet
Threads 4
Posts 936
Please post a more complete error log (including the last compiler line, too)

Just Got Here
Threads 2
Posts 4
the make.log file + whatever got printed during compilation
Sorry, uploading a large file does not work for me.
Edited On 1:24:36 PM PDT - Wed, Jun 3rd 2015 by Liviu

Forum Vet
Threads 4
Posts 936
What about copy and past 10-20 lines?


Forum >> NWChem's corner >> Compiling NWChem



Who's here now Members 0 Guests 1 Bots/Crawler 0


AWC's: 2.5.10 MediaWiki - Stand Alone Forum Extension
Forum theme style by: AWC