Error with compilation of Scale 6.2.2

782 views
Skip to first unread message

Maarten Becker

unread,
Sep 21, 2017, 3:04:11 PM9/21/17
to SCALE Users Group
Hi there!

Tried to do a compilation with MPI support as described in the README of the SCALE package.

However, I get error messages and don't see the reason.

My system is: openSuSE Leap 42.2:
Linux nucleus 4.4.79-18.26-default #1 SMP Thu Aug 10 20:30:05 UTC 2017 (fa5a935) x86_64 x86_64 x86_64 GNU/Linux
gcc version 6.2.1

Attached are the screen ouptut so as the 2 CMake log files.

Has somebody a clue about this?

Thanks,
Maarten


CMakeScreenOutput.log
CMakeOutput.log
CMakeError.log

Rob Lefebvre

unread,
Sep 21, 2017, 4:30:08 PM9/21/17
to SCALE Users Group
Hi Maarten,
Thanks for posting. 

Looking at the initial issue, I see your CMakeScreenOutput.log contain the following incriminating errors:


CMake Error at TriBITS/tribits/core/utils/AssertDefined.cmake:79 (MESSAGE):
 
Error, the variable Anasazi_ENABLE_ThyraEpetraAdapters is not defined!
Call Stack (most recent call first):
 
Trilinos/packages/anasazi/src/CMakeLists.txt:8 (ASSERT_DEFINED)




CMake Error at TriBITS/tribits/core/utils/AssertDefined.cmake:79 (MESSAGE):
 
Error, the variable Anasazi_ENABLE_ThyraCore is not defined!
Call Stack (most recent call first):
 
Trilinos/packages/anasazi/src/CMakeLists.txt:148 (ASSERT_DEFINED)

These appear to be the issue documented in the SCALE manual on page 74, https://www.ornl.gov/sites/default/files/SCALE%20Code%20System.pdf#page=74

To summarize, you need to edit the Trilinos CMakeLists.txt file (excerpt from the manual):

Edit the CMakelists.txt file in /Trilinos/packages/anasazi/src/ so as to comment out the following line:
ASSERT_DEFINED
(Anasazi_ENABLE_Tpetra)

Hopefully this will get you past the configuration issue. 

Best regards,
Rob Lefebvre
SCALE Code System

Cliff Dugal

unread,
Sep 21, 2017, 4:38:42 PM9/21/17
to SCALE Users Group
I needed to patch out a few other lines when compiling for our ancient RHEL 5.5 here:

    # Patch Anasazi's CMakeLists.txt
    sed_scr1
='s/^\(ASSERT_DEFINED(Anasazi_ENABLE_ThyraEpetraAdapters)\)/# \1/'
    sed_scr2
='s/^\(ASSERT_DEFINED(Anasazi_ENABLE_ThyraCore)\)/# \1/'
    sed_scr3
='s/^\(ASSERT_DEFINED(Anasazi_ENABLE_Tpetra)\)/# \1/'
    sed
-e "$sed_scr1" -e "$sed_scr2" -e "$sed_scr3" \
       
-i Trilinos/packages/anasazi/src/CMakeLists.txt

Maarten Becker

unread,
Sep 21, 2017, 5:22:50 PM9/21/17
to SCALE Users Group
Thanks for the answers!

I actually did the one comment mentioned in the manual but with Cliff's advise I could build the Makefile without problems.

Compilation is running at the moment.

Thanks,
Maarten

Maarten Becker

unread,
Sep 22, 2017, 3:14:08 AM9/22/17
to SCALE Users Group
Hi,

Compilation was without obvious error, but issuing "make install" gave another error:

-- Installing: /data2/Programs/SCALE-6.2.2/src/SCALE-6.2-serial-6.2.2-Source/build/gcc/INSTALL/bin/scale
RegularExpression::compile(): Expression too big.
CMake Error at packages/ScalePrograms/cmake_install.cmake:45 (file):
  file RPATH_CHANGE could not write new RPATH:

    /data2/Programs/SCALE-6.2.2/src/SCALE-6.2-serial-6.2.2-Source/build/gcc/INSTALL/lib:$ORIGIN/../lib

  to the file:

    /data2/Programs/SCALE-6.2.2/src/SCALE-6.2-serial-6.2.2-Source/build/gcc/INSTALL/bin/scale

  The current RUNPATH is:

......


  which does not contain:

........


  as was expected.

Call Stack (most recent call first):
  cmake_install.cmake:166 (include)
 


Makefile:93: recipe for target 'install' failed

The full log is attached.

Any hint is welcome.

Thanks,
Maarten
output_make_install.log

Rob Lefebvre

unread,
Sep 22, 2017, 6:47:50 AM9/22/17
to SCALE Users Group
Hi Maarten, 
The solution is to shorten your path.

Instead of '/data2/Programs/SCALE-6.2.2/src/SCALE-6.2-serial-6.2.2-Source/build', try having '/data2/Programs/scale/6.2.2/build.'
Reply all
Reply to author
Forward
0 new messages