Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Armadillo with useflag superlu enabled won't emerge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Osmium_Dresden
n00b
n00b


Joined: 13 Apr 2018
Posts: 8

PostPosted: Tue Apr 24, 2018 7:59 am    Post subject: Armadillo with useflag superlu enabled won't emerge Reply with quote

Hi,

when trying to emerge armadillo with the superlu useflag enabled, I get the error message that /supermatrix.h cannot be found (no such file or directory). The following is the complete building log:

Code:

 * armadillo-6.200.3.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                               [ ok ]
>>> Unpacking source...
>>> Unpacking armadillo-6.200.3.tar.gz to /var/tmp/portage/sci-libs/armadillo-6.200.3/work
>>> Source unpacked in /var/tmp/portage/sci-libs/armadillo-6.200.3/work
>>> Preparing source in /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3"
cmake --no-warn-unused-cli -C /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_LIB_DIR=/usr/lib64 -DARMA_EXTRA_DEBUG=OFF -DARMA_USE_MKL_ALLOC=OFF -DARMA_USE_TBB_ALLOC=OFF -DARPACK_FOUND=ON -DARPACK_LIBRARY=-L/usr/lib64/blas/reference -L/usr/lib64/lapack/reference -L/usr/lib64/blas/reference -larpack -lblas -llapack -lblas -DBLAS_FOUND=ON -DBLAS_LIBRARIES=-L/usr/lib64/blas/reference -lblas -DLAPACK_FOUND=ON -DLAPACK_LIBRARIES=-L/usr/lib64/lapack/reference -L/usr/lib64/blas/reference -llapack -lblas -DSuperLU_FOUND=ON -DSuperLU_LIBRARIES=-L/usr/lib64/blas/reference -lsuperlu -lblas -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/gentoo_toolchain.cmake  /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/gentoo_common_config.cmake
-- Configuring Armadillo 6.200.3
-- The CXX compiler identification is GNU 6.4.0
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_SYSTEM_NAME          = Linux
-- CMAKE_CXX_COMPILER_ID      = GNU
-- CMAKE_CXX_COMPILER_VERSION = 6.4.0
-- CMAKE_COMPILER_IS_GNUCXX   = 1
--      MKL_FOUND =
--   ACMLMP_FOUND =
--     ACML_FOUND =
-- OpenBLAS_FOUND =
--    ATLAS_FOUND =
--     BLAS_FOUND = ON
--   LAPACK_FOUND = ON
-- ARPACK_FOUND = ON
-- SuperLU_FOUND = ON
-- SuperLU_INCLUDE_DIR =
--
-- *** Armadillo wrapper library will use the following libraries:
-- *** ARMA_LIBS = -L/usr/lib64/blas/reference -lblas;-L/usr/lib64/lapack/reference -L/usr/lib64/blas/reference -llapack -lblas;-L/usr/lib64/blas/reference -L/usr/lib64/lapack/reference -L/usr/lib64/blas/reference -larpack -lblas -llapack -lblas
--
-- Detected gcc 4.8.3 or later. Added '-std=c++11' to compiler flags
-- Copying /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/include/ to /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/tmp/include/
-- Generating /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/tmp/include/config.hpp
-- Generating /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/examples/Makefile
-- CMAKE_CXX_FLAGS           = -march=native -O2 -pipe -std=c++11 -O2
-- CMAKE_SHARED_LINKER_FLAGS = -Wl,-O1 -Wl,--as-needed -Wl,--no-as-needed
-- CMAKE_REQUIRED_INCLUDES   =
-- CMAKE_INSTALL_PREFIX = /usr
-- INSTALL_LIB_DIR      = /usr/lib64
-- INSTALL_INCLUDE_DIR  = /usr/include
-- INSTALL_DATA_DIR     = /usr/share
-- INSTALL_BIN_DIR      = /usr/bin
-- Generating '/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/ArmadilloConfig.cmake'
-- Generating '/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/ArmadilloConfigVersion.cmake'
-- Generating '/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/InstallFiles/ArmadilloConfig.cmake'
-- Generating '/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/InstallFiles/ArmadilloConfigVersion.cmake'
-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr
Compiler flags:
C               
C++             -march=native -O2 -pipe -std=c++11 -O2
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed
Module          -Wl,-O1 -Wl,--as-needed
Shared          -Wl,-O1 -Wl,--as-needed -Wl,--no-as-needed

