GithubHelp home page GithubHelp logo

Comments (4)

Colerar avatar Colerar commented on June 26, 2024

But I can build blst successfully with LLVM 16.

~/Developer/blst master*
❯ bash build.sh
+ /usr/local/opt/llvm@16/bin/clang -O2 -fno-builtin -fPIC -Wall -Wextra -Werror -D__ADX__ -c ./src/server.c
+ /usr/local/opt/llvm@16/bin/clang -O2 -fno-builtin -fPIC -Wall -Wextra -Werror -D__ADX__ -c ./build/assembly.S
+ llvm-ar rc libblst.a assembly.o server.o

~/Developer/blst master*
❯ clang --version
Homebrew clang version 16.0.6
Target: x86_64-apple-darwin23.4.0
Thread model: posix
InstalledDir: /usr/local/opt/llvm@16/bin

I guess this post is related:

https://users.rust-lang.org/t/compiling-inline-asm-with-1-73-0-error-invalid-cfi-advance-loc-expression/101189

Because Rust 1.73.0 also upgrades LLVM to 17.

from blst.

tersec avatar tersec commented on June 26, 2024

Seeing this as well.

from blst.

dot-asm avatar dot-asm commented on June 26, 2024

The problem turns out to be that newer clang, non-Apple build[!?], gets disoriented by labels with dollars in their names. This sounds like a bug, a new one, because for example clang 10, 14, 15, 16 have no problem compiling assembly.S. In which case wouldn't it be more appropriate to say that it's an llvm problem, not blst? As for non-Apple clang build, the latest Apple build appears to be 15, so one can argue that it's not impossible that the problem surfaces down the path even with Apple-provided toolchain... For reference, it doesn't seem to be something homebrew missed when compiling it, because I can reproduce it even on Linux with --target=darwin-x86_64...

from blst.

Colerar avatar Colerar commented on June 26, 2024

So maybe it's a good idea to report this issue to LLVM?

from blst.

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.