[Trilinos-Users] [EXTERNAL] error configuring trilinos

Thompson, KT kgt at lanl.gov
Fri Oct 23 09:47:42 EDT 2015


Take a look at the Intel flags ‘-gcc-name=name’, ‘-gcc-version’ and related options.  When configuring Trilinos, add the appropriate options. For example,

cmake –DCMAKE_CXX_FLAGS=”-gxx-name=g++-4.7” … /path/to/source

-kt

From: Trilinos-Users [mailto:trilinos-users-bounces at trilinos.org] On Behalf Of Irena Johnson
Sent: Friday, October 23, 2015 6:37 AM
To: Andrey Prokopenko <aprokop at sandia.gov>
Cc: trilinos-users at trilinos.org
Subject: Re: [Trilinos-Users] [EXTERNAL] error configuring trilinos

Is it possible to build trilinos with Intel compiler 2015, using a non-native gcc-4.9.1 ?

Thank you

Irena

On Fri, Oct 16, 2015 at 11:58 AM, Irena Johnson <ijohnson at pppl.gov<mailto:ijohnson at pppl.gov>> wrote:
Dear Trilinos Support,

I am getting errors (pasted below) while trying to build trilinos with Intel 2015.u1 and using non-native gcc-4.9.1 on a rhel 6 system.
I have attached the configuration script. Please advise. Thank you,
Irena


 [100%] Linking CXX executable VerifyFortranC
    /usr/pppl/cmake/3.4.0-rc1/bin/cmake -E cmake_link_script CMakeFiles/VerifyFortranC.dir/link.txt --verbose=1
    /usr/pppl/intel/2015.u1/bin/icpc   -O2 -std=c++11 -ggdb -Wno-sign-compare -O3 -DNDEBUG   CMakeFiles/VerifyFortranC.dir/main.c.o CMakeFiles/VerifyFortranC.dir/VerifyC.c.o CMakeFiles/VerifyFortranC.dir/VerifyCXX.cxx.o  -o VerifyFortranC libVerifyFortran.a -lifport -lifcore -lpthread
    ld: warning: libimf.so, needed by /usr/pppl/intel/2015.u1/composer_xe_2015.1.133/compiler/lib/intel64/libifport.so.5, not found (try using -rpath or -rpath-link)
    ld: warning: libintlc.so.5, needed by /usr/pppl/intel/2015.u1/composer_xe_2015.1.133/compiler/lib/intel64/libifport.so.5, not found (try using -rpath or -rpath-link)
    CMakeFiles/VerifyFortranC.dir/main.c.o: In function `main':
    /usr/pppl/cmake/3.4.0-rc1/share/cmake-3.4/Modules/FortranCInterface/Verify/main.c:14: undefined reference to `VerifyFortran'
    gmake[2]: *** [VerifyFortranC] Error 1
    gmake[2]: Leaving directory `/pfs/tmp/ijohnson/trilinos-12.2.1-Source/build/CMakeFiles/FortranCInterface/VerifyCXX'
    gmake[1]: *** [CMakeFiles/VerifyFortranC.dir/all] Error 2
    gmake[1]: Leaving directory `/pfs/tmp/ijohnson/trilinos-12.2.1-Source/build/CMakeFiles/FortranCInterface/VerifyCXX'
    gmake: *** [all] Error 2

Call Stack (most recent call first):
  cmake/tribits/core/package_arch/TribitsFortranMangling.cmake:50 (FortranCInterface_VERIFY)
  cmake/tribits/core/package_arch/TribitsGlobalMacros.cmake:1713 (INCLUDE)
  cmake/tribits/core/package_arch/TribitsProjectImpl.cmake:188 (TRIBITS_SETUP_ENV)
  cmake/tribits/core/package_arch/TribitsProject.cmake:93 (TRIBITS_PROJECT_IMPL)
  CMakeLists.txt:89 (TRIBITS_PROJECT)


-- Configuring incomplete, errors occurred!


On Wed, Oct 14, 2015 at 11:35 AM, Irena Johnson <ijohnson at pppl.gov<mailto:ijohnson at pppl.gov>> wrote:
Hi Andrey,

Our users need trilinos to be built under Intel 2015.u1. I understand that in order to build trilinos, you need at least gcc/4.7.2 , and  on RHEL 6, the native gcc compiler is 4.4.7.

