compiling scotch with intel compiler failed
We are trying to compile SCOTCH on our RDHPC with intel compiler. We have been able to compile it with GNU but intel failed due to the following reason:
if (fscanf (stream, "%" PRIu64 "%" PRIu64,
My understanding is that the PRIu64 etc are MACROS that are defined in the include file. For some reason, GNU is able to find those and Intel is not. Here are the steps I took with Cmake and the error:
cd scotch-master
#loaded modules
cmake/3.20.1
intel/2022.1.2
impi/2022.1.2
netcdf/4.9.0
szip/2.1.1
bacio/2.4.1
zlib/1.2.11
hdf5/1.12.2
g2/3.4.5
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/path/to/install -DCMAKE_BUILD_TYPE=Release ..
make -j
error:
/scratch1/NCEPDEV/stmp2/Ali.Abdolali/Source/scotch-master/src/libscotch/common_integer.c(327): error: expected a ")"
if (fscanf (stream, "%d%" PRIu64,
^
/scratch1/NCEPDEV/stmp2/Ali.Abdolali/Source/scotch-master/src/libscotch/common_integer.c(352): error: expected a ")"
if (fprintf (stream, "%" PRIu64 "\t%" PRIu64 "\n",
^
/scratch1/NCEPDEV/stmp2/Ali.Abdolali/Source/scotch-master/src/libscotch/common_integer.c(372): warning #267: the format string requires additional arguments
if (fprintf (stream, "1\n%d\t%" PRIu64 "\n",
^
/scratch1/NCEPDEV/stmp2/Ali.Abdolali/Source/scotch-master/src/libscotch/common_integer.c(372): error: expected a ")"
if (fprintf (stream, "1\n%d\t%" PRIu64 "\n",
^
compilation aborted for /scratch1/NCEPDEV/stmp2/Ali.Abdolali/Source/scotch-master/src/libscotch/common_integer.c (code 2)
make[2]: *** [src/libscotch/CMakeFiles/scotch.dir/common_integer.c.o] Error 2
make[1]: *** [src/libscotch/CMakeFiles/scotch.dir/all] Error 2
make: *** [all] Error 2
[Ali.Abdolali@hfe06 build]$ vi error
[Ali.Abdolali@hfe06 build]$ make -j > error
/bin/sh: fork: retry: No child processes
make[2]: vfork: Resource temporarily unavailable
icc: error #10103: can't fork process: Resource temporarily unavailable
icc: error #10103: can't fork process: Resource temporarily unavailable
/bin/sh: fork: retry: No child processes
icc: error #10103: can't fork process: Resource temporarily unavailable
/bin/sh: fork: retry: No child processes
make[2]: *** [src/libscotch/CMakeFiles/scotch.dir/library_arch_build_f.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [src/libscotch/CMakeFiles/scotch.dir/library_arch_dom.c.o] Error 1
make[2]: *** [src/libscotch/CMakeFiles/scotch.dir/library_arch_dom_f.c.o] Error 1
/bin/sh: fork: retry: No child processes
icc: error #10103: can't fork process: Resource temporarily unavailable
/bin/sh: fork: retry: No child processes
make[2]: *** [src/libscotch/CMakeFiles/scotch.dir/library_arch_f.c.o] Error 1
/bin/sh: fork: retry: No child processes
icc: error #10103: can't fork process: Resource temporarily unavailable
make[2]: *** [src/libscotch/CMakeFiles/scotch.dir/library_common_f.c.o] Error 1
icc: error #10103: can't fork process: Resource temporarily unavailable
/bin/sh: fork: retry: No child processes
icc: error #10103: can't fork process: Resource temporarily unavailable
make[2]: *** [src/libscotch/CMakeFiles/scotch.dir/kgraph_map_fm.c.o] Error 1
make[2]: *** [src/libscotch/CMakeFiles/scotch.dir/kgraph_map_cp.c.o] Error 1
icc: error #10103: can't fork process: Resource temporarily unavailable
icc: error #10103: can't fork process: Resource temporarily unavailable
make[2]: *** [src/libscotch/CMakeFiles/scotch.dir/library_graph_base_f.c.o] Error 1
make[2]: *** [src/libscotch/CMakeFiles/scotch.dir/library_graph.c.o] Error 1
icc: error #10103: can't fork process: Resource temporarily unavailable
icc: error #10103: can't fork process: Resource temporarily unavailable
make[2]: *** [src/libscotch/CMakeFiles/scotch.dir/library_graph_coarsen.c.o] Error 1
make[2]: *** [src/libscotch/CMakeFiles/scotch.dir/context.c.o] Error 1
icc: error #10103: can't fork process: Resource temporarily unavailable
make[2]: *** [src/libscotch/CMakeFiles/scotch.dir/library_graph_color.c.o] Error 1
/scratch1/NCEPDEV/stmp2/Ali.Abdolali/Source/scotch-master/src/libscotch/common_integer.c(301): error: expected a ")"
if (fscanf (stream, "%" PRIu64 "%" PRIu64,
^
/scratch1/NCEPDEV/stmp2/Ali.Abdolali/Source/scotch-master/src/libscotch/common_integer.c(327): warning #267: the format string requires additional arguments
if (fscanf (stream, "%d%" PRIu64,
^
/scratch1/NCEPDEV/stmp2/Ali.Abdolali/Source/scotch-master/src/libscotch/common_integer.c(327): error: expected a ")"
if (fscanf (stream, "%d%" PRIu64,
^
/scratch1/NCEPDEV/stmp2/Ali.Abdolali/Source/scotch-master/src/libscotch/common_integer.c(352): error: expected a ")"
if (fprintf (stream, "%" PRIu64 "\t%" PRIu64 "\n",
^
/scratch1/NCEPDEV/stmp2/Ali.Abdolali/Source/scotch-master/src/libscotch/common_integer.c(372): warning #267: the format string requires additional arguments
if (fprintf (stream, "1\n%d\t%" PRIu64 "\n",
^
/scratch1/NCEPDEV/stmp2/Ali.Abdolali/Source/scotch-master/src/libscotch/common_integer.c(372): error: expected a ")"
if (fprintf (stream, "1\n%d\t%" PRIu64 "\n",
^
compilation aborted for /scratch1/NCEPDEV/stmp2/Ali.Abdolali/Source/scotch-master/src/libscotch/common_integer.c (code 2)
make[2]: *** [src/libscotch/CMakeFiles/scotch.dir/common_integer.c.o] Error 2
make[1]: *** [src/libscotch/CMakeFiles/scotch.dir/all] Error 2
make: *** [all] Error 2