[bug] MesonToolchain does not respect libcxx setting
See original GitHub issueEnvironment Details (include every applicable attribute)
- Operating System+version: Ubuntu 22.04 LTS
- Compiler+version: Clang 13
- Conan version: 1.52.0
- Python version: 3.10.3
Steps to reproduce (Include if Applicable)
When running a verbose build, the -stdlib=libc++
option does not appear to be passed to Clang, causing the test package to fail with linking errors. As there are no other CCI packages using the new MesonToolchain to build C++ libraries, I’m not sure if this is a bug or if I am missing some generation step.
See libsigcpp recipe in https://github.com/conan-io/conan-center-index/pull/12775
Logs (Executed commands with output) (Include/Attach if Applicable)
Issue Analytics
- State:
- Created a year ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
[bug] MesonToolchain does not pick up CC/CXX from build ...
[bug] MesonToolchain does not pick up CC/CXX from build requirements ... won't contain the properties.c values, set by crosscompiler/0.1 .
Read more >Conan not respecting compiler.libcxx abi setting - c++
I have the following conan profile: $ conan profile show default Configuration for profile default: [settings] os=Linux os_build=Linux ...
Read more >Changelog — conan 1.56.0 documentation
Docs here; Fix: Raise a clear error if settings.compiler is not defined for MesonToolchain . #12623; Fix: Fix runenv for cmake.test() .
Read more >conan Changelog - pyup.io
Fix: Raise a clear error if ``settings.compiler`` is not defined for ``MesonToolchain``. (https://github.com/conan-io/conan/pull/12623)
Read more >troubleshooting · master · RD51 Software and Firmware for ...
§1: if a bug is declared as HW look for a bug in FW or SW ... --build=outdated --no-imports -- ERROR: compiler not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Workaround
(not comprehensive)
Test package created using
conan new <package> -t -m meson_lib
With a few modifications to run the test package using the new CMake toolchain.
conan-meson.zip
Steps to reproduce
conan create . -s compiler.libcxx=libc++
(with Clang)Expected results
The test package is built correctly
Actual results
The test package fails with linking errors caused by linking a different C++ standard library to that used by the main package.