I have attached the confiugration script to this email.



$ module li
Currently Loaded Modulefiles:
  1) slurm/14.11.1        3) bbcp/10.08.29.00.0   5) gcc4/4.9.1
  2) ppplcluster/1.2      4) cmake/3.4.0-rc1

echo $INCLUDE_PATH
/usr/pppl/gcc/4.9.1/include:/usr/pppl/slurm/14.03.5/include

echo $LD_LIBRARY_PATH
/usr/pppl/gcc/4.9.1/lib64:/usr/pppl/mpc/1.0.2/lib:/usr/pppl/mpfr/3.1.2/lib:/usr/pppl/gmp/6.0.0a/lib:/usr/pppl/slurm/14.11.1/lib


Thanks,
--
Irena

On Wed, Oct 14, 2015 at 10:47 AM, Andrey Prokopenko <aprokop at sandia.gov<mailto:aprokop at sandia.gov>> wrote:
Hi Irena,

If you are building with gcc, why does it use intel (icpc) to compile the code? It's hard to say what's going on without more details. Could you please attach your configuration script and environment?

-Andrey

On 10/14/2015 08:20 AM, Irena Johnson wrote:
Hello,

I am building trilinos-12.2.1 on a RHEL 6 system, with non-native gcc4/4.9.1

Could you advise what I am missing from the configuration. I have attached the configuration script.

The error I am getting is:


    [100%] Linking CXX executable VerifyFortranC
    /usr/pppl/cmake/3.4.0-rc1/bin/cmake -E cmake_link_script CMakeFiles/VerifyFortranC.dir/link.txt --verbose=1
    /usr/pppl/intel/2015.u1/bin/icpc   -O2 -std=c++11 -ggdb -Wno-sign-compare -O3 -DNDEBUG   CMakeFiles/VerifyFortranC.dir/main.c.o CMakeFiles/VerifyFortranC.dir/VerifyC.c.o CMakeFiles/VerifyFortranC.dir/VerifyCXX.cxx.o  -o VerifyFortranC libVerifyFortran.a -lifport -lifcore -lpthread
    ld: warning: libimf.so, needed by /usr/pppl/intel/2015.u1/composer_xe_2015.1.133/compiler/lib/intel64/libifport.so.5, not found (try using -rpath or -rpath-link)
    ld: warning: libintlc.so.5, needed by /usr/pppl/intel/2015.u1/composer_xe_2015.1.133/compiler/lib/intel64/libifport.so.5, not found (try using -rpath or -rpath-link)
    CMakeFiles/VerifyFortranC.dir/main.c.o: In function `main':
    /usr/pppl/cmake/3.4.0-rc1/share/cmake-3.4/Modules/FortranCInterface/Verify/main.c:14: undefined reference to `VerifyFortran'
    gmake[2]: *** [VerifyFortranC] Error 1
    gmake[2]: Leaving directory `/pfs/tmp/ijohnson/trilinos-12.2.1-Source/build/CMakeFiles/FortranCInterface/VerifyCXX'
    gmake[1]: *** [CMakeFiles/VerifyFortranC.dir/all] Error 2
    gmake[1]: Leaving directory `/pfs/tmp/ijohnson/trilinos-12.2.1-Source/build/CMakeFiles/FortranCInterface/VerifyCXX'
    gmake: *** [all] Error 2

Call Stack (most recent call first):
  cmake/tribits/core/package_arch/TribitsFortranMangling.cmake:50 (FortranCInterface_VERIFY)
  cmake/tribits/core/package_arch/TribitsGlobalMacros.cmake:1713 (INCLUDE)
  cmake/tribits/core/package_arch/TribitsProjectImpl.cmake:188 (TRIBITS_SETUP_ENV)
  cmake/tribits/core/package_arch/TribitsProject.cmake:93 (TRIBITS_PROJECT_IMPL)
  CMakeLists.txt:89 (TRIBITS_PROJECT)


-- Configuring incomplete, errors occurred!





--
Irena


_______________________________________________

Trilinos-Users mailing list

Trilinos-Users at trilinos.org<mailto:Trilinos-Users at trilinos.org>

https://trilinos.org/mailman/listinfo/trilinos-users








--
Irena

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


More information about the Trilinos-Users mailing list