Config fails using intel compiler

36 views
Skip to first unread message

Hai Long

unread,
Sep 3, 2020, 2:53:13 PM9/3/20
to NWChem Forum
Hi, 

I'm trying to compile NWChem using intel compiler. But I got the following error:

*** Configuring Parallel Tools ****

../ga-5.7.1/configure 

...

checking how to run the C preprocessor... fpp -P 

configure: error: in `/nopt/nrel/apps/nwchem/dist/nwchem-7.0.0-intel20/src/tools/build':

configure: error: C preprocessor "fpp -P " fails sanity check

See `config.log' for more details

I then checked the configure script and found the following commands fails:

fpp -P conftest.c

conftest.c file is:

#include "confdefs.h"

And confdefs.h is:

/* confdefs.h */

#define PACKAGE_NAME "Global Arrays (GA)"

#define PACKAGE_TARNAME "ga"

#define PACKAGE_VERSION "5.7.1"

#define PACKAGE_STRING "Global Arrays (GA) 5.7.1"

#define PACKAGE_BUGREPORT "hpct...@pnl.gov"

#define PACKAGE_URL "http://hpc.pnl.gov/globalarrays/"

#define LINUX 1

#define SYSV 1

#define PACKAGE "ga"

#define VERSION "5.7.1"

#define MSG_COMMS_MPI 1

#define ENABLE_PEIGS 1

#define ENABLE_EISPACK 0

#define ENABLE_PROFILING 0

/* end confdefs.h.  */

#ifdef __STDC__

# include <limits.h>

#else

# include <assert.h>

#endif

The error message is:

assert.h(106): #error: #if: syntax error.

I have tried intel compiler 2018 and 2020. Both have this problem. Does anybody happen to know what may cause this? Many thanks!


Hai Long


Edoardo Aprà

unread,
Sep 3, 2020, 3:03:24 PM9/3/20
to NWChem Forum
Did you set the env. variable CPP?

What is the output of the command
  env | grep CPP
and of
  env | grep fpp


Edoardo Aprà

unread,
Sep 23, 2020, 9:50:15 PM9/23/20
to NWChem Forum
Some relates developments in  a github issue

Reply all
Reply to author
Forward
0 new messages