[Trilinos-Users] Intel compilers

Villa Andrea (RSE) Andrea.Villa at rse-web.it
Mon May 30 09:01:51 EDT 2016


Dear Trilinos developers I'm currently experiencing some problems compiling the version 12 of Trilinos with Intel compilers. I have used the same script for versions: 11.10.2 and 12.4.2. The script is attached below. I have used, in both cases, the Intel compiler included in the parallel studio 2016. The same script fails only with the second version (12.4.2).
The error is:


Scanning dependencies of target last_lib
[  0%] Building C object CMakeFiles/last_lib.dir/last_lib_dummy.c.o
Linking C static library liblast_lib.a
xiar: executing 'ar'
[  0%] Built target last_lib
Scanning dependencies of target gtest
[  0%] Building CXX object commonTools/gtest/CMakeFiles/gtest.dir/gtest/gtest-all.cc.o
/usr/include/c++/4.3/ext/new_allocator.h(114): error: a value of type "long" cannot be used to initialize an entity of type "char *"
  	{ ::new((void *)__p) _Tp(std::forward<_Args>(__args)...); }
  	                         ^
          detected during:
            instantiation of "void __gnu_cxx::new_allocator<_Tp>::construct(__gnu_cxx::new_allocator<_Tp>::pointer, _Args &&...) [with _Tp=char *, _Args=<long>]" at line 704 of "/usr/include/c++/4.3/bits/stl_vector.h"
            instantiation of "void std::vector<_Tp, _Alloc>::push_back(_Args &&...) [with _Tp=char *, _Alloc=std::allocator<char *>, _Args=<long>]" at line 7384 of "/home/TTD/trilinos-12.6.3-Source/commonTools/gtest/gtest/gtest-all.cc"

compilation aborted for /home/TTD/trilinos-12.6.3-Source/commonTools/gtest/gtest/gtest-all.cc (code 2)
make[2]: *** [commonTools/gtest/CMakeFiles/gtest.dir/gtest/gtest-all.cc.o] Error 2
make[1]: *** [commonTools/gtest/CMakeFiles/gtest.dir/all] Error 2
make: *** [all] Error 2


Do you have any hint to develop a work around?
I can provide more data or tests if needed.

Thank you very much,
Andrea Villa.




Script Used---------------------------------------------------------------------------------------------

EXTRA_ARGS=$@

/home/TTD/gnuCmake/bin/cmake \
-D CMAKE_BUILD_TYPE:STRING=RELEASE \
-D CMAKE_CXX_FLAGS:STRING="-DBOOST_SP_DISABLE_THREADS" \
-D CMAKE_INSTALL_PREFIX:PATH=/home/TTD/intelTrilinos-12.4.2 \
-D CMAKE_C_FLAGS:STRING="-DMPICH_IGNORE_CXX_SEEK" \
-D CMAKE_CXX_FLAGS:STRING="-DMPICH_IGNORE_CXX_SEEK" \
-D CMAKE_LINKER:FILEPATH=/opt/intel/ParallelStudio_XE_2016/bin/xild \
-D CMAKE_AR:FILEPATH=/opt/intel/ParallelStudio_XE_2016/bin/xiar \
-D MEMORYCHECK_COMMAND:FILEPATH=/usr/bin \
-D DART_TESTING_TIMEOUT:STRING=600 \
-D TPL_ENABLE_Boost:BOOL=OFF \
-D TPL_ENABLE_MPI:BOOL=ON \
-D TPL_ENABLE_HDF5:BOOL=ON \
-D TPL_ENABLE_Netcdf:BOOL=OFF \
-D TPL_ENABLE_Matio=OFF \
-D BUILD_SHARED_LIBS:BOOL=OFF \
-D BLAS_INCLUDE_DIRS:PATH=/opt/intel/ParallelStudio_XE_2016/mkl/include/ \
-D BLAS_LIBRARY_DIRS:PATH=/opt/intel/ParallelStudio_XE_2016/mkl/lib/intel64/ \
-D BLAS_LIBRARY_NAMES:STRING="mkl_intel_lp64; mkl_sequential; mkl_core" \
-D LAPACK_INCLUDE_DIRS:PATH=/opt/intel/ParallelStudio_XE_2016/mkl/include/ \
-D LAPACK_LIBRARY_DIRS:PATH=/opt/intel/ParallelStudio_XE_2016/mkl/lib/intel64/ \
-D LAPACK_LIBRARY_NAMES:STRING="mkl_intel_lp64" \
-D MPI_C_COMPILER:FILEPATH="/opt/intel/ParallelStudio_XE_2016/impi/5.1.3.181/bin64/mpiicc" \
-D MPI_CXX_COMPILER:FILEPATH="/opt/intel/ParallelStudio_XE_2016/impi/5.1.3.181/bin64/mpiicpc" \
-D MPI_Fortan_COMPILER:FILEPATH="/opt/intel/ParallelStudio_XE_2016/impi/5.1.3.181/bin64/mpiifort" \
-D MPI_EXEC:FILEPATH=/opt/intel/ParallelStudio_XE_2016/impi/5.1.3.181/bin64/mpirun \
-D Trilinos_EXTRA_LINK_FLAGS:STRING="-Wl,-rpath,/opt/intel/ParallelStudio_XE_2016/mkl/intel64/ -Wl,-rpath,/opt/intel/ParallelStudio_XE_2016/impi/5.1.3.181/bin64" \
-D HDF5_INCLUDE_DIRS:PATH=/home/TTD/intelHdf5-1.8.17/include \
-D HDF5_LIBRARY_DIRS:PATH=/home/TTD/intelHdf5-1.8.17/lib \
-D Trilinos_ENABLE_ALL_PACKAGES:BOOL=ON \
-D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
-D Trilinos_ENABLE_Zoltan:BOOL=ON \
-D Trilinos_ENABLE_SEACAS:BOOL=OFF \
-D Trilinos_ENABLE_TESTS:BOOL=OFF \
$EXTRA_ARGS \
..
RSE SpA ha adottato il Modello Organizzativo ai sensi del D.Lgs.231/2001, in forza del quale l'assunzione di obbligazioni da parte della Società avviene con firma di un procuratore, munito di idonei poteri.
RSE adopts a Compliance Programme under the Italian Law (D.Lgs.231/2001). According to this RSE Compliance Programme, any commitment of RSE is taken by the signature of one Representative granted by a proper Power of Attorney. Le informazioni contenute in questo messaggio di posta elettronica sono riservate e confidenziali e ne e' vietata la diffusione in qualsiasi modo o forma. Qualora Lei non fosse la persona destinataria del presente messaggio, La invitiamo a non diffonderlo e ad eliminarlo, dandone gentilmente comunicazione al mittente. The information included in this e-mail and any attachments are confidential and may also be privileged. If you are not the correct recipient, you are kindly requested to notify the sender immediately, to cancel it and not to disclose the contents to any other person.


More information about the Trilinos-Users mailing list