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

Cannot build for Windows 10 #286

Open
y-71 opened this issue Jul 4, 2021 · 1 comment
Open

Cannot build for Windows 10 #286

y-71 opened this issue Jul 4, 2021 · 1 comment

Comments

@y-71
Copy link

y-71 commented Jul 4, 2021

failed to build on windows 10

  --- stderr
  Reticulating splines...
  Finished reading 60 moz.build files in 0.09s
  Read 0 gyp files in parallel contributing 0.00s to total wall time
  Processed into 224 build config descriptors in 0.10s
  RecursiveMake backend executed in 0.45s
    161 total backend files; 161 created; 0 updated; 0 unchanged; 0 deleted; 6 -> 38 Makefile
  Total wall time: 0.70s; CPU time: 0.47s; Efficiency: 67%; Untracked: 0.07s
  D:/Dev/mozjs/mozjs/intl/icu/source/common/unistr.cpp(1979,13): warning: unused function 'uprv_UnicodeStringDummy' [-Wunused-function]
  static void uprv_UnicodeStringDummy(void) {
              ^
  1 warning generated.


  error occurred: Command "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "D:\\dev\\mozjs\\target\\debug\\build\\mozjs_sys-a5bb08c3318f88fa\\out\\build\\dist/include" "-I" "D:\\dev\\mozjs\\target\\debug\\build\\mozjs_sys-a5bb08c3318f88fa\\out\\build\\js/src" "-W4" "-FI" "D:\\dev\\mozjs\\target\\debug\\build\\mozjs_sys-a5bb08c3318f88fa\\out\\build/js/src/js-confdefs.h" "-DRUST_BINDGEN" "-DSTATIC_JS_API" "-DWIN32" "-D_CRT_USE_BUILTIN_OFFSETOF" "-std:c++17" "-FoD:\\dev\\mozjs\\target\\debug\\build\\mozjs_sys-a5bb08c3318f88fa\\out\\build\\glue\\src/jsglue.o" "-c" "src/jsglue.cpp" with args "cl.exe" did not execute successfully (status code exit code: 2).
@jdm
Copy link
Member

jdm commented Jul 4, 2021

I suspect the issue here is that cl.exe from MSVC is being used instead of clang. Spidermonkey no longer supports building with the MSVC compiler. What if you run with CC=cl-clang and CXX=cl-clang?

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

2 participants