Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error on EL6 (centos) #4

Open
dominikwerder opened this issue Jan 31, 2018 · 3 comments
Open

Build error on EL6 (centos) #4

dominikwerder opened this issue Jan 31, 2018 · 3 comments
Labels

Comments

@dominikwerder
Copy link

The build of h5cpp/0.0.4-dm1@ess-dmsc/stable errors with a Boost::filesystem-related issue.

It seems to me that it can not find Boost even though it does produce all dependencies successfully including Boost.

$ conan install --build=outdated h5cpp/0.0.4-dm1@ess-dmsc/stable
h5cpp/0.0.4-dm1@ess-dmsc/stable: Installing package
Requirements
    Boost/1.62.0@ess-dmsc/stable from ess-dmsc
    gtest/3121b20-dm2@ess-dmsc/stable from ess-dmsc
    h5cpp/0.0.4-dm1@ess-dmsc/stable from ess-dmsc
    hdf5/1.10.1-dm3@ess-dmsc/stable from ess-dmsc
    zlib/1.2.11@conan/stable from conan-center
Packages
    Boost/1.62.0@ess-dmsc/stable:41b4a670ac66e314bb644198013c12a53602fa3d
    gtest/3121b20-dm2@ess-dmsc/stable:41b4a670ac66e314bb644198013c12a53602fa3d
    h5cpp/0.0.4-dm1@ess-dmsc/stable:934f9565c815bb4fa22e0b6195e60ce05950ae21
    hdf5/1.10.1-dm3@ess-dmsc/stable:baa12b33c0643f5a769ccc105324fa2a6bd3a784
    zlib/1.2.11@conan/stable:c6d75a933080ca17eb7f076813e7fb21aaa740f2

Boost/1.62.0@ess-dmsc/stable: Package is up to date
gtest/3121b20-dm2@ess-dmsc/stable: Package is up to date
zlib/1.2.11@conan/stable: Package is up to date
hdf5/1.10.1-dm3@ess-dmsc/stable: Package is up to date
Boost/1.62.0@ess-dmsc/stable: Already installed!
gtest/3121b20-dm2@ess-dmsc/stable: Already installed!
zlib/1.2.11@conan/stable: Already installed!
hdf5/1.10.1-dm3@ess-dmsc/stable: Already installed!
h5cpp/0.0.4-dm1@ess-dmsc/stable: Installing build requirements of: h5cpp/0.0.4-dm1@ess-dmsc/stable
h5cpp/0.0.4-dm1@ess-dmsc/stable: Build requires: [cmake_installer/3.10.0@conan/stable]
h5cpp/0.0.4-dm1@ess-dmsc/stable: Requirements
h5cpp/0.0.4-dm1@ess-dmsc/stable:     cmake_installer/3.10.0@conan/stable from conan-center
h5cpp/0.0.4-dm1@ess-dmsc/stable: Packages
h5cpp/0.0.4-dm1@ess-dmsc/stable:     cmake_installer/3.10.0@conan/stable:44fcf6b9a7fb86b2586303e3db40189d3b511830
h5cpp/0.0.4-dm1@ess-dmsc/stable: 
cmake_installer/3.10.0@conan/stable: Package is up to date
cmake_installer/3.10.0@conan/stable: Already installed!
h5cpp/0.0.4-dm1@ess-dmsc/stable: Installed build requirements of: h5cpp/0.0.4-dm1@ess-dmsc/stable
h5cpp/0.0.4-dm1@ess-dmsc/stable: Building your package in /home/scratch/cache/conan_user_home/.conan/data/h5cpp/0.0.4-dm1/ess-dmsc/stable/build/934f9565c815bb4fa22e0b6195e60ce05950ae21
h5cpp/0.0.4-dm1@ess-dmsc/stable: Copying sources to build folder
h5cpp/0.0.4-dm1@ess-dmsc/stable: Generator cmake created conanbuildinfo.cmake
h5cpp/0.0.4-dm1@ess-dmsc/stable: Calling build()
-- The CXX compiler identification is GNU 4.9.3
-- The C compiler identification is GNU 4.9.3
-- Check for working CXX compiler: /home/scratch/software/gcc-4.9.3-install/bin/g++
-- Check for working CXX compiler: /home/scratch/software/gcc-4.9.3-install/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /home/scratch/software/gcc-4.9.3-install/bin/gcc
-- Check for working C compiler: /home/scratch/software/gcc-4.9.3-install/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type: Release
-- Using existing conanbuildinfo.cmake file
-- Conan: called by CMake conan helper
-- Conan: Checking correct version: 4.9
-- Conan: Using cmake global configuration
-- Conan: C++ stdlib: libstdc++
-- ==============================================================
-- Installation directories for Linux: 
-- Prefix is: unknown
-- Libraries: lib64
-- Binaries:  bin
-- Headers :  include
-- Data:      share
-- Docs:      share/doc/h5cpp-0.0.4
-- CMake PKG: lib64/cmake/h5cpp-0.0.4
-- ==============================================================
-- ==============================================================
-- Build output directories:
-- Write runtime files to: /home/scratch/cache/conan_user_home/.conan/data/h5cpp/0.0.4-dm1/ess-dmsc/stable/build/934f9565c815bb4fa22e0b6195e60ce05950ae21/h5cpp-0.0.4/build/bin
-- Write library files to: /home/scratch/cache/conan_user_home/.conan/data/h5cpp/0.0.4-dm1/ess-dmsc/stable/build/934f9565c815bb4fa22e0b6195e60ce05950ae21/h5cpp-0.0.4/build/lib
-- Write archive files to: /home/scratch/cache/conan_user_home/.conan/data/h5cpp/0.0.4-dm1/ess-dmsc/stable/build/934f9565c815bb4fa22e0b6195e60ce05950ae21/h5cpp-0.0.4/build/lib
-- ==============================================================
fatal: Not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: Not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: Not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
-- Looking for thes phinx documentation generator
-- Could not find sphinx executable
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- Found HDF5: /home/scratch/cache/conan_user_home/.conan/data/hdf5/1.10.1-dm3/ess-dmsc/stable/package/baa12b33c0643f5a769ccc105324fa2a6bd3a784/lib/libhdf5.so;/usr/lib64/librt.so;/usr/lib64/libdl.so;/usr/lib64/libm.so;/home/scratch/cache/conan_user_home/.conan/data/zlib/1.2.11/conan/stable/package/c6d75a933080ca17eb7f076813e7fb21aaa740f2/lib/libz.a  found components:  C 
-- Found HDF5 libraries in: 
-- Found HDF5 libraries: /home/scratch/cache/conan_user_home/.conan/data/hdf5/1.10.1-dm3/ess-dmsc/stable/package/baa12b33c0643f5a769ccc105324fa2a6bd3a784/lib/libhdf5.so;/usr/lib64/librt.so;/usr/lib64/libdl.so;/usr/lib64/libm.so;/home/scratch/cache/conan_user_home/.conan/data/zlib/1.2.11/conan/stable/package/c6d75a933080ca17eb7f076813e7fb21aaa740f2/lib/libz.a
-- Found HDF5 headers: /include;/home/scratch/cache/conan_user_home/.conan/data/zlib/1.2.11/conan/stable/package/c6d75a933080ca17eb7f076813e7fb21aaa740f2/include
-- Found HDF5 definitions: -DNDEBUG;-D_GLIBCXX_USE_CXX11_ABI=0
-- Boost 1.41 found.
-- Found Boost components:
   filesystem
