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

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

Open
joaquintides opened this issue Jan 12, 2024 · 2 comments
Open

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

joaquintides opened this issue Jan 12, 2024 · 2 comments
Labels
bug Something isn't working norepro Doesn't reproduce with current code

Comments

@joaquintides
Copy link

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!

@joaquintides joaquintides added the bug Something isn't working label Jan 12, 2024
@grafikrobot
Copy link
Member

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.

@grafikrobot grafikrobot added the norepro Doesn't reproduce with current code label Jan 25, 2024
Flamefire added a commit to boostorg/boost-ci that referenced this issue Feb 6, 2024
Avoid "LINK : fatal error LNK1158: cannot run 'mt.exe'"
See bfgroup/b2#356
Flamefire added a commit to boostorg/boost-ci that referenced this issue Feb 6, 2024
Avoid "LINK : fatal error LNK1158: cannot run 'mt.exe'"
See bfgroup/b2#356
@Kojoley
Copy link
Contributor

Kojoley commented Feb 7, 2024

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

That error usually means Windows SDK is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working norepro Doesn't reproduce with current code
Projects
None yet
Development

No branches or pull requests

3 participants