Comments (8)
Maybe try https://github.com/marketplace/actions/install-clang or https://github.com/marketplace/actions/install-llvm-and-clang
from mozjs.
Here is something interesting: https://github.com/egor-tensin/setup-clang/blob/master/.github/workflows/test.yml#L22
They apparently clear whole path before using clang. Maybe we only need to remove windows llvm from path.
from mozjs.
I experimented with https://github.com/marketplace/actions/install-llvm-and-clang in #299, but that was before I figured out the issues around MozillaBuild 4.0.
from mozjs.
It would still be nice to have it done properly not with scoop, which gives more trouble now than solutions.
from mozjs.
Maybe it's not Windows virtual environment Rust, that is causing these errors. One solution that I could think of is using rustc -vV | sed -n 's|LLVM version: ||p'
to extract Rust's LLVM version and install the same version in the Windows CI with scoop.
from mozjs.
Maybe it's not Windows virtual environment Rust, that is causing these errors. One solution that I could think of is using
rustc -vV | sed -n 's|LLVM version: ||p'
to extract Rust's LLVM version and install the same version in the Windows CI with scoop.
I don't think there's any evidence that the version of LLVM used by Rust is to blame. The issue is header files present in MSVC, as far as I can recall.
from mozjs.
Based on https://github.com/Redfire75369/spiderfire/actions/runs/4497451094/jobs/7913055028, MSVC and the version of LLVM 15.0.7 on the system definitely seem to be the issue. (Installed LLVM 14.0.6 with scoop)
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\include\yvals_core.h:807:1: error: static_assert failed "Error in C++ Standard Library usage.", err: true
C:\Program Files\LLVM\lib\clang\15.0.7\include\emmintrin.h:2108:19: error: use of undeclared identifier '__builtin_elementwise_add_sat', err: true
C:\Program Files\LLVM\lib\clang\15.0.7\include\emmintrin.h:2129:19: error: use of undeclared identifier '__builtin_elementwise_add_sat', err: true
C:\Program Files\LLVM\lib\clang\15.0.7\include\emmintrin.h:2149:19: error: use of undeclared identifier '__builtin_elementwise_add_sat', err: true
C:\Program Files\LLVM\lib\clang\15.0.7\include\emmintrin.h:2169:19: error: use of undeclared identifier '__builtin_elementwise_add_sat', err: true
C:\Program Files\LLVM\lib\clang\15.0.7\include\emmintrin.h:2528:19: error: use of undeclared identifier '__builtin_elementwise_sub_sat', err: true
C:\Program Files\LLVM\lib\clang\15.0.7\include\emmintrin.h:2548:19: error: use of undeclared identifier '__builtin_elementwise_sub_sat', err: true
C:\Program Files\LLVM\lib\clang\15.0.7\include\emmintrin.h:2567:19: error: use of undeclared identifier '__builtin_elementwise_sub_sat', err: true
C:\Program Files\LLVM\lib\clang\15.0.7\include\emmintrin.h:2586:19: error: use of undeclared identifier '__builtin_elementwise_sub_sat', err: true
from mozjs.
When looking at error, notice how it uses clang/15.0.7 when the installed version from scoop is 14.0.6
I believe that there is something wrong with one of build.rs scripts at least on windows that uses the wrong compiler.
from mozjs.
Related Issues (20)
- Builds on Windows with the Beta branch are broken HOT 9
- Incorrect Definition of JS::CreateError
- `type_traits` not found when building on Linux HOT 1
- The Integrity check is currently broken HOT 2
- Add safe GC rooting infrastructure HOT 4
- How to listen for JS Errors in rust? HOT 5
- Building with MSYS2 and GCC HOT 2
- malformed config/autoconf.mk HOT 10
- Prevent mismatching signatures in glue
- Parallel compilation is broken with GNU Make 4.4 HOT 7
- Use of `Pin` for `Heap<T>` to indicate Immovability HOT 5
- Fix generate_wrappers script
- Remove UWP
- Incorrect Download Instructions for Windows HOT 3
- generate_wrappers.sh only works on Clean Builds HOT 1
- Add cross compilation testing HOT 3
- Build Failure on Windows with LLVM 17.0.1 HOT 8
- Match folder names to crate names. HOT 1
- crates.io update HOT 2
- Windows Path Too Long HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mozjs.