!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

232 Members
75 Servers

Load older messages


SenderMessageTime
10 Aug 2023
@p14:matrix.orgp14(Thanks very much for your input trofi, learned some useful things and also good to know it's not just me this is bonkers for ;-))14:44:54
@p14:matrix.orgp14 trofi: scrub found no errors, so I'm redoing memtest but also entertaining a software bug somewhere? 15:50:41
@trofi:matrix.orgtrofi Yeah, looks like nix-daemon bug. 15:51:41
11 Aug 2023
@tpw_rules:matrix.orgtpw_rulesso i'm running into a weird issue where i'm trying to copy a large file in a derivation and cp decides to use copy_file_range and the file is copied, but then i guess it calls again to check if it's done and copy_file_range returns -EINVAL despite the fact that the copy succeeded?16:14:13
@tpw_rules:matrix.orgtpw_rulesdo i have a kernel issue or something?16:15:38
@tpw_rules:matrix.orgtpw_rulesthis is ubuntu running a pretty old kernel16:15:45
@tpw_rules:matrix.orgtpw_rulescp itself also prints "invalid argument" and returns nonzero16:17:47
@tpw_rules:matrix.orgtpw_rulesah, this was caused by the coreutils 9.3 upgrade likely16:21:15
@tpw_rules:matrix.orgtpw_rulesthat's kind of awkard...16:23:21
13 Aug 2023
@10leej:matrix.orgnevoyu joined the room.01:27:28
15 Aug 2023
@cafkafk:nixos.devChristina Sørensen changed their profile picture.14:57:25
@10leej:matrix.orgnevoyu left the room.19:34:39
17 Aug 2023
@lxsameer:matrix.orglxsameer joined the room.11:57:33
22 Aug 2023
@charlotte:vanpetegem.mechvp changed their profile picture.13:06:48
27 Aug 2023
@abose:matrix.orgcatch22 joined the room.22:08:35
29 Aug 2023
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/pull/25185319:05:05
3 Sep 2023
@p14:matrix.orgp14

I would like to address https://github.com/NixOS/nixpkgs/issues/111010#issuecomment-1536424163 but it will require changing the cc-wrapper.

[fix is to account for$NIX_CFLAGS_LINK when computing the link type].

Anyone see any problems with doing so, or any suggestions on implementation, can I submit a fix to staging?

09:45:32
@rick:matrix.ciphernetics.nlMindaviOne way to find out if it gives problems, go for it10:49:15
@p14:matrix.orgp14Doing a local build with an obvious fix before I send it, let's see how that pans out.10:49:39
@p14:matrix.orgp14
diff --git a/pkgs/build-support/cc-wrapper/cc-wrapper.sh b/pkgs/build-support/cc-wrapper/cc-wrapper.sh
index 9dcd29c64431..fbc62144ab3f 100644
--- a/pkgs/build-support/cc-wrapper/cc-wrapper.sh
+++ b/pkgs/build-support/cc-wrapper/cc-wrapper.sh
@@ -30,7 +30,7 @@ cxxInclude=1
 cxxLibrary=1
 cInclude=1
 
-expandResponseParams "$@"
+expandResponseParams "$@" ${NIX_CFLAGS_LINK_@suffixSalt@:-}
 linkType=$(checkLinkType "${params[@]}")
 
 declare -ag positionalArgs=()

In case anyone has suggestions/criticisms. I should have a build of some nontrivial software within an hour or two.

10:50:55
@p14:matrix.orgp14 Darn, that doesn't seem to be right. Should I be putting NIX_CFLAGS_LINK there rather than NIX_CFLAGS_LINK_@suffixSalt@, or possibly even both? 11:03:19
@p14:matrix.orgp14I guess that's also not right because we don't want to inject the link flags into the params so early anyway (even if it might be nice to have the CFLAGS_LINK response-expanded...11:06:46
@p14:matrix.orgp14Candidate fix. I've been able to build/run pkgsStatic.pkgsLLVM.hello using this (on staging, also using LLVM 16) https://github.com/NixOS/nixpkgs/pull/25311612:54:32
@p14:matrix.orgp14 Artturin: I also tried building pkgsStatic.pkgsLLVM.clang.cc -- for this I hit the error message you described in https://github.com/NixOS/nixpkgs/issues/22060 ( file RPATH_CHANGE could not write new RPATH:) while installing llvm. 12:55:49
@p14:matrix.orgp14 * Artturin: I also tried building pkgsStatic.pkgsLLVM.clang.cc -- for this I hit the error message you described in https://github.com/NixOS/nixpkgs/issues/22060 ( file RPATH_CHANGE could not write new RPATH:) while in the ninja install phase of llvm. 12:56:00
@p14:matrix.orgp14Is there any testing machinery someone can run #253116 through, is it possible to have a hydra job for it?12:57:51
@artturin:matrix.orgArtturin Running nix build -f tests.cc-wrapper 13:07:16
@artturin:matrix.orgArtturin* Im running nix build -f tests.cc-wrapper13:07:48
@artturin:matrix.orgArtturin* Im running `nix build -f tests.cc-wrapper`13:07:59
@artturin:matrix.orgArtturinit built14:28:22

Show newer messages


Back to Room ListRoom Version: 9