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/*: package_info fails if host architecture is wasm #15448

Closed
ovostrikov opened this issue Jan 24, 2023 · 2 comments · Fixed by #15449
Closed

[package] boost/*: package_info fails if host architecture is wasm #15448

ovostrikov opened this issue Jan 24, 2023 · 2 comments · Fixed by #15449
Labels
bug Something isn't working

Comments

@ovostrikov
Copy link
Contributor

ovostrikov commented Jan 24, 2023

Description

Boost package creation fails for WebAssembly if host profile is set up correctly.

Package and Environment Details

  • Package Name/Version: boost/1.80.0
  • Operating System+version: WSL Ubuntu 20.04
  • Compiler+version: Emscripten 3.1.24
  • Conan version: conan 1.53.0
  • Python version: Python 3.8.10

Conan profile

[settings]
os=Emscripten
os_build=Linux
arch=wasm
arch_build=x86_64
compiler=clang
compiler.version=15
compiler.libcxx=libc++
build_type=Release
[options]
[conf]
[build_requires]
[env]

Steps to reproduce

conanfile.txt

[requires]
boost/1.80.0
[options]
boost:without_context=True

emscripten.profile

include(default)
[settings]
os=Emscripten
arch=wasm
compiler=clang
compiler.version=15
compiler.libcxx=libc++
[options]
[env]
#setup enviroment variable for emscripten

Call
conan install . --build --profile:host=emscripten.profile --profile:build=default

package_info method fails because _b2_architecture variable is empty since wasm is not in the list of b2 supported architectures.

Logs

Click to expand log
ERROR: boost/1.80.0: Error in package_info() method, line 1586
        libsuffix_data["arch"] = f"-{self._b2_architecture[0]}{self._b2_address_model}"
        TypeError: 'NoneType' object is not subscriptable
@unfor19
Copy link

unfor19 commented May 14, 2023

@ovostrikov are you able to build boost for wasm after the fix?

@ovostrikov
Copy link
Contributor Author

@unfor19 Yes, although I didn't need to build all of boost, but things I need work fine

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