-- Configuring done
-- Generating done
-- Build files have been written to: /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3"
make -j8 VERBOSE=1
/usr/bin/cmake -H/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3 -B/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3 --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/CMakeFiles /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3'
make -f CMakeFiles/armadillo.dir/build.make CMakeFiles/armadillo.dir/depend
make[2]: Entering directory '/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3'
cd /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3 && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3 /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3 /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3 /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3 /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/CMakeFiles/armadillo.dir/DependInfo.cmake --color=
Dependee "/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/CMakeFiles/armadillo.dir/DependInfo.cmake" is newer than depender "/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/CMakeFiles/armadillo.dir/depend.internal".
Dependee "/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/CMakeFiles/armadillo.dir/depend.internal".
Scanning dependencies of target armadillo
make[2]: Leaving directory '/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3'
make -f CMakeFiles/armadillo.dir/build.make CMakeFiles/armadillo.dir/build
make[2]: Entering directory '/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3'
[ 50%] Building CXX object CMakeFiles/armadillo.dir/src/wrapper.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++ -Darmadillo_EXPORTS -I/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/tmp/include   -DNDEBUG -march=native -O2 -pipe -std=c++11 -O2 -fPIC   -o CMakeFiles/armadillo.dir/src/wrapper.cpp.o -c /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/src/wrapper.cpp
In file included from /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/src/wrapper.cpp:27:0:
/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/tmp/include/armadillo_bits/include_superlu.hpp:91:53: fatal error: /supermatrix.h: No such file or directory
   #include ARMA_INCFILE_WRAP(ARMA_SLU_SUPERMATRIX_H)
                                                     ^
compilation terminated.
make[2]: *** [CMakeFiles/armadillo.dir/build.make:63: CMakeFiles/armadillo.dir/src/wrapper.cpp.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3'
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/armadillo.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3'
make: *** [Makefile:130: all] Error 2
 * ERROR: sci-libs/armadillo-6.200.3::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sci-libs/armadillo-6.200.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/armadillo-6.200.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-libs/armadillo-6.200.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/armadillo-6.200.3/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3'
 * S: '/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3'

>>> Failed to emerge sci-libs/armadillo-6.200.3, Log file:

>>>  '/var/tmp/portage/sci-libs/armadillo-6.200.3/temp/build.log'

 * Messages for package sci-libs/armadillo-6.200.3:

 * ERROR: sci-libs/armadillo-6.200.3::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sci-libs/armadillo-6.200.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/armadillo-6.200.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-libs/armadillo-6.200.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/armadillo-6.200.3/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3'
 * S: '/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3'


...the erroneus part being

Code:

[ 50%] Building CXX object CMakeFiles/armadillo.dir/src/wrapper.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++ -Darmadillo_EXPORTS -I/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/tmp/include   -DNDEBUG -march=native -O2 -pipe -std=c++11 -O2 -fPIC   -o CMakeFiles/armadillo.dir/src/wrapper.cpp.o -c /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/src/wrapper.cpp
In file included from /var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/src/wrapper.cpp:27:0:
/var/tmp/portage/sci-libs/armadillo-6.200.3/work/armadillo-6.200.3/tmp/include/armadillo_bits/include_superlu.hpp:91:53: fatal error: /supermatrix.h: No such file or directory
   #include ARMA_INCFILE_WRAP(ARMA_SLU_SUPERMATRIX_H)
                                                     ^
compilation terminated.


SuperLU has been merged and is where it is supposed to be (/usr/include/superlu), and also supermatrix.h is in the ./superlu - folder (I also copied supermatrix.h into /usr/include, however, this doesn't change anything). What I do not understand is, e.g., this line:

Code:

-DSuperLU_FOUND=ON -DSuperLU_LIBRARIES=-L/usr/lib64/blas/reference -lsuperlu -lblas

Does that mean that the builder looks for superlu-libraries in the /blas/reference - folder? Should it be like this? Also,

Code:
SuperLU_INCLUDE_DIR=

is empty, maybe there should be something?

Any idea why this error happens and how to solve it?
Thanks in advance!
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30889
Location: here

PostPosted: Tue Apr 24, 2018 8:03 am    Post subject: Reply with quote

https://bugs.gentoo.org/561096
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Osmium_Dresden
n00b
n00b


Joined: 13 Apr 2018
Posts: 8

PostPosted: Tue Apr 24, 2018 8:50 am    Post subject: Reply with quote

Thanks! I wasn't aware of bugs.gentoo.org yet.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum