Skip to content

Hello, I encountered different errors when compiling under different environments. #198

@ghost

Description

First compilation:
Loaded environment:
module load cmake/3.28
module load intel/2020u1
module load gcc/14.2.0
export CC=which gcc
export CXX=which g++
Error message:
[sx2321035@login1 testmpi]$ make
[ 1%] Building Fortran object src/komega/CMakeFiles/komega.dir/komega_vals.F90.o
[ 2%] Building Fortran object src/komega/CMakeFiles/komega.dir/komega_math.F90.o
f951: Fatal Error: Reading module ‘/fs0/software/intel/2020/compilers_and_libraries_2020.0.139/linux/mpi/intel64/include/mpi.mod’
at line 1 column 2: Unexpected EOF compilation terminated.
make[2]: *** [src/komega/CMakeFiles/komega.dir/komega_math.F90.o] Error 1
make[1]: *** [src/komega/CMakeFiles/komega.dir/all] Error 2
make: *** [all] Error 2

Second compilation:
Loaded environment:
module load cmake/3.28
module load intel/2020u1
module load gcc/14.2.0
export CC=which gcc
export CXX=which g++
export FC=ifort
export CC=icc
Error message:
[ 10%] Building C object src/CMakeFiles/HPhi.dir/check.c.o
/fs0/home/sx2321035/testmpi/HPhi-3.5.2/src/check.c(187): error: "idimmax" must be specified in a variable list at enclosing
OpenMP parallel pragma
#pragma omp parallel for default(none) reduction(+:comb_sum) private(tmp_sz, isite) firstprivate(idimmax, X)
^
compilation aborted for /fs0/home/sx2321035/testmpi/HPhi-3.5.2/src/check.c (code 2)
make[2]: *** [src/CMakeFiles/HPhi.dir/check.c.o] Error 2
make[1]: *** [src/CMakeFiles/HPhi.dir/all] Error 2
make: *** [all] Error 2

Third compilation:
Loaded environment:
module load cmake/3.28
module load intel/2019u3
module load gcc/14.2.0
export CC=which gcc
export CXX=which g++
export FC=ifort
export CC=icc

This time, the compilation succeeded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    answered (resolved)Answered by the developers and/or other experts, and acknowledged by the reporter.bug fix plannedA bug has been identified as a result of this issue, and a fix is planned but not yet implemented.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions