29 May 2025 |
Leonardo Santiago | I looked up your nixops4 setup and it seemed pretty similar (almost exactly the same) as mine so I don't know what I'm doing wrongly | 14:16:13 |
Robert Hensing (roberth) |
clang?
Not on linux
| 14:16:18 |
Leonardo Santiago | oh, so it's on gcc ? that may be it, you have some gcc measures that I'm not using | 14:16:45 |
Robert Hensing (roberth) | I do use clang on linux in my dev shell when hacking on the thing | 14:17:38 |
Leonardo Santiago | I'm not a super c++ guy but the only instance I found someone commenting this was because of a gcc13 -> 14 version mismatch and so I think that'd be the issue here too | 14:18:03 |
Robert Hensing (roberth) | May be possible to build it that way with pkgsLLVM | 14:18:07 |
Leonardo Santiago | especially given that it is a nixpkgs upgrade | 14:18:08 |
Leonardo Santiago | wdym? | 14:18:20 |
Robert Hensing (roberth) | Something like nix build nixpkgs#pkgsLLVM.nixVersions.git | 14:19:03 |
Robert Hensing (roberth) | It's not the most reliably buildable package set, but if it works... | 14:19:30 |
Leonardo Santiago | oh, it was building fine with gcc before, I'll try to add your gcc countermeasures and see if that fixes it | 14:19:45 |
Robert Hensing (roberth) | ok | 14:20:09 |
Leonardo Santiago | yep, apparently it worked | 14:30:58 |
Leonardo Santiago | nope, false positive, tested on old nix version | 14:35:18 |
Leonardo Santiago | just to confirm, indeed the bump made the jump from gcc13 to gcc14 and it seems to be inline with this gentoo forum error report: https://forums.gentoo.org/viewtopic-t-1172390-start-0.html | 15:23:17 |
Leonardo Santiago | * just to confirm, indeed the nixpkgs bump made the jump from gcc13 to gcc14 and it seems to be inline with this gentoo forum error report: https://forums.gentoo.org/viewtopic-t-1172390-start-0.html | 15:23:52 |
Leonardo Santiago | though I'm not entirely sure where this mismatch comes from. maybe the libclang I'm using in bindgen is equivalent to gcc13? I tried updating nixpkgs to latest but nothing worked | 15:25:09 |
Leonardo Santiago | https://github.com/llvm/llvm-project/issues/96610 | 15:54:41 |
Leonardo Santiago | this means that you're using bindgen with gcc, is that correct? | 15:55:12 |
Leonardo Santiago | or, at least, linking it | 15:55:24 |
Robert Hensing (roberth) | correct - an unmodified bindgen, which uses clang as a library internally for code generation, whereas Nix is built with gcc | 16:23:39 |
Leonardo Santiago | and how do you make it link with gcc correctly? | 16:25:45 |
Leonardo Santiago | I've taken a look at your nci.nix and I thought it might be either the postConfigure script or the NIX_CC_UNWRAPPED part but none of these had any effect | 16:26:26 |
Leonardo Santiago | oh, I see the issue, the script seems to be correctly adding gcc into the include path, but it's gcc13 , not the one used by nix | 16:54:42 |
Leonardo Santiago | and this is because I'm on nixos-24.11 not nixos-unstable ! | 16:57:00 |
Leonardo Santiago | * and this is because I'm on nixos-24.11 not nixos-unstable , so updating it did not fast forward it enough | 16:57:09 |
Leonardo Santiago | finally | 16:57:19 |
Leonardo Santiago | * finally it works | 16:57:22 |
Leonardo Santiago | now I'm having trouble with libflake-c | 19:52:30 |
Leonardo Santiago | for instance, I cannot seem to simply call nix_flake_reference_and_fragment_from_string | 19:53:58 |