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

[package] CGAL 5{any version}: Install fails due to boost/1.75.0 errors #4084

Closed
acgetchell opened this issue Jan 5, 2021 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@acgetchell
Copy link

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: cgal/5.2
  • Operating System+version: macOS 11.1
  • Compiler+version: AppleClang 12.0
  • Docker image: conanio/gcc8
  • Conan version: conan 1.32.1
  • Python version: Python 3.9.1

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

Configuration for profile default:

[settings]
os=Macos
os_build=Macos
arch=x86_64
arch_build=x86_64
compiler=apple-clang
compiler.version=11.0
compiler.libcxx=libc++
build_type=Release
[options]
[build_requires]
[env]

Steps to reproduce (Include if Applicable)

Run Conan.cmake:

macro(run_conan)
  # Download automatically, you can also just copy the conan.cmake file
  if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
    message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan")
    file(DOWNLOAD "https://github.com/conan-io/cmake-conan/raw/v0.15/conan.cmake" "${CMAKE_BINARY_DIR}/conan.cmake")
  endif()

  include(${CMAKE_BINARY_DIR}/conan.cmake)

  conan_add_remote(
    NAME
    bincrafters
    URL
    https://api.bintray.com/conan/bincrafters/public-conan)

  conan_cmake_run(
    REQUIRES
    ${CONAN_EXTRA_REQUIRES}
    catch2/2.11.0
    docopt.cpp/0.6.2
    fmt/6.2.0
    spdlog/1.5.0
    cgal/5.2
    OPTIONS
    ${CONAN_EXTRA_OPTIONS}
    BASIC_SETUP
    CMAKE_TARGETS # individual targets to link to
    BUILD
    missing
    )
endmacro()

Logs (Include/Attach if Applicable)

Click to expand log
"/Users/adam/Library/Application Support/JetBrains/Toolbox/apps/CLion/ch-0/203.6682.181/CLion.app/Contents/bin/cmake/mac/bin/cmake" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /Users/adam/CDT-template
-- ccache found and enabled
-- Conan: checking conan executable
-- Conan: Found program /usr/local/bin/conan
-- Conan: Version found Conan version 1.32.1

-- Conan: Adding bincrafters remote repository (https://api.bintray.com/conan/bincrafters/public-conan)
-- Conan: Automatic detection of conan settings from cmake
In file included from <stdin>:1:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:504:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string_view:175:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__string:57:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:641:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cstring:60:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string.h:60:15: fatal error: 'string.h' file not found
#include_next <string.h>
              ^~~~~~~~~~
1 error generated.
-- Conan: Settings= -s;build_type=Debug;-s;compiler=apple-clang;-s;compiler.version=12.0;-s;compiler.libcxx=libc++
-- Conan: checking conan executable
-- Conan: Found program /usr/local/bin/conan
-- Conan: Version found Conan version 1.32.1

-- Conan executing: /usr/local/bin/conan install . -s build_type=Debug -s compiler=apple-clang -s compiler.version=12.0 -s compiler.libcxx=libc++ -g=cmake --build=missing
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=apple-clang
compiler.libcxx=libc++
compiler.version=12.0
os=Macos
os_build=Macos
[options]
[build_requires]
[env]

conanfile.txt: Installing package
Requirements
    boost/1.75.0 from 'conan-center' - Cache
    bzip2/1.0.8 from 'conan-center' - Cache
    catch2/2.11.0 from 'conan-center' - Cache
    cgal/5.2 from 'conan-center' - Cache
    docopt.cpp/0.6.2 from 'conan-center' - Cache
    eigen/3.3.9 from 'conan-center' - Cache
    fmt/6.2.0 from 'conan-center' - Cache
    libiconv/1.16 from 'conan-center' - Cache
    mpfr/4.1.0 from 'conan-center' - Cache
    mpir/3.0.0 from 'conan-center' - Cache
    spdlog/1.5.0 from 'conan-center' - Cache
    zlib/1.2.11 from 'conan-center' - Cache
Packages
    boost/1.75.0:cdd3560f9155513cd4090798205f6a5e16fa2b58 - Cache
    bzip2/1.0.8:7fc5f5b34b9038fbd81d8c4edd0e5d12d311b628 - Cache
    catch2/2.11.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    cgal/5.2:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    docopt.cpp/0.6.2:ba203d82ae0020eccba7236c3748eb8f79fceaf6 - Cache
    eigen/3.3.9:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    fmt/6.2.0:ba203d82ae0020eccba7236c3748eb8f79fceaf6 - Cache
    libiconv/1.16:d98fae1010d1fb9e7f79a1e8a72bbf129d8660a2 - Cache
    mpfr/4.1.0:d072189c18cb5a06c3327e5445442c976a46c99c - Build
    mpir/3.0.0:adf7b79bba6c3955c6d66c709fdd7e5138d417cd - Cache
    spdlog/1.5.0:2c7ccf8b9afaa88c0de64c45af0691121fa848a8 - Cache
    zlib/1.2.11:d98fae1010d1fb9e7f79a1e8a72bbf129d8660a2 - Cache

Installing (downloading, building) binaries...
bzip2/1.0.8: Already installed!
catch2/2.11.0: Already installed!
docopt.cpp/0.6.2: Already installed!
eigen/3.3.9: Already installed!
fmt/6.2.0: Already installed!
libiconv/1.16: Already installed!
libiconv/1.16: Appending PATH environment var: /Users/adam/.conan/data/libiconv/1.16/_/_/package/d98fae1010d1fb9e7f79a1e8a72bbf129d8660a2/bin
mpir/3.0.0: Already installed!
zlib/1.2.11: Already installed!
boost/1.75.0: Already installed!
boost/1.75.0: WARN: Boost component 'fiber' is missing libraries. Try building boost with '-o boost:without_fiber'.
boost/1.75.0: WARN: Boost component 'fiber_numa' is missing libraries. Try building boost with '-o boost:without_fiber_numa'.
boost/1.75.0: WARN: Boost component 'json' is missing libraries. Try building boost with '-o boost:without_json'.
boost/1.75.0: WARN: Boost component 'nowide' is missing libraries. Try building boost with '-o boost:without_nowide'.
ERROR: boost/1.75.0: Error in package_info() method, line 1331
	raise ConanException("These libraries were expected to be built, but were not built: {}".format(non_built))
	ConanException: These libraries were expected to be built, but were not built: {'boost_fiber', 'boost_fiber_numa', 'boost_json', 'boost_nowide'}
CMake Error at cmake-build-debug/conan.cmake:402 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  cmake-build-debug/conan.cmake:497 (conan_cmake_install)
  cmake/Conan.cmake:16 (conan_cmake_run)
  CMakeLists.txt:76 (run_conan)


-- Configuring incomplete, errors occurred!
See also "/Users/adam/CDT-template/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "/Users/adam/CDT-template/cmake-build-debug/CMakeFiles/CMakeError.log".

[Failed to reload]

@perseoGI
Copy link
Contributor

perseoGI commented Sep 3, 2024

Hi there!
I'm closing this issue as this is problem is already resolved!

Compilation trace on apple-clang 15:

...
cgal/5.6.1 (test package): Running CMake.build()
cgal/5.6.1 (test package): RUN: cmake --build "/Users/perseo/sources/conan-center-index/recipes/cgal/all/test_package/build/apple-clang-15-armv8-gnu17-release" -- -j14
[ 50%] Building CXX object CMakeFiles/test_package.dir/test_package.cpp.o
[100%] Linking CXX executable test_package
[100%] Built target test_package


======== Testing the package: Executing test ========
cgal/5.6.1 (test package): Running test()
cgal/5.6.1 (test package): RUN: ./test_package
Processing: 1/8
Processing: 2/8
Processing: 3/8
Processing: 4/8
Processing: 5/8
Processing: 6/8
Processing: 7/8
Processing: 8/8

Happy coding 🐸

@perseoGI perseoGI closed this as completed Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants