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

Windows build fails if llvm 9 or later is installed #25457

Open
asajeffrey opened this issue Jan 7, 2020 · 0 comments
Open

Windows build fails if llvm 9 or later is installed #25457

asajeffrey opened this issue Jan 7, 2020 · 0 comments

Comments

@asajeffrey
Copy link
Member

@asajeffrey asajeffrey commented Jan 7, 2020

On windows, we install llvm 8.0.0, and use it in bindgen for mozjs. Unfortunately if llvm 9 is isntalled as the system llvm, its includes get picked up, resulting in build errors:

C:\Program Files\LLVM\lib\clang\9.0.0\include\emmintrin.h:2308:19: error: use of undeclared identifier '__builtin_ia32_pavgb128'
C:\Program Files\LLVM\lib\clang\9.0.0\include\emmintrin.h:2328:19: error: use of undeclared identifier '__builtin_ia32_pavgw128'
C:\Users\ajeffrey\github\asajeffrey\servo\target\debug\build\mozjs_sys-5d322e9a9264f323\out\dist/include\mozilla/Assertions.h:219:1: warning: function declared 'noreturn' should not return [-Winvalid-noreturn], err: false
C:\Program Files\LLVM\lib\clang\9.0.0\include\emmintrin.h:2308:19: error: use of undeclared identifier '__builtin_ia32_pavgb128', err: true
C:\Program Files\LLVM\lib\clang\9.0.0\include\emmintrin.h:2328:19: error: use of undeclared identifier '__builtin_ia32_pavgw128', err: true
thread 'main' panicked at 'Should generate JSAPI bindings OK: ()', src\libcore\result.rs:1188:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

Build FAILED in 0:00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.