!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

224 Members
74 Servers

Load older messages


SenderMessageTime
10 Apr 2025
@rosscomputerguy:matrix.orgTristan RossYeah, that may not be a bad idea19:08:36
@qyliss:fairydust.spaceAlyssa RossGreat that you're involved in this so proactively19:08:59
@rosscomputerguy:matrix.orgTristan Ross

As a quick and dirty way to get started, I just did this:

diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix
index 692474d48c42..262594e6dd15 100644
--- a/pkgs/build-support/cc-wrapper/default.nix
+++ b/pkgs/build-support/cc-wrapper/default.nix
@@ -845,6 +845,10 @@ stdenvNoCC.mkDerivation {
       substituteAll ${./add-clang-cc-cflags-before.sh} $out/nix-support/add-local-cc-cflags-before.sh
     ''

+    + ''
+      echo "-Werror=write-strings" >> $out/nix-support/cc-cflags
+    ''
+
     ##
     ## Extra custom steps
     ##
19:08:59
@qyliss:fairydust.spaceAlyssa RossYeah I'd just throw that up on a branch and get Hydra on it for now19:09:30
@qyliss:fairydust.spaceAlyssa RossI'm not sure whether we'd want to enable this for real before compilers start doing so19:11:46
@qyliss:fairydust.spaceAlyssa RossBut getting a head start is good19:11:51
@emilazy:matrix.orgemilyagreed that preparing for this stuff ahead of time is great :)19:12:06
@emilazy:matrix.orgemilyI wish we had the resources to have an "experimental" jobset always running that we could throw stuff like this on19:12:27
@emilazy:matrix.orgemilyrather than dealing with things just-in-time during staging cycles19:12:35
@qyliss:fairydust.spaceAlyssa RossIt's the sort of thing that somebody could probably run on a personal Hydra if they wanted I reckon? We don't need the results particularly fast given the bottleneck is actually going to be manually fixing things one at a time.19:13:44
@emilazy:matrix.orgemilyI just meant in general, put a bunch of upcoming breaking stuff behind a flag and collectively chip away at it gradually19:14:35
@emilazy:matrix.orgemilyagreed that it's not necessary for this, it'd just be a nice thing to have19:14:53
@qyliss:fairydust.spaceAlyssa RossWe have pkgsExtraHardening also19:15:29
@qyliss:fairydust.spaceAlyssa RossOr whatever it's called19:15:36
@rosscomputerguy:matrix.orgTristan Ross
In reply to @emilazy:matrix.org
I wish we had the resources to have an "experimental" jobset always running that we could throw stuff like this on
Yeah, I've been thinking of that
19:20:43
@rosscomputerguy:matrix.orgTristan Ross I likely will be able to deploy my own Hydra locally 19:22:27
@rosscomputerguy:matrix.orgTristan RossI just got 2 128 core Ampere chips19:22:49
@qyliss:fairydust.spaceAlyssa RossRead that as 2128 cores :D19:23:02
@rosscomputerguy:matrix.orgTristan RossLol19:25:02
@trofi:matrix.orgtrofihow many x86 cores it is? :)21:13:57
@rosscomputerguy:matrix.orgTristan Ross021:16:49
@rosscomputerguy:matrix.orgTristan RossBut 128 cores of pure ARM power21:17:00
@trofi:matrix.orgtrofiyeah, it was a silly joke about performance equivalence on typical workloads21:18:03
@rosscomputerguy:matrix.orgTristan RossOh21:21:16
11 Apr 2025
@rosscomputerguy:matrix.orgTristan Ross

Randy Eckenrode in #staging:nixos.org (https://matrix.to/#/!UNVBThoJtlIiVwiDjU:nixos.org/$GOAB-0pj06IwTEidSgN3biXYZn_r9yZTViHoL6Y2Yns?via=nixos.org&via=matrix.org&via=tchncs.de)

You can’t compile the stage 1 LLVM with GCC then rebuild it again in a later stage with the stage 1 LLVM? (Are there complications with switching C++ ABIs?)

This is where my idea of splitting out the bootstrap tarballs would be useful. We could compile stage 1 LLVM from GCC but I feel like it may be a better solution to use LLVM prebuilt to build LLVM. Plus it'll likely be better on the eval since we wouldn't likely be needing odd exceptions or overrides.

16:37:10
@rosscomputerguy:matrix.orgTristan RossThere would be the base tarball with your general tools, then your compiler tarball.16:37:43
@rosscomputerguy:matrix.orgTristan RossThe base should be enough to set up a CC wrapper to point things to the right compiler.16:38:09
@emilazy:matrix.orgemilythe LLVM prebuilt would itself be built from GCC though, right?18:06:03
@emilazy:matrix.orgemilyI don't think it makes sense to have a proliferation of bootstrap tools especially when they shouldn't affect the end result18:06:15
15 Apr 2025
@rosscomputerguy:matrix.orgTristan RossI'm guessing we could consider https://github.com/NixOS/nixpkgs/issues/307600 solved once we add documentation on how to add new libc's? The way to do it appears to be simple enough that I don't see how we could simplify it.05:57:58

Show newer messages


Back to Room ListRoom Version: 9