SMOKE4.8 compile error

Hello,
I’m trying to compile SMOKE4.8 using intel18.0 compiler. I get the following error:
/home/mahshid2/smoke4.8/subsys/smoke/src/emqa/genrprt.f(515): error #6752: Since the OpenMP* DEFAULT(NONE) clause applies, the PRIVATE, SHARED, REDUCTION, FIRSTPRIVATE, or LASTPRIVATE attribute must be explicitly specified for every variable. [MXCHRS]
CALL PARSCSRC( CSOURC( S ), MXCHRS, LOC_BEGP,
--------------------------------------------------------------------^
/home/mahshid2/smoke4.8/subsys/smoke/src/emqa/genrprt.f(515): error #6752: Since the OpenMP* DEFAULT(NONE) clause applies, the PRIVATE, SHARED, REDUCTION, FIRSTPRIVATE, or LASTPRIVATE attribute must be explicitly specified for every variable. [LOC_BEGP]
CALL PARSCSRC( CSOURC( S ), MXCHRS, LOC_BEGP,
----------------------------------------------------------------------------^
/home/mahshid2/smoke4.8/subsys/smoke/src/emqa/genrprt.f(516): error #6752: Since the OpenMP* DEFAULT(NONE) clause applies, the PRIVATE, SHARED, REDUCTION, FIRSTPRIVATE, or LASTPRIVATE attribute must be explicitly specified for every variable. [LOC_ENDP]
& LOC_ENDP, LF, NC, CHARS )
-------------------------------------------------------^
/home/mahshid2/smoke4.8/subsys/smoke/src/emqa/genrprt.f(516): error #6752: Since the OpenMP* DEFAULT(NONE) clause applies, the PRIVATE, SHARED, REDUCTION, FIRSTPRIVATE, or LASTPRIVATE attribute must be explicitly specified for every variable. [LF]
& LOC_ENDP, LF, NC, CHARS )
-----------------------------------------------------------------^
/home/mahshid2/smoke4.8/subsys/smoke/src/emqa/genrprt.f(516): error #6752: Since the OpenMP* DEFAULT(NONE) clause applies, the PRIVATE, SHARED, REDUCTION, FIRSTPRIVATE, or LASTPRIVATE attribute must be explicitly specified for every variable. [NC]
& LOC_ENDP, LF, NC, CHARS )
---------------------------------------------------------------------^
/home/mahshid2/smoke4.8/subsys/smoke/src/emqa/genrprt.f(516): error #6752: Since the OpenMP* DEFAULT(NONE) clause applies, the PRIVATE, SHARED, REDUCTION, FIRSTPRIVATE, or LASTPRIVATE attribute must be explicitly specified for every variable. [CHARS]
& LOC_ENDP, LF, NC, CHARS )
-------------------------------------------------------------------------^
/home/mahshid2/smoke4.8/subsys/smoke/src/emqa/genrprt.f(517): error #6752: Since the OpenMP* DEFAULT(NONE) clause applies, the PRIVATE, SHARED, REDUCTION, FIRSTPRIVATE, or LASTPRIVATE attribute must be explicitly specified for every variable. [FIRSTOUT]
IF( FIRSTOUT ) THEN
--------------------------------------------^
/home/mahshid2/smoke4.8/subsys/smoke/src/emqa/genrprt.f(518): error #6752: Since the OpenMP* DEFAULT(NONE) clause applies, the PRIVATE, SHARED, REDUCTION, FIRSTPRIVATE, or LASTPRIVATE attribute must be explicitly specified for every variable. [MDEV]
WRITE( MDEV,94020 ) N, S, ( TRIM(CHARS(K)) ,K=1,NC )
---------------------------------------------------^
/home/mahshid2/smoke4.8/subsys/smoke/src/emqa/genrprt.f(1883): catastrophic error: Too many errors, exiting
compilation aborted for /home/mahshid2/smoke4.8/subsys/smoke/src/emqa/genrprt.f (code 1)
make: *** [genrprt.o] Error 1
How can I fix this?
Thank you in advance,
Mahshid

Hi Mahshid,

I’m guessing your Makeinclude is not correctly modified for your system.
Please post it here and double check how your netcdf & ioapi libraries were compiled. The flags are compiler specific and need to be consistent and documented to get help troubleshooting compilation issues.

Christos

Actually, the flags come from the ioapi/Makeinclude.${BIN} (that ensures that the flags are consistent across the whole system (libraries plus SMOKE object-files).

In this particular case the code is OpenMP parallel – but someone has changed it so that it has OpenMP errors: it has variables whose parallel-status is not declared. Hence this code can NOT be compiled with an OpenMP enabled compiler. And the submitter of the last set of changes obviously did not test it against a normal compile-situation.

Re-build the entire system from the ground up – libraries and all – with OpenMP turned off, and work with that. Note that will cost you several hours per run for some of the parallelized SMOKE components, movesmrg in particular …

1 Like