[Trilinos-Users] [EXTERNAL] Trilinos installation error on Lonestar5

Booth, Joshua Dennis jdbooth at sandia.gov
Mon Apr 18 15:01:48 EDT 2016


Hello,


The reason for the failure looks to be our use of -Wno-pedantic.

We used this for internal reason because of an older compiler we had to build on and the fact they used warnings as error.

This is an older way and maybe mpich is having a problem with it as I use openmpi all the time with 4.9.0 without an error.

However this is very important as many people use mpich.


I have been looking around to find a system with mpich with gcc here with no luck to test it myself, and only want to build it as a last resort, since building new mpi libs can be time consuming.


If you could do two things for me, I can help to see if I can fix this.

1. Using the simple code below, please try to compile with mpich c and compiler flag -Wno-pedantic and see if you get the same error message.

2.  Using the simple code below, please try to compile with mpich c and compiler flag -Wno-error=pedantic.


Option 2 is the newer way, however there are many bug reports on option 2 not working correctly.  So I want to test if either work for you before testing options on different compilers we need to use.


Simple code to see if compiler flag working:


int main()

{

  int x = 3;

   return 0;

}



Thank you and sorry for both the delay and trouble.


Joshua Booth




________________________________
From: Trilinos-Users <trilinos-users-bounces at trilinos.org> on behalf of V M Krushnarao Kotteda <kvmkrao at gmail.com>
Sent: Saturday, April 16, 2016 4:12 PM
To: trilinos-users at trilinos.org; trilinos-framework at software.sandia.gov
Subject: [EXTERNAL] [Trilinos-Users] Trilinos installation error on Lonestar5

Hi ,

In lonestar, I loaded gcc4.9 module and installed the following packages:

mpich, boost, netcdf, blas/lapack

I downloaded trilinos git version (git clone https://github.com/trilinos/Trilinos.git) and set the path of various third party libraries in the configuration file.

> cat  configuration file

cmake \
  -D Trilinos_ENABLE_CXX11=ON \
  -D Trilinos_ENABLE_Ifpack:BOOL=ON \
  -D Trilinos_ENABLE_Epetra:BOOL=ON \
  -D Trilinos_ENABLE_Piro:BOOL=ON \
  -D Trilinos_ENABLE_Stratimikos=ON \
  -D Trilinos_ENABLE_Phalanx=ON \
  -D Trilinos_ENABLE_Sacado=ON \
  -D Trilinos_ENABLE_Stokhos=ON \
  -D Trilinos_ENABLE_EXPLICIT_INSTANTIATION=ON \
        -D Trilinos_ENABLE_MueLu:BOOL=ON \
        -D Trilinos_ENABLE_Fortran:BOOL=ON \
        -D CMAKE_C_COMPILER=/work/04051/vkotteda/lonestar/Trilinos/support/binn/mpich/bin/mpicc \
        -D CMAKE_CXX_COMPILER=/work/04051/vkotteda/lonestar/Trilinos/support/binn/mpich/bin/mpicxx \
        -D CMAKE_Fortran_COMPILER=/work/04051/vkotteda/lonestar/Trilinos/support/binn/mpich/bin/mpif90 \
        -D BUILD_SHARED_LIBS=ON \
       -D TPL_ENABLE_Boost:BOOL=ON \
  -D CMAKE_C_FLAGS:STRING="-O2 -g" \
  -D CMAKE_CXX_FLAGS:STRING="-O2 -g -Wno-deprecated-declarations -Wno-sign-compare" \
       -D BOOST_INCLUDE_DIRS=/work/04051/vkotteda/lonestar/Trilinos/support/binn/boost/include \
       -D BOOST_LIBRARY_DIRS=/work/04051/vkotteda/lonestar/Trilinos/support/binn/boost/lib \
       -D TPL_ENABLE_BoostLib:BOOL=ON \
      -D TPL_ENABLE_Netcdf:BOOL=ON \
     -D TPL_Netcdf_INCLUDE_DIRS:PATH=/work/04051/vkotteda/lonestar/Trilinos/support/binn/netcdf/include \
     -D Netcdf_LIBRARY_DIRS:PATH=/work/04051/vkotteda/lonestar/Trilinos/support/binn/netcdf/lib \
     -D TPL_BLAS_LIBRARIES:FILEPATH=/work/04051/vkotteda/lonestar/Trilinos/support/lapack-3.6.0/lib/libblas.so.3 \
     -D TPL_LAPACK_LIBRARIES:FILEPATH=/work/04051/vkotteda/lonestar/Trilinos/support/lapack-3.6.0/lib/liblapack.so.3 \
     -D TPL_ENABLE_BLAS:BOOL=ON \
     -D TPL_BLAS_LIBRARIES:FILEPATH=/work/04051/vkotteda/lonestar/Trilinos/support/binn/lapack/lib64/libblas.so.3 \
     -D TPL_ENABLE_LAPACK:BOOL=ON \
     -D TPL_LAPACK_LIBRARIES:FILEPATH=/work/04051/vkotteda/lonestar/Trilinos/support/binn/lapack/lib64/liblapack.so.3 \
     -D CMAKE_INSTALL_PREFIX:PATH=/work/04051/vkotteda/lonestar/Trilinos/install \
/work/04051/vkotteda/lonestar/Trilinos/src

The build was done successfully but I got the following error during make:

Scanning dependencies of target amesos
[ 44%] Building CXX object packages/amesos/src/CMakeFiles/amesos.dir/Amesos_Status.cpp.o
[ 44%] Building CXX object packages/amesos/src/CMakeFiles/amesos.dir/Amesos_Control.cpp.o
[ 44%] Building CXX object packages/amesos/src/CMakeFiles/amesos.dir/Amesos_Support.cpp.o
[ 44%] Building C object packages/amesos/src/CMakeFiles/amesos.dir/SuiteSparse/AMD/Source/amesos_amd_1.c.o
[ 44%] Building C object packages/amesos/src/CMakeFiles/amesos.dir/SuiteSparse/AMD/Source/amesos_amd_2.c.o
[ 44%] Building C object packages/amesos/src/CMakeFiles/amesos.dir/SuiteSparse/AMD/Source/amesos_amd_aat.c.o
cc1: error: unrecognized command line option "-Wno-pedantic"
cc1: error: unrecognized command line option "-Wno-pedantic"
cc1: error: unrecognized command line option "-Wno-pedantic"
make[2]: *** [packages/amesos/src/CMakeFiles/amesos.dir/SuiteSparse/AMD/Source/amesos_amd_1.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [packages/amesos/src/CMakeFiles/amesos.dir/SuiteSparse/AMD/Source/amesos_amd_aat.c.o] Error 1
make[2]: *** [packages/amesos/src/CMakeFiles/amesos.dir/SuiteSparse/AMD/Source/amesos_amd_2.c.o] Error 1
make[1]: *** [packages/amesos/src/CMakeFiles/amesos.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 44%] Built target thyracore

Could you please let me know how can I get rid of this error?

Thank you in advance.


Best Regards,
V M Krushnarao Kotteda
Postdoc fellow
Department of Mechanical Engineering
The University of Texas at El Paso
500 W University Ave, El Paso, TX-79968

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20160418/c2ed8891/attachment.html>


More information about the Trilinos-Users mailing list