[Trilinos-Users] [EXTERNAL] trilinos-12.0.1 with intel compiler - exo2mat error
Giuseppe Calo
giuseppe.calo at cmcc.it
Thu Jun 25 04:14:58 EDT 2015
Hi all,
I have tried both:
- reinterpret_cast<VALUE_TYPE>(0) instead of the static_cast<VALUE_TYPE>(0)
bat I have always received:
>> [ 63%] Building CXX object packages/fei/base/CMakeFiles/fei_base.dir/snl_fei_RaggedTable_specialize.cpp.o
>> /usr/include/c++/4.4.6/bits/stl_pair.h(90): error: a value of type "int" cannot be used to initialize an entity of type "fei::ctg_set<int> *"
>> second(std::forward<_U2>(__y)) { }
- contrariwise with -DTrilinos_ENABLE_FEI=OFF \ i have received:
[ 63%] Building CXX object packages/stk/stk_classic/stk_util/stk_util/environment/CMakeFiles/stkclassic_util_env.dir/RuntimeMessage.cpp.o
/usr/include/boost/unordered/detail/unique.hpp(283): internal error: conv_class_prvalue_operand_to_lvalue: couldn't convert to ptr
emplace_empty_impl(arg0);
^
compilation aborted for /users/home/SOFTWARE/trilinos/trilinos-12.0.1-Source/packages/stk/stk_classic/stk_util/stk_util/environment/RuntimeMessage.cpp (code 4)
make[2]: *** [packages/stk/stk_classic/stk_util/stk_util/environment/CMakeFiles/stkclassic_util_env.dir/RuntimeMessage.cpp.o] Error 4
make[1]: *** [packages/stk/stk_classic/stk_util/stk_util/environment/CMakeFiles/stkclassic_util_env.dir/all] Error 2
make: *** [all] Error 2
sorry for the trouble, any other ideas?
--------------------------------------------------------------------
Giuseppe Calò
CMCC - Supercomputing Center
presso Complesso Ecotekne - Università del Salento
Prov.le Lecce - Monteroni - 73100 Lecce IT
http://www.cmcc.it/supercomputingcenter
Mobile (+39) 320 8190020
Mail giuseppe.calo at cmcc.it
--------------------------------------------------------------------
Il giorno 24/giu/2015, alle ore 15:14, "Williams, Alan B" <william at sandia.gov> ha scritto:
>
> I can't reproduce the error. Disabling the fei package may be the best solution.
>
> Alan
>
>
> On Jun 24, 2015, at 7:05 AM, Rossi Simone <simone.rossi at epfl.ch> wrote:
>
>> Hi Giuseppe,
>> you can try using a reinterpret_cast<VALUE_TYPE>(0) instead of the static_cast<VALUE_TYPE>(0).
>>
>> Anyway, do you really need to use FEI? If not, it's easy to just disable it :)
>>
>> Best,
>> Simone
>>
>>
>> Da: Giuseppe Calo [giuseppe.calo at cmcc.it]
>> Inviato: mercoledì 24 giugno 2015 11.19
>> A: Williams, Alan B
>> Cc: Rossi Simone; trilinos-users at trilinos.org
>> Oggetto: Re: [EXTERNAL] [Trilinos-Users] trilinos-12.0.1 with intel compiler - exo2mat error
>>
>> Hi William,
>>
>> now, with you suggestion, I have received:
>>
>> [ 63%] Building CXX object packages/fei/base/CMakeFiles/fei_base.dir/snl_fei_RaggedTable_specialize.cpp.o
>> /usr/include/c++/4.4.6/bits/stl_pair.h(90): error: a value of type "int" cannot be used to initialize an entity of type "fei::ctg_set<int> *"
>> second(std::forward<_U2>(__y)) { }
>> ^
>> detected during:
>> instantiation of "std::pair<_T1, _T2>::pair(_U1 &&, _U2 &&) [with _T1=int, _T2=fei::ctg_set<int> *, _U1=int, _U2=int]" at line 85 of "/users/home/SOFTWARE/trilinos/trilinos-12.0.1-Source/packages/fei/base/snl_fei_MapContig.hpp"
>> instantiation of "snl_fei::MapContig<VAL_TYPE>::value_type snl_fei::MapContig<VAL_TYPE>::iterator::operator*() [with VAL_TYPE=fei::ctg_set<int> *]" at line 37 of "/users/home/SOFTWARE/trilinos/trilinos-12.0.1-Source/packages/fei/base/snl_fei_RaggedTable_specialize.hpp"
>>
>> compilation aborted for /users/home/SOFTWARE/trilinos/trilinos-12.0.1-Source/packages/fei/base/snl_fei_RaggedTable_specialize.cpp (code 2)
>>
>> I use icc version 15.0.3 (gcc version 4.4.6 compatibility) and:
>>
>>> BOOST/boost-1.58.0
>>> EMOS/libemos-4.0.6
>>> IMPI/intel_mpi_5.0.3.048
>>> SZIP/szip-2.1_int15
>>> PARALLEL_NETCDF/parallel-netcdf-1.6.1
>>> GRIB_API/grib_api-1.13.1
>>> HDF5/hdf5-1.8.15-patch1_parallel
>>> MAGICS/magics-2.24.7
>>> NETCDF/netcdf-C_4.3.3.1-F_4.4.2_C++_4.2.1_parallel
>>> SWIG/swig-3.0.5
>>> UDUNITS/udunits-2.2.19
>>> CMAKE/cmake-3.3.0-rc1
>>
>>
>> Any suggestions?
>> Thanks
>> --------------------------------------------------------------------
>> Giuseppe Calò
>> CMCC - Supercomputing Center
>> presso Complesso Ecotekne - Università del Salento
>> Prov.le Lecce - Monteroni - 73100 Lecce IT
>> http://www.cmcc.it/supercomputingcenter
>>
>> Mobile (+39) 320 8190020
>> Mail giuseppe.calo at cmcc.it
>> --------------------------------------------------------------------
>>
>> Il giorno 24/giu/2015, alle ore 00:44, "Williams, Alan B" <william at sandia.gov> ha scritto:
>>
>>> It looks like line 85 of snl_fei_MapContig.hpp is constructing ‘value_type(0,0)’ where the second argument to value_type is a template-parameter (named VAL_TYPE) that is actually a pointer.
>>>
>>> So a quick work-around to try (if you don’t mind trying something) would be to cast that second ‘0’ like this: static_cast<VAL_TYPE>(0).
>>> It looks like that change may also need to be made on line 87.
>>>
>>> Which version of the intel compiler are you using? This code is quite old, and we’ve built it on intel versions 12 through 14 routinely.
>>>
>>> Alan
>>>
>>>
>>> From: Trilinos-Users [mailto:trilinos-users-bounces at trilinos.org] On Behalf Of Giuseppe Calo
>>> Sent: Tuesday, June 23, 2015 10:00 AM
>>> To: Rossi Simone
>>> Cc: trilinos-users at trilinos.org
>>> Subject: [EXTERNAL] Re: [Trilinos-Users] trilinos-12.0.1 with intel compiler - exo2mat error
>>>
>>> Many Thanks Simone,
>>>
>>> now the "make" get the 61% with:
>>>
>>> [ 63%] Building CXX object packages/fei/base/CMakeFiles/fei_base.dir/snl_fei_RaggedTable_specialize.cpp.o
>>> /usr/include/c++/4.4.6/bits/stl_pair.h(90): error: a value of type "int" cannot be used to initialize an entity of type "fei::ctg_set<int> *"
>>> second(std::forward<_U2>(__y)) { }
>>> ^
>>> detected during:
>>> instantiation of "std::pair<_T1, _T2>::pair(_U1 &&, _U2 &&) [with _T1=int, _T2=fei::ctg_set<int> *, _U1=int, _U2=int]" at line 85 of "/users/home/SOFTWARE/trilinos/trilinos-12.0.1-Source/packages/fei/base/snl_fei_MapContig.hpp"
>>> instantiation of "snl_fei::MapContig<VAL_TYPE>::value_type snl_fei::MapContig<VAL_TYPE>::iterator::operator*() [with VAL_TYPE=fei::ctg_set<int> *]" at line 37 of "/users/home/SOFTWARE/trilinos/trilinos-12.0.1-Source/packages/fei/base/snl_fei_RaggedTable_specialize.hpp"
>>>
>>> Any idea?
>>> Regards,
>>> --------------------------------------------------------------------
>>> Giuseppe Calò
>>> CMCC - Supercomputing Center
>>> presso Complesso Ecotekne - Università del Salento
>>> Prov.le Lecce - Monteroni - 73100 Lecce IT
>>> http://www.cmcc.it/supercomputingcenter
>>>
>>> Mobile (+39) 320 8190020
>>> Mail giuseppe.calo at cmcc.it
>>> --------------------------------------------------------------------
>>>
>>> Il giorno 23/giu/2015, alle ore 14:58, Rossi Simone <simone.rossi at epfl.ch> ha scritto:
>>>
>>>
>>> Dear Giuseppe,
>>> "MAT_F_DONT_COPY_DATA" is a matio_flags.
>>> My guess is that trillions cannot find Matio.h,
>>> or you do not have it.
>>> I compiled successfully seacas using the flag
>>> -D TPL_ENABLE_Matio=OFF
>>> in the configuration.
>>> I hope this helps,
>>> Best,
>>> Simone
>>>
>>> Simone Rossi,
>>> Duke University
>>> simone.rossi at duke.edu
>>>
>>> Da: Trilinos-Users [trilinos-users-bounces at trilinos.org] per conto di Giuseppe Calo [giuseppe.calo at cmcc.it]
>>> Inviato: martedì 23 giugno 2015 10.05
>>> A: trilinos-users at trilinos.org
>>> Cc: Giuseppe Calo
>>> Oggetto: [Trilinos-Users] trilinos-12.0.1 with intel compiler - exo2mat error
>>>
>>> Hi all,
>>> I need to install "trilinos-12.0.1" with the intel compiler.
>>>
>>> I have just compiled and installed (with the intel compiler):
>>>
>>> BOOST/boost-1.58.0
>>> EMOS/libemos-4.0.6
>>> IMPI/intel_mpi_5.0.3.048
>>> SZIP/szip-2.1_int15
>>> PARALLEL_NETCDF/parallel-netcdf-1.6.1
>>> GRIB_API/grib_api-1.13.1
>>> HDF5/hdf5-1.8.15-patch1_parallel
>>> MAGICS/magics-2.24.7
>>> NETCDF/netcdf-C_4.3.3.1-F_4.4.2_C++_4.2.1_parallel
>>> SWIG/swig-3.0.5
>>> UDUNITS/udunits-2.2.19
>>> CMAKE/cmake-3.3.0-rc1
>>>
>>> Before to run "make":
>>>
>>> - I load the current environment module:
>>>
>>> BOOST/boost-1.58.0
>>> EMOS/libemos-4.0.6
>>> IMPI/intel_mpi_5.0.3.048
>>> SZIP/szip-2.1_int15
>>> PARALLEL_NETCDF/parallel-netcdf-1.6.1
>>> GRIB_API/grib_api-1.13.1
>>> HDF5/hdf5-1.8.15-patch1_parallel
>>> MAGICS/magics-2.24.7
>>> NETCDF/netcdf-C_4.3.3.1-F_4.4.2_C++_4.2.1_parallel
>>> SWIG/swig-3.0.5
>>> UDUNITS/udunits-2.2.19
>>> CMAKE/cmake-3.3.0-rc1
>>>
>>> - run "cmake" with:
>>>
>>> cmake \
>>> -DMPI_BASE_DIR=/users/home/opt/intel/impi/5.0.3.048/intel64 \
>>> -DCMAKE_INSTALL_PREFIX:FILEPATH="/users/home/opt-intel_2015.3.187/trilinos/trilinos_12.0.1" \
>>> -DMPI_EXEC:FILEPATH=/users/home/opt/intel/impi/5.0.3.048/intel64/bin/mpirun \
>>> -DBLAS_LIBRARY_DIRS:FILEPATH=/users/home/opt/intel/composer_xe_2015.3.187/mkl/lib/intel64 \
>>> -DBLAS_LIBRARY_NAMES:STRING=mkl_rt \
>>> -D LAPACK_LIBRARY_NAMES:STRING=mkl_rt \
>>> -DLAPACK_LIBRARY_DIRS:FILEPATH=/users/home/opt/intel/composer_xe_2015.3.187/mkl/lib/intel64 \
>>> -DCMAKE_EXE_LINKER_FLAGS="-L/users/home/opt-intel_2015.3.187/netcdf/netcdf-C_4.3.3.1-F_4.4.2_C++_4.2.1-parallel/lib -lnetcdf -L/users/home/opt/intel/composer_xe_2015.3.187/compiler/lib/intel64 -L/users/home/opt/intel/composer_xe_2015.3.187/mkl/lib/intel64" \
>>> -DTPL_ENABLE_MPI=ON \
>>> -DTrilinos_ENABLE_ALL_PACKAGES=ON \
>>> -DTPL_ENABLE_GLM=OFF \
>>> -DTrilinos_ENABLE_CXX11=ON \
>>> -D Trilinos_ENABLE_Piro:BOOL=ON \
>>> -D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
>>> -D Trilinos_ENABLE_Netcdf=ON \
>>> -D Trilinos_ENABLE_OpenMP:BOOL=ON \
>>> -D Trilinos_ENABLE_Epetra:BOOL=ON \
>>> -D Trilinos_ENABLE_Teuchos:BOOL=ON \
>>> -D Trilinos_ENABLE_CTrilinos:BOOL=ON \
>>> -D Trilinos_ENABLE_ForTrilinos:BOOL=ON \
>>> -D DART_TESTING_TIMEOUT:STRING=600 \
>>> -D Trilinos_EXTRA_LINK_FLAGS:STRING="$FORTRAN_LIBRARIES" \
>>> -D BUILD_SHARED_LIBS:BOOL=ON \
>>> -D CMAKE_CXX_COMPILER:STRING=/users/home/opt/intel/impi/5.0.3.048/intel64/bin/mpiicpc \
>>> -D CMAKE_Fortran_FLAGS:STRING="-lgfortran" \
>>> /users/home/SOFTWARE/trilinos/trilinos-12.0.1-Source
>>>
>>> but I always receive:
>>>
>>> Scanning dependencies of target exo2mat
>>> [ 41%] Building C object packages/seacas/applications/exo2mat/CMakeFiles/exo2mat.dir/exo2mat.c.o
>>> /users/home/SOFTWARE/trilinos/trilinos-12.0.1-Source/packages/seacas/applications/exo2mat/exo2mat.c: In function ‘matPutStr’:
>>> /users/home/SOFTWARE/trilinos/trilinos-12.0.1-Source/packages/seacas/applications/exo2mat/exo2mat.c:163: error: ‘MAT_F_DONT_COPY_DATA’ undeclared (first use in this function)
>>> /users/home/SOFTWARE/trilinos/trilinos-12.0.1-Source/packages/seacas/applications/exo2mat/exo2mat.c:163: error: (Each undeclared identifier is reported only once
>>> /users/home/SOFTWARE/trilinos/trilinos-12.0.1-Source/packages/seacas/applications/exo2mat/exo2mat.c:163: error: for each function it appears in.)
>>> ……..
>>> …
>>> .
>>>
>>> Can someone help me?
>>> Thanks.
>>> --------------------------------------------------------------------
>>> Giuseppe Calò
>>> CMCC - Supercomputing Center
>>> presso Complesso Ecotekne - Università del Salento
>>> Prov.le Lecce - Monteroni - 73100 Lecce IT
>>> http://www.cmcc.it/supercomputingcenter
>>>
>>> Mobile (+39) 320 8190020
>>> Mail giuseppe.calo at cmcc.it
>>> --------------------------------------------------------------------
>>>
>>>
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20150625/af2e6dcc/attachment-0001.html>
More information about the Trilinos-Users
mailing list