[Trilinos-Users] [EXTERNAL] make_install_error

Elliott, James John jjellio at sandia.gov
Wed Oct 18 12:11:49 EDT 2017


It looks like it is trying to set RPATH on a statically linked executable.

On Cray machines,
I use:
-D Trilinos_LINK_SEARCH_START_STATIC:BOOL=ON
-D BUILD_SHARED_LIBS:BOOL=OFF
-D Trilinos_SET_INSTALL_RPATH=OFF

# This is unrelated, but I need it on Cray to get CXX demangling correct.
-D HAVE_GCC_ABI_DEMANGLE:BOOL=TRUE


# always set the compilers

-D MPI_USE_COMPILER_WRAPPERS=OFF
-D CMAKE_CXX_COMPILER="CC"
-D CMAKE_C_COMPILER="cc"
-D CMAKE_Fortran_COMPILER="ftn"


The above settings tell CMake to prefer static libs over shared.
Turns off shared lib generation by Trilinos
Disables the setting of the runtime path for executables, which is unneeded since they are statically linked.


James


________________________________
From: Trilinos-Users <trilinos-users-bounces at trilinos.org> on behalf of Bartlett, Roscoe A <rabartl at sandia.gov>
Sent: Wednesday, October 18, 2017 7:20 AM
To: Eligiusz Postek; trilinos-users at trilinos.org
Subject: Re: [Trilinos-Users] [EXTERNAL] make_install_error

What are the full set of options you are passing to cmake?

-Ross

From: Trilinos-Users [mailto:trilinos-users-bounces at trilinos.org] On Behalf Of Eligiusz Postek
Sent: Sunday, October 15, 2017 2:44 AM
To: trilinos-users at trilinos.org
Subject: [EXTERNAL] [Trilinos-Users] make_install_error

Dear Colleagues,
I get the error during installation
This is the source :     trilinos-12.12.1-Source
This is cmake: /home/ewpostek/cmm/cmake-3.9.4-Linux-x86_64/bin/cmake
This is the environment:

module load PrgEnv-gnu/5.2.82 (gnu cray xc30)
module load cray-mpich/7.3.2

make install

-- Installing: /home/ewpostek/Tri2/insta/include/Epetra_MpiDistributor.h
-- Installing: /home/ewpostek/Tri2/insta/bin/Epetra_BasicPerfTest_test.exe
CMake Error at packages/epetra/test/BasicPerfTest/cmake_install.cmake:45 (file):
  file RPATH_CHANGE could not write new RPATH:

    /home/ewpostek/Tri2/insta/lib

  to the file:

    /home/ewpostek/Tri2/insta/bin/Epetra_BasicPerfTest_test.exe

  No valid ELF RPATH or RUNPATH entry exists in the file;
Call Stack (most recent call first):
  packages/epetra/test/cmake_install.cmake:39 (include)
  packages/epetra/cmake_install.cmake:65 (include)
  cmake_install.cmake:72 (include)


make: *** [install] Error 1
okeanos1 Tri2/build>


Could you be so kind to give a hint?

Best regards,
Elek

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


More information about the Trilinos-Users mailing list