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] boost/1.76.0: namespace option results in missing libraries + ConanException #5632

Closed
Mortal42 opened this issue May 26, 2021 · 0 comments · Fixed by #6510
Closed
Assignees
Labels
bug Something isn't working

Comments

@Mortal42
Copy link

Using boost:namespace causes errors. Boost builds successfully but the recipe fails as it is looking for the default library names.
Was able to workaround by modifying add_libprefix in the recipe to replace "boost_" with str(self.options.namespace) + '_').

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: boost/1.76.0
  • Operating System+version: Linux Ubuntu 20.04
  • Compiler+version: GCC 10
  • Docker image: conanio/gcc10
  • Conan version: conan 1.36.0
  • Python version: Python 3.7.5

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=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=10
compiler.libcxx=libstdc++
build_type=Release
[options]
[build_requires]
[env]

Steps to reproduce (Include if Applicable)

podman run -it --name conan conanio/gcc10 bash
conan install boost/1.76.0@ -o boost:namespace=my_boost -b missing

Logs (Include/Attach if Applicable)

Click to expand log
Component configuration:

    - atomic                   : building
    - chrono                   : building
    - container                : building
    - context                  : building
    - contract                 : building
    - coroutine                : building
    - date_time                : building
    - exception                : building
    - fiber                    : building
    - filesystem               : building
    - graph                    : building
    - graph_parallel           : not building
    - headers                  : not building
    - iostreams                : building
    - json                     : building
    - locale                   : building
    - log                      : building
    - math                     : building
    - mpi                      : not building
    - nowide                   : building
    - program_options          : building
    - python                   : not building
    - random                   : building
    - regex                    : building
    - serialization            : building
    - stacktrace               : building
    - system                   : building
    - test                     : building
    - thread                   : building
    - timer                    : building
    - type_erasure             : building
    - wave                     : building

