configuring DOLFIN with icc failes to build with scotch because SCOTCH_TEST_RUNS failed
because mpi.h is included after stdio.h in scotch_test_lib.cpp
I get
impi/4.0.2.003/include64/mpicxx.h(45): catastrophic error: #error directive: "SEEK_SET is #defined but must not be for the C++ binding of MPI. Include mpi.h before stdio.h"
full (relevant) log with "-DSCOTCH_DEBUG:BOOL=ON"
-- Performing test SCOTCH_TEST_RUNS
-- Performing test SCOTCH_TEST_RUNS - Failed
-- [ /tmp/easy/DOLFIN/1.0.0/ictce-4.0.6-Python-2.7.3/ictce-4.0.6-Python-2.7.3/dolfin-1.0.0/cmake/modules/FindScotchPT.cmake:171 ] SCOTCH_TEST_LIB_COMPILED = FALSE
-- [ /tmp/easy/DOLFIN/1.0.0/ictce-4.0.6-Python-2.7.3/ictce-4.0.6-Python-2.7.3/dolfin-1.0.0/cmake/modules/FindScotchPT.cmake:173 ] SCOTCH_TEST_LIB_COMPILE_OUTPUT = Change Dir: /tmp/easy/DOLFIN/1.0.0/ictce-4.0.6-Python-2.7.3/ictce-4.0.6-Python-2.7.3/dolfin-1.0.0/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/tmp/easy/DOLFIN/1.0.0/ictce-4.0.6-Python-2.7.3/ictce-4.0.6-Python-2.7.3/dolfin-1.0.0/CMakeFiles/CMakeTmp'
/vscmnt/gent_gulpin/_apps_gent/gengar/harpertown/software/CMake/2.8.4-ictce-4.0.6/bin/cmake -E cmake_progress_report /tmp/easy/DOLFIN/1.0.0/ictce-4.0.6-Python-2.7.3/ictce-4.0.6-Python-2.7.3/dolfin-1.0.0/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/scotch_test_lib.cpp.o
/apps/gent/gengar/harpertown/software/impi/4.0.2.003/bin64/mpiicpc -xHOST -O2 -I/apps/gent/gengar/harpertown/software/SCOTCH/5.1.12b_esmumps-ictce-4.0.6/include -I/apps/gent/gengar/harpertown/software/impi/4.0.2.003/include64 -o CMakeFiles/cmTryCompileExec.dir/scotch_test_lib.cpp.o -c /tmp/easy/DOLFIN/1.0.0/ictce-4.0.6-Python-2.7.3/ictce-4.0.6-Python-2.7.3/dolfin-1.0.0/CMakeFiles/scotch_test_lib.cpp
/apps/gent/gengar/harpertown/software/impi/4.0.2.003/include64/mpicxx.h(45): catastrophic error: #error directive: "SEEK_SET is #defined but must not be for the C++ binding of MPI. Include mpi.h before stdio.h"
#error "SEEK_SET is #defined but must not be for the C++ binding of MPI. Include mpi.h before stdio.h"
^
compilation aborted for /tmp/easy/DOLFIN/1.0.0/ictce-4.0.6-Python-2.7.3/ictce-4.0.6-Python-2.7.3/dolfin-1.0.0/CMakeFiles/scotch_test_lib.cpp (code 4)
gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/scotch_test_lib.cpp.o] Error 4
gmake[1]: Leaving directory `/tmp/easy/DOLFIN/1.0.0/ictce-4.0.6-Python-2.7.3/ictce-4.0.6-Python-2.7.3/dolfin-1.0.0/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2
-- [ /tmp/easy/DOLFIN/1.0.0/ictce-4.0.6-Python-2.7.3/ictce-4.0.6-Python-2.7.3/dolfin-1.0.0/cmake/modules/FindScotchPT.cmake:175 ] SCOTCH_TEST_LIB_EXITCODE =
-- [ /tmp/easy/DOLFIN/1.0.0/ictce-4.0.6-Python-2.7.3/ictce-4.0.6-Python-2.7.3/dolfin-1.0.0/cmake/modules/FindScotchPT.cmake:177 ] SCOTCH_TEST_LIB_OUTPUT =
-- Found ZLIB: /usr/include (found version "1.2.3")
-- Performing test SCOTCH_ZLIB_TEST_RUNS
-- Performing test SCOTCH_ZLIB_TEST_RUNS - Failed
-- [ /tmp/easy/DOLFIN/1.0.0/ictce-4.0.6-Python-2.7.3/ictce-4.0.6-Python-2.7.3/dolfin-1.0.0/cmake/modules/FindScotchPT.cmake:214 ] SCOTCH_ZLIB_TEST_LIB_COMPILED = FALSE
-- [ /tmp/easy/DOLFIN/1.0.0/ictce-4.0.6-Python-2.7.3/ictce-4.0.6-Python-2.7.3/dolfin-1.0.0/cmake/modules/FindScotchPT.cmake:216 ] SCOTCH_ZLIB_TEST_LIB_COMPILE_OUTPUT = Change Dir: /tmp/easy/DOLFIN/1.0.0/ictce-4.0.6-Python-2.7.3/ictce-4.0.6-Python-2.7.3/dolfin-1.0.0/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/tmp/easy/DOLFIN/1.0.0/ictce-4.0.6-Python-2.7.3/ictce-4.0.6-Python-2.7.3/dolfin-1.0.0/CMakeFiles/CMakeTmp'
/vscmnt/gent_gulpin/_apps_gent/gengar/harpertown/software/CMake/2.8.4-ictce-4.0.6/bin/cmake -E cmake_progress_report /tmp/easy/DOLFIN/1.0.0/ictce-4.0.6-Python-2.7.3/ictce-4.0.6-Python-2.7.3/dolfin-1.0.0/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/scotch_test_lib.cpp.o
/apps/gent/gengar/harpertown/software/impi/4.0.2.003/bin64/mpiicpc -xHOST -O2 -I/apps/gent/gengar/harpertown/software/SCOTCH/5.1.12b_esmumps-ictce-4.0.6/include -I/apps/gent/gengar/harpertown/software/impi/4.0.2.003/include64 -o CMakeFiles/cmTryCompileExec.dir/scotch_test_lib.cpp.o -c /tmp/easy/DOLFIN/1.0.0/ictce-4.0.6-Python-2.7.3/ictce-4.0.6-Python-2.7.3/dolfin-1.0.0/CMakeFiles/scotch_test_lib.cpp
/apps/gent/gengar/harpertown/software/impi/4.0.2.003/include64/mpicxx.h(45): catastrophic error: #error directive: "SEEK_SET is #defined but must not be for the C++ binding of MPI. Include mpi.h before stdio.h"
#error "SEEK_SET is #defined but must not be for the C++ binding of MPI. Include mpi.h before stdio.h"
^
compilation aborted for /tmp/easy/DOLFIN/1.0.0/ictce-4.0.6-Python-2.7.3/ictce-4.0.6-Python-2.7.3/dolfin-1.0.0/CMakeFiles/scotch_test_lib.cpp (code 4)
gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/scotch_test_lib.cpp.o] Error 4
gmake[1]: Leaving directory `/tmp/easy/DOLFIN/1.0.0/ictce-4.0.6-Python-2.7.3/ictce-4.0.6-Python-2.7.3/dolfin-1.0.0/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2
to clarify, this is when building dolfin-1.0.0