-- Cannot enable coverage for target: h5cpp. Code coverage not enabled (COV=0).
-- Add sphinx source: conf.py
-- Add sphinx source: index.rst
-- Add sphinx source: attribute_manager_uml.png
-- Add sphinx source: base_classes_uml.png
-- Add sphinx source: hyperslab_uml.png
-- Add sphinx source: property_lists_uml.png
-- Add sphinx source: selection_classes.png
-- Add sphinx source: hdf5_attributes.svg
-- Add sphinx source: hdf5_basic_tree.svg
-- Add sphinx source: hdf5_links.svg
-- Add sphinx source: hdf5_package_overview.svg
-- Add sphinx source: hdf5_node_types.svg
-- Add sphinx source: hdf5_dataspaces.svg
-- Add sphinx source: hdf5_selections.svg
-- Add sphinx source: static_dataspace.svg
-- Add sphinx source: dynamic_dataspace_bounded.svg
-- Add sphinx source: dynamic_dataspace_unbounded.svg
-- Add sphinx source: hdf5_selection_manager.svg
-- Add sphinx source: memory_buffer_40byte.svg
-- Add sphinx source: 32bit_integer.svg
-- Add sphinx source: dataspace_high_level.svg
-- Add sphinx source: storage_models.svg
-- Add sphinx source: memory_storage_example.svg
-- Add sphinx source: hyperslab_1.svg
-- Add sphinx source: hyperslab_2.svg
-- Add sphinx source: hyperslab_3.svg
-- Add sphinx source: node_types.svg
-- Add sphinx source: node.svg
-- Add sphinx source: h5cpp_link.svg
-- Add sphinx source: index.rst
-- Add sphinx source: installing.rst
-- Add sphinx source: using.rst
-- Add sphinx source: files.rst
-- Add sphinx source: groups.rst
-- Add sphinx source: overview.rst
-- Add sphinx source: dataspace.rst
-- Add sphinx source: dataspace_custom_types.rst
-- Add sphinx source: dataspace_selections.rst
-- Add sphinx source: attributes.rst
-- Add sphinx source: index.rst
-- Add sphinx source: index.rst
-- Add sphinx source: user_data.rst
-- Add sphinx source: io.rst
-- Add sphinx source: cpp_datastructures.rst
-- Add sphinx source: hdf5_handlers.rst
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found GTest: /home/scratch/cache/conan_user_home/.conan/data/gtest/3121b20-dm2/ess-dmsc/stable/package/41b4a670ac66e314bb644198013c12a53602fa3d/lib/libgtest.so  
-- Cannot enable coverage for target: unit_tests. Code coverage not enabled (COV=0).
-- Configuring done
CMake Error at src/h5cpp/CMakeLists.txt:21 (add_library):
  Target "h5cpp" links to target "Boost::filesystem" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


CMake Error at test/CMakeLists.txt:36 (add_executable):
  Target "unit_tests" links to target "Boost::filesystem" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at src/h5cpp/CMakeLists.txt:21 (add_library):
  Target "h5cpp" links to target "Boost::filesystem" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


-- Generating done
-- Build files have been written to: /home/scratch/cache/conan_user_home/.conan/data/h5cpp/0.0.4-dm1/ess-dmsc/stable/build/934f9565c815bb4fa22e0b6195e60ce05950ae21/h5cpp-0.0.4/build
h5cpp/0.0.4-dm1@ess-dmsc/stable: 
h5cpp/0.0.4-dm1@ess-dmsc/stable: ERROR: Package '934f9565c815bb4fa22e0b6195e60ce05950ae21' build failed
h5cpp/0.0.4-dm1@ess-dmsc/stable: WARN: Build folder /home/scratch/cache/conan_user_home/.conan/data/h5cpp/0.0.4-dm1/ess-dmsc/stable/build/934f9565c815bb4fa22e0b6195e60ce05950ae21
ERROR: h5cpp/0.0.4-dm1@ess-dmsc/stable: Error in build() method, line 67
	cmake.configure(source_dir="..", build_dir=".")
	ConanException: Error 256 while executing cd '.' && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCONAN_EXPORTED="1" -DCONAN_COMPILER="gcc" -DCONAN_COMPILER_VERSION="4.9" -DCONAN_CXX_FLAGS="-m64" -DCONAN_SHARED_LINKER_FLAGS="-m64" -DCONAN_C_FLAGS="-m64" -DCONAN_LIBCXX="libstdc++" -DCMAKE_INSTALL_PREFIX="" -Wno-dev '..'
pc12205 werder_d .../build/tmp-234 $ 
@dominikwerder
Copy link
Author

Further evidence that the build does not find the boost-dependency:

When I remove any pre-installed boost from the machine then conan succeeds, cmake succeeds as well, but the build itself still fails to link against boost:

[ 73%] Linking CXX executable ../kafka-to-nexus
/usr/bin/ld: cannot find -lBoost::filesystem
collect2: error: ld returned 1 exit status

@martukas
Copy link
Collaborator

I guess this has now been solved after the switch to the bincrafters package? Can we close this @dominikwerder ?

@dominikwerder
Copy link
Author

We did upgrade to EL7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants