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

[Bug]: Error compiling with boost.context as bazel_dep on windows #3679

Open
kgreenek opened this issue Jan 28, 2025 · 1 comment
Open

[Bug]: Error compiling with boost.context as bazel_dep on windows #3679

kgreenek opened this issue Jan 28, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@kgreenek
Copy link
Contributor

What happened?

When building boost.context as a dependency for asio-grpc, I see the following error in CI. It looks related to boost.context:

(16:17:10) ERROR: C:/b/2vjiva57/external/boost.context~/BUILD.bazel:57:11: Compiling external/boost.context~/src/asm/jump_x86_64_ms_pe_masm.S failed: (Exit 1): ml64.exe failed: error executing CppCompile command (from target @@boost.context~//:boost.context)
  cd /d C:/b/2vjiva57/execroot/_main
  SET INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include;C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt
    SET PATH=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\Extensions\Microsoft\CodeCoverage.Console;C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\\x64;C:\Program Files (x86)\Windows Kits\10\bin\\x64;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\\MSBuild\Current\Bin\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\;;C:\Windows\system32;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\Linux\bin\ConnectionManagerExe
    SET PWD=/proc/self/cwd
    SET RUNFILES_MANIFEST_ONLY=1
    SET TEMP=C:\temp
    SET TMP=C:\temp
    SET VSLANG=1033
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX64\x64\ml64.exe @bazel-out/x64_windows-fastbuild/bin/external/boost.context~/_objs/boost.context/jump_x86_64_ms_pe_masm.obj.params
# Configuration: 9c6fab570edc5fffef82b88d6019146817dc1b60bac048c50ea40ade8b384acd
# Execution platform: @@platforms//host:host
MASM : warning A4018:invalid command-line option : /bigobj
MASM : warning A4018:invalid command-line option : /Zm500
MASM : warning A4018:invalid command-line option : /Z500
MASM : warning A4018:invalid command-line option : /Z00
MASM : warning A4018:invalid command-line option : /Z0
MASM : warning A4018:invalid command-line option : /EHsc
MASM : warning A4018:invalid command-line option : /wd4351
MASM : warning A4018:invalid command-line option : /wd4291
MASM : warning A4018:invalid command-line option : /wd4250
MASM : warning A4018:invalid command-line option : /wd4996
MASM : warning A4018:invalid command-line option : /showIncludes
 Assembling: bazel-out/x64_windows-fastbuild/bin/external/boost.context~/src/asm/jump_x86_64_ms_pe_masm.S
Target @@asio-grpc~//:asio-grpc failed to build

Version

Development (host) and target OS/architectures:

Windows (BCR's CI)

Output of bazel --version:

CI matrix of all bazel versions

Version of relevant rules from the WORKSPACE or MODULE.bazel file:

See asio-grpc 2.6.0

Language(s) and/or frameworks involved:

How to reproduce

To reproduce, uncomment the windows line in the platforms matrix of asio-grpc 2.6.0 presubmit.yml

Any other information?

No response

@kgreenek kgreenek added the bug Something isn't working label Jan 28, 2025
@meteorcloudy
Copy link
Member

Maybe related to bazelbuild/bazel#8924

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

No branches or pull requests

2 participants