| 30 Jul 2023 |
| patryk4815 joined the room. | 21:50:30 |
| 31 Jul 2023 |
| Yingchi Long changed their profile picture. | 18:15:45 |
| Charles joined the room. | 22:02:53 |
| @machinaut:matrix.org left the room. | 22:40:26 |
| 1 Aug 2023 |
| Charles changed their profile picture. | 01:12:22 |
p14 | Download usellvm-16.patch | 14:04:38 |
p14 | I managed to get pkgsLLVM.nix working with an import <nixpkgs> { overlays = [(self: super: { llvmPackages = self.llvmPackages_16; })]; } overlay; however, I did have fix a few other minor things (libseccomp doCheck = false; lowdown hardeningDisable fortify; boost NIX_CFLAGS_LINK = prev.NIX_CFLAGS_LINK + " --target=${self.stdenv.hostPlatform.config}";, and disable 3 tests from nix) | 14:06:30 |
p14 | raitobezarius: any thoughts on the above patch? I'm on x86_64-unknown-linux-gnu, I have the impression you primarily were trying to make a darwin platform work | 14:07:10 |
p14 | I've commented the hacks so hopefully the motivation might be clear. Do you think this is suitable to send as a patch to make llvmPackages_16 work? | 14:07:38 |
p14 | [apols, I have to run away for a few hours shortly] | 14:07:55 |
raitobezarius | I'd say open a PR, expose the problem solved by this and tag the LLVM maintainers | 14:08:00 |
raitobezarius | it's hard to review like this stuff | 14:08:06 |
p14 | raitobezarius: which branch do I send it for -- is master OK given that little will depend directly on llvmPackages_16? | 14:12:27 |
raitobezarius | master is fine | 14:12:56 |
| cole-h changed their display name from cole-h (back 1 Aug) to cole-h. | 14:15:22 |
p14 | Sent as https://github.com/NixOS/nixpkgs/pull/246577. | 14:15:59 |
| 2 Aug 2023 |
p14 | raitobezarius: I've been doing some testing of the above on aarch64-darwin. I found that plain pkgsLLVM.stdenv doesn't build on master, I get a silent failure in compiler-rt. NIX_DEBUG exposes the issue that preConfigure is trying to set CMAKE_LIPO=$(command -v aarch64-apple-darwin-lipo) but this goes straight to the exit/failure handler.
Is pkgsLLVM known (meant?) to work on this platform? Is there a darwin platform it works on?
| 09:24:55 |
sorear | part of why I haven't touched this recently is that I don't have a darwin anything... | 13:17:21 |
p14 | sorear: Yeah, it's a challenge. I can see from the git blame lens (and also through the diff-the-nix-llvm-recipies-through-the-versions) as I hack on things that people have gone through many iterations of fixing things for different environments. | 13:20:44 |
sorear | I see you're only fixing this for _16 so if I want pkgsLLVM _15 to work I | 13:21:38 |
sorear | 'll need to do my own backport | 13:21:49 |
sorear | _14 works fine with the existing nixpkgs code, i tested a while ago | 13:22:12 |
raitobezarius | In reply to @p14:matrix.org
raitobezarius: I've been doing some testing of the above on aarch64-darwin. I found that plain pkgsLLVM.stdenv doesn't build on master, I get a silent failure in compiler-rt. NIX_DEBUG exposes the issue that preConfigure is trying to set CMAKE_LIPO=$(command -v aarch64-apple-darwin-lipo) but this goes straight to the exit/failure handler.
Is pkgsLLVM known (meant?) to work on this platform? Is there a darwin platform it works on?
That's a question for the Darwin folks | 13:28:48 |
raitobezarius | I have no idea personally | 13:28:52 |
raitobezarius | I know that rrbutani has been doing work to support better Darwin | 13:29:06 |
raitobezarius | But it's hard to keep track who is working on what | 13:29:19 |
p14 | Ah, yeah, apols, I was tagging you in part because I saw your name associated with some Darwin things. | 13:29:36 |
raitobezarius | I don't do Darwin at all | 13:30:08 |
raitobezarius | (except the basic stuff to avoid breaking it massively) | 13:31:26 |
raitobezarius | Overall, I'd say it's fine to aim for a pkgsLLVM that works on Linux first | 13:31:59 |