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.78.0: build from source fails with MSVC 2022 due to outdated b2 dep #9047

Closed
accwebs opened this issue Jan 23, 2022 · 1 comment · Fixed by #9069
Closed
Labels
bug Something isn't working

Comments

@accwebs
Copy link
Contributor

accwebs commented Jan 23, 2022

Issue summary

It appears later b2 package versions + recipes had support for VS 2022 added. Latest version of b2 is 4.7.1, but currently the present Boost recipe still references b2/4.5.0. Thus, you get the following with Microsoft Visual Studio 2022 when trying to build boost (which in turn tries to build b2):

Caution: Conan n00b here so I might have gotten this report wrong ;-)

b2/4.5.0: Calling build()
LOCALAPPDATA=C:\Users\Aaron Curley\AppData\Local
Found with vswhere C:\Program Files\Microsoft Visual Studio\2022\Community
###
### "Unknown toolset: vcunk"
###
### You can specify the toolset as the argument, i.e.:
###     .\build.bat msvc
###
### Toolsets supported by this script are: borland, como, gcc,
###     gcc-nocygwin, intel-win32, mingw,
###     vc12, vc14, vc141, vc142
###
### If you have Visual Studio 2017 installed you will need to either update
### the Visual Studio 2017 installer or run from VS 2017 Command Prompt
### as we where unable to detect your toolset installation.
###
b2/4.5.0:
b2/4.5.0: ERROR: Package '11e6a84a7894f41df553e7c92534c3bf26896802' build failed
b2/4.5.0: WARN: Build folder C:\conandata\b2\4.5.0\_\_\build\11e6a84a7894f41df553e7c92534c3bf26896802
ERROR: b2/4.5.0: Error in build() method, line 73
        self.run(command)
        ConanException: Error 1 while executing build

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: boost/1.78.0
  • Operating System+version: Windows 10 x86_64
  • Compiler+version: Visual Studio 2022 (32-bit toolchain, but doubt it matters)
  • Conan version: conan 1.44.1
  • Python version: Python 3.10.2 (x64)

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

Configuration for profile vs-2022-x86-debug:

[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86
compiler=Visual Studio
compiler.version=17
compiler.cppstd=14
compiler.runtime=MDd
build_type=Debug
[options]
[conf]
[build_requires]
[env]

Steps to reproduce (Include if Applicable)

  1. Depend on boost/1.78.0 in your conanfile.
  2. Be using Visual Studio 2022.
  3. Run conan install with --build option. Conan will attempt to build b2 and it will failure due to older b2 not being set up to build with MSVC 2022.
@accwebs accwebs added the bug Something isn't working label Jan 23, 2022
@accwebs
Copy link
Contributor Author

accwebs commented Jan 23, 2022

I locally bumped b2 in the boost formula to version 4.7.1. This seemed to fix the issue but I'm not sure if there could be other breakages as a result. Gonna do some testing and if things work I'll open a PR.

accwebs added a commit to accwebs/conan-center-index that referenced this issue Jan 25, 2022
….5.0').

This fixes conan-io#9047 ('build from source fails with MSVC 2022 due to outdated b2 dep')
accwebs added a commit to accwebs/conan-center-index that referenced this issue Jan 29, 2022
….5.0'). Add patches to fix bugs in Boost<=1.77.0 so they build with newer b2

This fixes conan-io#9047 ('build from source fails with MSVC 2022 due to outdated b2 dep')
accwebs added a commit to accwebs/conan-center-index that referenced this issue Jan 31, 2022
….5.0'). Add patches to fix bugs in Boost<=1.77.0 so they build with newer b2

This fixes conan-io#9047 ('build from source fails with MSVC 2022 due to outdated b2 dep')
conan-center-bot pushed a commit that referenced this issue Feb 3, 2022
….5.0')

This fixes #9047 ('build from source fails with MSVC 2022 due to outdated b2 dep')
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.

1 participant