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

Monolithic debug build failure #3462

Open
BranBro opened this issue Dec 12, 2024 · 2 comments
Open

Monolithic debug build failure #3462

BranBro opened this issue Dec 12, 2024 · 2 comments

Comments

@BranBro
Copy link

BranBro commented Dec 12, 2024

Description of Issue

I'm trying to build debug monolithic version of the library (with python) but it seems that the archive library usd_m is larger than 4GB

LNK1248: image size (100018E4B) exceeds maximum allowable size (FFFFFFFF)

Release monolithic version builds without any issue, although the usd_m lib is almost 3.4GB large.

Steps to Reproduce

python path\to\build_usd.py "installDir" --tests --examples --tutorials --tools --python --usd-imaging --opencolorio --no-openvdb --usdview --alembic --hdf5 --draco-location “path\to\draco” --generator "Visual Studio 17 2022" --cmake-build-args "-D_SILENCE_CXX17_SHARED_PTR_UNIQUE_DEPRECATION_WARNING=ON -D_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS=ON" --ptex --build-variant debug --build-monolithic

System Information (OS, Hardware)

Windows 10
Visual Studio 2022 17.12.3
Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34435 for x64

Package Versions

Latest release ( 9b0c13b)

@BranBro BranBro changed the title Monolithic debug build build failure Monolithic debug build failure Dec 12, 2024
@meshula
Copy link
Member

meshula commented Dec 12, 2024

Assuming that the monolithic build isn't subject to a disadvantageous build setting that causes an unnecessary accumulation of extra link or debug information, there's no silver bullet for this one. If someone were to take it on, it would be necessary to first understand what's in the archive, and then undertake a series of modifications to compile settings, or even partition the library.

@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-10506

(This is an automated message. See here for more information.)

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

No branches or pull requests

3 participants