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

When compiling boost in macOS Intel for arm64, some libraries are missing. #12044

Closed
iradization opened this issue Aug 4, 2022 · 3 comments · Fixed by #12119
Closed

When compiling boost in macOS Intel for arm64, some libraries are missing. #12044

iradization opened this issue Aug 4, 2022 · 3 comments · Fixed by #12119

Comments

@iradization
Copy link

While trying to create a cross-platform build system for my project, I encountered the following issue when fetching boost library from Conancenter:

here's the install command + configuration

-- Conan executing: conan install /Users/me/myproj/conan.py --remote conancenter --build missing --settings build_type=Release --settings compiler=apple-clang --settings compiler.version=13.1 --settings compiler.libcxx=libc++
Configuration:
[settings]
arch=armv8
arch_build=x86_64
build_type=Release
compiler=apple-clang
compiler.libcxx=libc++
compiler.version=13.1
os=Macos
os_build=Macos
[options]
[build_requires]
[env]

And this is the error I've got :

boost/1.79.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.79.0: WARN: Boost component 'stacktrace_backtrace' is missing libraries. Try building boost with '-o boost:without_stacktrace_backtrace'. (Option is not guaranteed to exist)
ERROR: boost/1.79.0: Error in package_info() method, line 1664
	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_stacktrace_backtrace', 'boost_stacktrace_addr2line'}

any idea how to resolve it ?

@franramirez688
Copy link
Contributor

Hi @iradization

I guess this is a problem related to the recipe, so let me transfer the issue to conan-center-index repository.

@czoido czoido transferred this issue from conan-io/conan Aug 4, 2022
@iradization
Copy link
Author

Hi all, any chance someone can look at this error ? thanks !

@uilianries
Copy link
Member

@iradization It's unexpected, because any change related to those options, as more than 1 year old.

First, what's the content of your recipe? Are you requesting specific options?

That error says what was requested in terms of modules, is not the same for what the recipe found.

Also, you can use compiler.version=13, because it's compatible with 13.1. I run Apple 13.1 too, but I use 13 on my profile. The advantage, you will find pre-built libraries from Conan Center.

I suggest you cleaning your cache, then trying to install Boost again:

rm -rf ~/.conan/data/boost
conan install boost/1.79.0@

markferry added a commit to cognomen/conan-center-index that referenced this issue Aug 8, 2022
…ersion

This switches the code from using `conans.client.tools.version.Version`
(which wraps semver and has .major and .minor properties) to
`conans.model.version.Version` (which has .major and .minor methods).

So the later calls to .major and .minor weren't calling the methods and we get:

```python
@(Pdb) Version(self._python_version).major
<bound method Version.major of '3.10'>
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants