Giter VIP home page Giter VIP logo

Comments (11)

git-bruh avatar git-bruh commented on July 24, 2024

Hmm, the llvm update went fine for me on musl (11.0.1 -> 11.1.0). Unfortunately I won't be able to test this for a while because I lost my musl chroot due to a silly typo :/

What CFLAGS and CXXFLAGS are you using ? Try setting them to -Os (or -O2) -pipe -march=native

If the above fails then you can try building with an existing clang instead of gcc

from repo.

kyx0r avatar kyx0r commented on July 24, 2024

Yes, that's what I did. I had -O3 -pipe -march=native -mtune=native, since I suspected a compiler bug or llvm bug I changed it to -O2 optimization and it did not crash. Still that is freaking disgusting. The bug is still there and someone has to fix it. I need to bisect what's at fault here.

from repo.

git-bruh avatar git-bruh commented on July 24, 2024

That's pretty weird... O3 usually doesn't cause any problems, most of the issues are caused by LTO stuff.

from repo.

kyx0r avatar kyx0r commented on July 24, 2024

It could also be one of -march=native -mtune=native I compiled without them.

from repo.

dilyn-corner avatar dilyn-corner commented on July 24, 2024

I would expect an issue if you were using LTO, but not this issue.
I've built llvm 11.1.0 on three different installs so far with no issues, I don't think this is a CFLAGS problem (my most aggressive being -O3 -fno-math-errno -pipe -march=native -mtune=native)

That log doesn't seem complete. At least, if it is, it's basically useless for me.

from repo.

kyx0r avatar kyx0r commented on July 24, 2024

Here is the full log :
llvmbuild.LOG

from repo.

dilyn-corner avatar dilyn-corner commented on July 24, 2024

Shame the full log isn't more helpful.

You're not modifying the llvm build at all, correct? Maybe seeing what is in env will help... Have you changed anything else in the 'guts'? Maybe some gcc change you've made or some such other alteration?

from repo.

kyx0r avatar kyx0r commented on July 24, 2024

No, it's a compiler bug it seems, when I remove the -march=native -mtune=native everything compiles fine, even with -O3

from repo.

dilyn-corner avatar dilyn-corner commented on July 24, 2024

Now that is quite strange

from repo.

kyx0r avatar kyx0r commented on July 24, 2024

Not really, compiler bugs happen quite often. Usually I run into 1 bug every month. Since the bug is somehow tied to my settings that are cpu dependant (march=native -mtune=native) you won't be able to reproduce them I suppose unless you have the same cpu as I do, which is Intel Pentium Silver N5000. That is pretty rare one to find.

from repo.

dilyn-corner avatar dilyn-corner commented on July 24, 2024

Closing because this seems to be strictly an llvm problem. gl :(

from repo.

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.