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

Boost failed runtest with error C1128: number of sections exceeded object file format limit: compile with /bigobj #860

Open
WillaCao opened this issue Feb 8, 2024 · 0 comments

Comments

@WillaCao
Copy link

WillaCao commented Feb 8, 2024

Description

The issue only repro on X64-bit. Adding the /bigobj option works. Could you please help to take a look at this? Thank you.

Steps to Reproduce

  1. Open vs2022 x64 native Tools Command Prompt
  2. git clone https://github.com/boostorg/boost F:\gitP\boostorg\boost
  3. cd F:\gitP\boostorg\boost
  4. git reset --hard ad09f66
  5. .\bootstrap
  6. .\b2 headers variant=release --build-dir=F:\gitP\boostorg\boost\out\amd64rel address-model=64
  7. .\b2 variant=release --build-dir=F:\gitP\boostorg\boost\out\amd64rel address-model=64
  8. set CL=/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR /D_SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING /DBOOST_TIMER_ENABLE_DEPRECATED /wd4996 %CL%
  9. set OPENSSL_ROOT=F:\tools\OpenSSL\64
  10. set path=F:\tools\OpenSSL\64\bin;%path%
  11. set path=C:\Python\Python27;%path%
  12. .\b2 -j16 variant=release --build-dir=F:\gitP\boostorg\boost\out\amd64rel libs\type_erasure\test address-model=64

Expected behavior

Run tests all pass

Actual behavior

error C1128: <func:#0, Mod:F:\gitP\boostorg\boost\libs\type_erasure\test\test_assign.cpp> number of sections exceeded object file format limit: compile with /bigobj
test.log.103.log

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

1 participant