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

Build fails with toolset msvc-14.1 and debug-store=database #243

Open
thebrandre opened this issue Aug 13, 2019 · 0 comments
Open

Build fails with toolset msvc-14.1 and debug-store=database #243

thebrandre opened this issue Aug 13, 2019 · 0 comments

Comments

@thebrandre
Copy link

All the cpp files in math/src/tr1 fail to compile when building boost 1.7.0 with PDBs on Windows 7 with Visual Studio 2017:

call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat" x64
.\bootstrap.bat
.\b2 -j1 toolset=msvc-14.1 architecture=x86 address-model=64 runtime-link=shared variant=debug debug-store=database --without-mpi --without-python stage

Note: you can also use a parallel build but then you need to add cflags=/FS to the command-line arguments of b2 to enable parallel writing of PDBs.

compile-c-c++-pch bin.v2\libs\math\build\msvc-14.1\debug\address-model-64\debug-store-database\link-static\threading-multi\pch.pch pch.pch.cpp
compile-c-c++ bin.v2\libs\math\build\msvc-14.1\debug\address-model-64\debug-store-database\link-static\threading-multi\acosh.obj acosh.cpp
libs\math\build..\src\tr1\acosh.cpp(6): error C2859: bin.v2\libs\math\build\msvc-14.1\debug\address-model-64\debug-store-database\link-static\threading-multi\libboost_math_c99-vc141-mt-gd-x64-1_70.pdb is not the pdb file that was used when this precompiled header was created, recreate the precompiled header.
call "bin.v2\standalone\msvc\msvc-14.1\address-model-64\architecture-x86\msvc-setup.bat" >nul
cl /Zm800 -nologo @"bin.v2\libs\math\build\msvc-14.1\debug\address-model-64\debug-store-database\link-static\threading-multi\acosh.obj.rsp"

... followed by the same error message for each of the 126 cpp files in math/src/tr1.

...failed updating 126 targets...
...skipped 12 targets...
...updated 313 targets...

Some remarks:

  • I have the same issue on Windows 10 with both Visual Studio 2017 and 2019. So I guess, it is fairly easy to reproduce but I'd be happy to provide further information.
  • This is related to this issue submitted to boost.build.
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