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

can not build on windows #41

Closed
lainswork opened this issue Mar 29, 2024 · 9 comments
Closed

can not build on windows #41

lainswork opened this issue Mar 29, 2024 · 9 comments

Comments

@lainswork
Copy link

when i build reclient

Bazel uses ml64 to compile S file, but in reality, I have specified the compiler as GCC
Ultimately, ml64 was unable to parse assembly files from the gcc specification

image

@daniel-sudz
Copy link
Contributor

@gkousik I am able to reproduce this issue. Would upstream accept a PR for a fix?

@bentekkie
Copy link
Collaborator

We use the llvm clang-cl toolchain to compile on windows.

Could you try the build after following https://bazel.build/configure/windows#clang

@bentekkie
Copy link
Collaborator

Actually I reproduced it locally, will work on a fix

@bentekkie
Copy link
Collaborator

f7132ba should fix this, can you confirm?

@bentekkie
Copy link
Collaborator

You will need the clang-cl toolchain installed on your machine

@daniel-sudz
Copy link
Contributor

daniel-sudz commented Jun 7, 2024

You will need the clang-cl toolchain installed on your machine

I'm currently having some trouble getting bazel to find my clang-cl but this is unrelated to reclient. I pulled llvm from choco under C:\\Program Files\\LLVM\\bin and put it on my action-env path but something still seems wrong.

Anyways I will debug this for a bit and let you know if I still need something. Thanks again for the help!

setting BAZEL_LLVM explicitly seems to do the trick.

@daniel-sudz
Copy link
Contributor

f7132ba should fix this, can you confirm?

I think I'm seeing an issue similar to bazelbuild/bazel#17863 now. Looking into it.

ERROR: C:/users/containeradministrator/_bazel_containeradministrator/sd2lufjt/external/com_github_gflags_gflags/BUILD:18:15: Compiling src/windows_port.cc failed: undeclared inclusion(s) in rule '@com_github_gflags_gflags//:gflags':
this rule is missing dependency declarations for the following files included by 'src/windows_port.cc':
  'C:/Program Files/LLVM/lib/clang/18/include/vadefs.h'
  'C:/Program Files/LLVM/lib/clang/18/include/stdarg.h'
  'C:/Program Files/LLVM/lib/clang/18/include/__stdarg___gnuc_va_list.h'
  'C:/Program Files/LLVM/lib/clang/18/include/__stdarg_va_list.h'
  'C:/Program Files/LLVM/lib/clang/18/include/__stdarg_va_arg.h'
  'C:/Program Files/LLVM/lib/clang/18/include/__stdarg___va_copy.h'
  'C:/Program Files/LLVM/lib/clang/18/include/__stdarg_va_copy.h'
  'C:/Program Files/LLVM/lib/clang/18/include/stdarg.h'
  'C:/Program Files/LLVM/lib/clang/18/include/stdarg.h'
  'C:/Program Files/LLVM/lib/clang/18/include/stddef.h'
  'C:/Program Files/LLVM/lib/clang/18/include/__stddef_ptrdiff_t.h'
  'C:/Program Files/LLVM/lib/clang/18/include/__stddef_size_t.h'
  'C:/Program Files/LLVM/lib/clang/18/include/__stddef_wchar_t.h'
  'C:/Program Files/LLVM/lib/clang/18/include/__stddef_null.h'
  'C:/Program Files/LLVM/lib/clang/18/include/__stddef_nullptr_t.h'
  'C:/Program Files/LLVM/lib/clang/18/include/__stddef_max_align_t.h'
  'C:/Program Files/LLVM/lib/clang/18/include/__stddef_offsetof.h'
  'C:/Program Files/LLVM/lib/clang/18/include/limits.h'
  'C:/Program Files/LLVM/lib/clang/18/include/stdarg.h'
  'C:/Program Files/LLVM/lib/clang/18/include/inttypes.h'
  'C:/Program Files/LLVM/lib/clang/18/include/stdint.h'
Target //cmd/scandeps:scandeps_server failed to build
INFO: Elapsed time: 11.929s, Critical Path: 1.53s
INFO: 8 processes: 8 internal.
FAILED: Build did NOT complete successfully

@daniel-sudz
Copy link
Contributor

@bentekkie created new issue in https://issues.chromium.org/issues/345627618 to bump bazel version.

@bentekkie
Copy link
Collaborator

Closing this as we have a working GitHub actions build now

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

3 participants