bfgroup / b2

B2 makes it easy to build C++ projects, everywhere.
https://www.bfgroup.xyz/b2/
Boost Software License 1.0
75 stars 228 forks source link

Manifest-related problems with b2 building in msvc-14.0 #356

Open joaquintides opened 7 months ago

joaquintides commented 7 months ago

Starting with B2 5.0.0, building b2 with msvc-14.0 (toolset vc14) fails with:

LINK : fatal error LNK1158: cannot run 'mt.exe'

Full log here. Seemingly this is related to manifest embedding, as defining B2_DONT_EMBED_MANIFEST when building b2 solves the problem. Ideally, this shouldn't be necessary as it wasn't pre 5.0.0.

Thank you!

grafikrobot commented 7 months ago

I'm starting to suspect this is a consequence of a badly configured msvc install. As it works with the same toolset in Appveyor.. https://ci.appveyor.com/project/bfgroup/b2/build/job/f5fqmt4vvg6i7kiv -- And since it's msvc itself that is invoking mt.exe, and not finding it, increases my suspicion to that conclusion. I.e. msvc itself thinks mt.exe should be there.

Kojoley commented 6 months ago
LINK : fatal error LNK1158: cannot run 'mt.exe'

That error usually means Windows SDK is missing.