| 9 Oct 2021 |
sterni | John Ericson talked about this | 09:34:08 |
pie_ | /nix/store/9lz65rckh7zhg4j76qzmiy0vr9hb0wa1-gcc-10.3.0/lib/debug/libstdc++.so.6 gets created but readelf still shows no debug sections on it... | 12:29:07 |
pie_ | Anyone see anything wrong with this?
let
nixpkgs = import (import ./nix/sources.nix).nixpkgs {};
gcc = nixpkgs.gcc.override (o: { cc = nixpkgs.gcc.cc.overrideAttrs (o: {
dontStrip = true;
configureFlags = o.configureFlags ++ [ "--enable-libstdcxx-debug" "--enable-languages=c++" ];
hardeningDisable = [ "all" ];
});});
in
with nixpkgs; mkShell {
buildInputs = [
git
niv
valgrind
gcc
gdb
cmake
];
LD_LIBRARY_PATH = "${gcc.cc}/lib/debug";
hardeningDisable = [ "all" ]; # clear extraneous compiler flags, I want to add things manually myself.
}
| 12:34:21 |
John Ericson | siraben if you call stage.nix yourself it should work | 16:46:25 |
pie_ | Can I disable separated outputs on gcc? | 21:32:35 |
pie_ | (I think) When I try to add keepTreeHook, I run into:
cycle detected in the references of '/nix/store/bxspqrcrbqw9sbj3ap9rdrk4fpi8150h-gcc-10.3.0-lib' from '/nix/store/xrizkssnx1m7c0z1fji9qxd7kfd333jr-gcc-10.3.0'
error: build of '/nix/store/ck1vxcqvqzn488njy9iwhy8b90jznyd7-gcc-10.3.0.drv', '/nix/store/r6ipjr4ivr1lc61c2yxsk7l6xj9mdygs-gcc-wrapper-10.3.0.drv' failed
| 21:33:27 |
| 11 Oct 2021 |
Alyssa Ross | We really need some mechanism to disable optional dependencies on systemd for musl | 09:53:35 |
Alyssa Ross | or I suppose maybe we could try OpenEmbedded's patches | 10:12:30 |
Alyssa Ross | not a friendly response last time that was tried though D: https://github.com/NixOS/nixpkgs/pull/37715 | 10:17:58 |
symphorien | I saw a pr that introduced somthing to replace udev | 10:42:51 |
symphorien | If we reverted to actually use udev as an input instead of systemd when it makes sens, we could overlay udev with this replacement when on musl | 10:44:04 |
Alyssa Ross | if you could find that PR that would be very interesting to me! | 10:51:29 |
Alyssa Ross | I was just packaging libudev-zero, which looks like it'll solve my problem, but there's no PR for that so it can't have been what you saw | 10:51:59 |
symphorien | ah it was libudev zero as well: https://github.com/NixOS/nixpkgs/pull/136107/files#diff-7f4729ed07e44b3c1b72cd23f20173d664231e0ccac4709648176f389db17e9c | 11:14:17 |
Alyssa Ross | ah, I can see why I didn't notice that with the title, lol | 11:15:27 |
symphorien | (there are probably a lot of good things in this PR, but forcing a clang toolchain for icu and postgresql just to make qt work might be a little too hacky | 11:16:21 |
symphorien | * (there are probably a lot of good things in this PR, but forcing a clang toolchain for icu and postgresql just to make qt work might be a little too hacky) | 11:16:22 |
Alyssa Ross | yeah, this is the sort of thing that should be 10 smaller PRs | 11:16:51 |
| 12 Oct 2021 |
sterni | trofi: https://github.com/nixos/nixpkgs/commit/199b7c505b0390429b08edf68552e8a6ff4a08ce broke pkgsStatic.llvmPackages.stdenv, patch doesn't apply there | 11:33:00 |
sterni | not sure if static or musl is the problem yet | 11:33:21 |
sterni | maybe the patch touches generated code? | 11:33:27 |
sterni | hm pkgsMusl.llvm's tests fail, is that new? | 12:49:48 |
trofi | conditional patches--. will have a look in a few hours. probably musl patches touch libsanitizer's portability header as well and need minor tweaks. | 13:20:18 |
sterni | ah right looked in the wrong place (for 10) | 13:20:59 |
sterni | likely the sanitizers-nongnu.patch for musl then | 13:21:06 |
trofi | Yeah, -nongnu patch touches the same removed CY* enums and fields. I'll clean musl patches up (should be a matter of clean removal of a few CY*-specific hunks) and send out a fix in ~1 hour. | 16:59:12 |
sterni | nice | 17:36:18 |
trofi | Proposed as https://github.com/NixOS/nixpkgs/pull/141397. I also noticed that llvm_{8..git} completely drop this backport probably due to the same conflict. I'll have a look at it and restore patches for newer versions. Should be trivial. | 19:00:38 |
| 13 Oct 2021 |
| Janne Heß joined the room. | 15:17:29 |
Janne Heß | Hey, I don't know if this is the correct channel for these kinds of questions but I couldn't find any so this one is my best guess. Is there any easy way to test cross NixOS builds? Like my desktop or any other system? The reason I'm asking is that I need to test whether a PR that I created breaks cross builds | 15:19:08 |