Summary: | Valgrind fails to build on FreeBSD 13.0 with llvm-devel (15.0.0) | ||
---|---|---|---|
Product: | [Developer tools] valgrind | Reporter: | Paul Floyd <pjfloyd> |
Component: | general | Assignee: | Paul Floyd <pjfloyd> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sam |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | FreeBSD | ||
Latest Commit: | Version Fixed In: |
Description
Paul Floyd
2022-04-19 18:59:16 UTC
I've pushed a change that fixes building. I'll probably make a second change to add libgcc-sup and -lgcc when the compiler is not clang. Removing -lgcc breaks things on FreeBSD with clang. It looks like it contains a few primitives that aren't available elsewhere. To ssh://sourceware.org/git/valgrind.git 8b2cf214a..6af21da95 master -> master (In reply to Paul Floyd from comment #1) > I've pushed a change that fixes building. > > I'll probably make a second change to add libgcc-sup and -lgcc when the > compiler is not clang. Did you have a chance to do this? It looks like Chimera Linux (a pure LLVM Linux distro) is doing it at the moment: https://github.com/chimera-linux/cports/blob/382e497f40f80e5528d714e6075a00b225459dfa/experimental/valgrind/patches/rtlib.patch. (Ended up hitting the same issue in Gentoo just now: https://bugs.gentoo.org/870028). (In reply to Sam James from comment #4) > (In reply to Paul Floyd from comment #1) > > I've pushed a change that fixes building. > > > > I'll probably make a second change to add libgcc-sup and -lgcc when the > > compiler is not clang. > > Did you have a chance to do this? It looks like Chimera Linux (a pure LLVM > Linux distro) is doing it at the moment: > https://github.com/chimera-linux/cports/blob/ > 382e497f40f80e5528d714e6075a00b225459dfa/experimental/valgrind/patches/rtlib. > patch. > > (Ended up hitting the same issue in Gentoo just now: > https://bugs.gentoo.org/870028). No. As I said in comment 2 removing -lgcc breaks things. I'll check on the missing primitives. |