boost/1.76.0: Package '6e7d6ec1c3ef58de13b8b8f9b95a36ab6dc27d75' built
boost/1.76.0: Build folder /home/conan/.conan/data/boost/1.76.0/_/_/build/6e7d6ec1c3ef58de13b8b8f9b95a36ab6dc27d75
boost/1.76.0: Generated conaninfo.txt
boost/1.76.0: Generated conanbuildinfo.txt
boost/1.76.0: Generating the package
boost/1.76.0: Package folder /home/conan/.conan/data/boost/1.76.0/_/_/package/6e7d6ec1c3ef58de13b8b8f9b95a36ab6dc27d75
boost/1.76.0: Calling package()
boost/1.76.0 package(): Packaged 14344 '.hpp' files
boost/1.76.0 package(): Packaged 147 '.h' files
boost/1.76.0 package(): Packaged 253 '.ipp' files
boost/1.76.0 package(): Packaged 17 files
boost/1.76.0 package(): Packaged 2 '.inc' files: cpp_re.inc, strict_cpp_re.inc
boost/1.76.0 package(): Packaged 1 '.txt' file: LICENSE_1_0.txt
boost/1.76.0 package(): Packaged 41 '.a' files
boost/1.76.0: Package '6e7d6ec1c3ef58de13b8b8f9b95a36ab6dc27d75' created
boost/1.76.0: Created package revision 9ce0e374d5dbdec7b7c822c320bf2c13
boost/1.76.0: WARN: Boost component 'atomic' is missing libraries. Try building boost with '-o boost:without_atomic'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'chrono' is missing libraries. Try building boost with '-o boost:without_chrono'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'container' is missing libraries. Try building boost with '-o boost:without_container'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'context' is missing libraries. Try building boost with '-o boost:without_context'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'contract' is missing libraries. Try building boost with '-o boost:without_contract'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'coroutine' is missing libraries. Try building boost with '-o boost:without_coroutine'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'date_time' is missing libraries. Try building boost with '-o boost:without_date_time'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'exception' is missing libraries. Try building boost with '-o boost:without_exception'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'fiber' is missing libraries. Try building boost with '-o boost:without_fiber'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'fiber_numa' is missing libraries. Try building boost with '-o boost:without_fiber_numa'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'filesystem' is missing libraries. Try building boost with '-o boost:without_filesystem'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'graph' is missing libraries. Try building boost with '-o boost:without_graph'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'iostreams' is missing libraries. Try building boost with '-o boost:without_iostreams'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'json' is missing libraries. Try building boost with '-o boost:without_json'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'locale' is missing libraries. Try building boost with '-o boost:without_locale'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'log' is missing libraries. Try building boost with '-o boost:without_log'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'log_setup' is missing libraries. Try building boost with '-o boost:without_log_setup'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'math_c99' is missing libraries. Try building boost with '-o boost:without_math_c99'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'math_c99f' is missing libraries. Try building boost with '-o boost:without_math_c99f'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'math_c99l' is missing libraries. Try building boost with '-o boost:without_math_c99l'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'math_tr1' is missing libraries. Try building boost with '-o boost:without_math_tr1'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'math_tr1f' is missing libraries. Try building boost with '-o boost:without_math_tr1f'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'math_tr1l' is missing libraries. Try building boost with '-o boost:without_math_tr1l'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'nowide' is missing libraries. Try building boost with '-o boost:without_nowide'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'prg_exec_monitor' is missing libraries. Try building boost with '-o boost:without_prg_exec_monitor'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'program_options' is missing libraries. Try building boost with '-o boost:without_program_options'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'random' is missing libraries. Try building boost with '-o boost:without_random'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'regex' is missing libraries. Try building boost with '-o boost:without_regex'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'serialization' is missing libraries. Try building boost with '-o boost:without_serialization'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'stacktrace_addr2line' is missing libraries. Try building boost with '-o boost:without_stacktrace_addr2line'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'stacktrace_backtrace' is missing libraries. Try building boost with '-o boost:without_stacktrace_backtrace'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'stacktrace_basic' is missing libraries. Try building boost with '-o boost:without_stacktrace_basic'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'stacktrace_noop' is missing libraries. Try building boost with '-o boost:without_stacktrace_noop'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'system' is missing libraries. Try building boost with '-o boost:without_system'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'test_exec_monitor' is missing libraries. Try building boost with '-o boost:without_test_exec_monitor'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'thread' is missing libraries. Try building boost with '-o boost:without_thread'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'timer' is missing libraries. Try building boost with '-o boost:without_timer'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'type_erasure' is missing libraries. Try building boost with '-o boost:without_type_erasure'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'unit_test_framework' is missing libraries. Try building boost with '-o boost:without_unit_test_framework'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'wave' is missing libraries. Try building boost with '-o boost:without_wave'. (Option is not guaranteed to exist)
boost/1.76.0: WARN: Boost component 'wserialization' is missing libraries. Try building boost with '-o boost:without_wserialization'. (Option is not guaranteed to exist)
ERROR: boost/1.76.0: Error in package_info() method, line 1453
        raise ConanException("These libraries were built, but were not used in any boost module: {}".format(non_used))
        ConanException: These libraries were built, but were not used in any boost module: {'my_boost_program_options', 'my_boost_atomic', 'my_boost_container', 'my_boost_wserialization', 'my_boost_random', 'my_boost_math_tr1', 'my_boost_chrono', 'my_boost_math_c99', 'my_boost_system', 'my_boost_graph', 'my_boost_coroutine', 'my_boost_json', 'my_boost_math_tr1f', 'my_boost_nowide', 'my_boost_log_setup', 'my_boost_contract', 'my_boost_unit_test_framework', 'my_boost_test_exec_monitor', 'my_boost_math_c99l', 'my_boost_iostreams', 'my_boost_prg_exec_monitor', 'my_boost_wave', 'my_boost_stacktrace_backtrace', 'my_boost_math_c99f', 'my_boost_fiber', 'my_boost_stacktrace_addr2line', 'my_boost_locale', 'my_boost_exception', 'my_boost_serialization', 'my_boost_stacktrace_basic', 'my_boost_regex', 'my_boost_filesystem', 'my_boost_type_erasure', 'my_boost_timer', 'my_boost_log', 'my_boost_thread', 'my_boost_stacktrace_noop', 'my_boost_date_time', 'my_boost_fiber_numa', 'my_boost_context', 'my_boost_math_tr1l'}
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

Successfully merging a pull request may close this issue.

2 participants