Code Monkey home page Code Monkey logo

Comments (8)

sagudev avatar sagudev commented on July 16, 2024

Maybe try https://github.com/marketplace/actions/install-clang or https://github.com/marketplace/actions/install-llvm-and-clang

from mozjs.

sagudev avatar sagudev commented on July 16, 2024

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.

jdm avatar jdm commented on July 16, 2024

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.

sagudev avatar sagudev commented on July 16, 2024

It would still be nice to have it done properly not with scoop, which gives more trouble now than solutions.

from mozjs.

sagudev avatar sagudev commented on July 16, 2024

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.

jdm avatar jdm commented on July 16, 2024

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.

Redfire75369 avatar Redfire75369 commented on July 16, 2024

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.

sagudev avatar sagudev commented on July 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.