Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Boost Failed #3102

Closed
MiyajiAnimation opened this issue May 31, 2024 · 7 comments
Closed

Boost Failed #3102

MiyajiAnimation opened this issue May 31, 2024 · 7 comments
Labels
blocked Issue fix or pull request blocked until questions are answered or pending notes are addressed build Build-related issue/PR

Comments

@MiyajiAnimation
Copy link

Description of Issue

Trying to build boost fails :(
in following error message:
'ERROR: Failed to run 'b2 --prefix="D:\USD" --build-dir="D:\USD\build" -j4 address-model=64 link=shared runtime-link=shared threading=multi variant=release --with-atomic --with-regex --with-python --user-config=python-config.jam toolset=msvc-14.3 install'

Steps to Reproduce

Downloaded the OpenUSD v24.05 from PixarAnimationsStudios Github
Open x64 Native Tools 2022
Run > python "D:\OpenUSD - PIXAR\OpenUSD\build_scripts\build_usd.py" "D:\USD"

System Information (OS, Hardware)

Windows 10 Pro - 64 Bit | OS 19045.4291
RAM: 16GB x2+4GB
CPU: Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz 3.50 GHz

Package Versions

Python 3.9.13 ( 64 bit )
VS 2022

Log files

Here's the log
log.txt

@asluk
Copy link
Collaborator

asluk commented May 31, 2024

can you try it with a simpler path setup, maybe something like c:\mytest\usd_install ? Could be Windows paths being finicky...

@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-9716

@hamedsabri
Copy link

can you set the generator and see if it gives you the same error?

"--generator="Visual Studio 17 2022"

@linesight
Copy link

The root cause is latest vs2022 as of this writing has version 17.10, toolchain version 14.40.33807, old b2 doesn't recognize, so b2 returns error code 1 which fails build pipeline of openusd. Recent b2 has a fix for 17.10
bfgroup/b2#394

@pixnblox
Copy link

FWIW, I was able to get around this by symlinking vcvarsall.bat to the location b2 is looking for, e.g. symlink from:

FROM
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvarsall.bat
TO
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\bin\Hostx64\vcvarsall.bat

The Boost build log will indicate the location it is looking (i.e. the target location to use), but the log itself does not obviously show a failure.

@Lumengine
Copy link

Hi,
I've have the same issue. Another solution is linked to this item.
boostorg/boost#914 (comment)

But after I fixed this, I stiull have another issue with cmake

-- Found Boost: C:/Users/perri/Software/USD/Build/Debug/include/boost-1_82 (found version "1.82.0")
-- Disabling boost-provided cmake config
-- Found Python3: C:\Users\perri\AppData\Local\Programs\Python\Python311\python.exe (found version "3.11.9") found components: Interpreter Development Development.Module Development.Embed
CMake Warning (dev) at cmake/defaults/Packages.cmake:132 (find_package):
Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake
--help-policy CMP0167" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

Call Stack (most recent call first):
CMakeLists.txt:23 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error at C:/Program Files/CMake/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
Could NOT find Boost (missing: python311) (found version "1.82.0")
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.30/Modules/FindBoost.cmake:2409 (find_package_handle_standard_args)
cmake/defaults/Packages.cmake:132 (find_package)
CMakeLists.txt:23 (include)

It seems that boost python311 is not found, and I'm struggling to find a solution.

@dgovil
Copy link
Collaborator

dgovil commented Oct 23, 2024

Hi folks, I just wanted to check if this was still an issue with USD 24.11 for you given that boost is no longer built for USD?
You might hit the B2 issue if you have OIIO or VDB enabled however.

Another thing that would be great to try is to switch the BOOST URL in the build_usd.py to Boost 1.85 which is what VFX platform CY 2025 uses.

@dgovil dgovil added blocked Issue fix or pull request blocked until questions are answered or pending notes are addressed build Build-related issue/PR labels Oct 31, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
blocked Issue fix or pull request blocked until questions are answered or pending notes are addressed build Build-related issue/PR
Projects
None yet
Development

No branches or pull requests

8 participants