!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

182 Members
57 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
26 May 2025
@emilazy:matrix.orgemilyI guess in that case it would be fine but I'd still prefer not to patch autotools in ways upstream explicitly rejects. we could just ask them about it I suppose.11:45:26
@reckenrode:matrix.orgRandy Eckenrode
In reply to @emilazy:matrix.org
we'd have to teach the GCC/binutils build about macosx* versions instead of just darwin* I think… or just get LLVM Flang packaged and give up on GCC on Darwin since we're already applying a ten billion line patch by one guy just to get it building…
AFAIK he’s upstreaming his work. It’s just taking a while. We should probably apply the patch on both platforms ….
11:45:42
@emilazy:matrix.orgemilywe could just apply it unconditionally, it shouldn't break cross now…11:46:42
@emilazy:matrix.orgemilybut that's a pretty huge GCC patch to apply11:46:48
@emilazy:matrix.orgemilyat least it doesn't touch other platforms really11:47:00
@emilazy:matrix.orgemily(I believe he's a GCC committer?)11:47:07
@reckenrode:matrix.orgRandy Eckenrode
In reply to @emilazy:matrix.org
oh I should also say: even Apple and LLVM are inconsistent about whether it should be -macos14.x or -macosx14.x. I forget which one is canonical.
I would go with whatever Swift does because AFAIK it only supports one wayS
11:49:59
@reckenrode:matrix.orgRandy Eckenrode
In reply to @emilazy:matrix.org
oh I should also say: even Apple and LLVM are inconsistent about whether it should be -macos14.x or -macosx14.x. I forget which one is canonical.
*
11:50:03
@reckenrode:matrix.orgRandy Eckenrode
In reply to @emilazy:matrix.org
I just gave up because I didn't feel like fighting autotools when the freeze was in sight
My goal is to align what we pass to the unwrapped compiler to what Swift is doing and relax the target check because otherwise very build causes tons of log spam. The wrapper can accept all the variants and do the mapping if that’s what keeps various build systems happy.
11:52:09
@reckenrode:matrix.orgRandy Eckenrode
In reply to @emilazy:matrix.org
I just gave up because I didn't feel like fighting autotools when the freeze was in sight
*
11:52:22
@emilazy:matrix.orgemily fair enough, I agree if we have to choose between the two then matching Swift is good. I expect macosx has wider compatibility anyway. 11:52:39
@emilazy:matrix.orgemily do you want my diff from when I was trying -macosx and when I was trying -darwin<kernel version>? 11:53:06
@emilazy:matrix.orgemilyyou could combine those and if you teach a hook to teach autotools about it you can probably get a lot further testing it than me.11:53:20
@reckenrode:matrix.orgRandy Eckenrode
In reply to @emilazy:matrix.org
do you want my diff from when I was trying -macosx and when I was trying -darwin<kernel version>?
Sure.
11:58:12
@reckenrode:matrix.orgRandy Eckenrode
In reply to @emilazy:matrix.org
fair enough, I agree if we have to choose between the two then matching Swift is good. I expect macosx has wider compatibility anyway.
Especially if we adopt Swift Build to replace xcbuild.
11:58:35
@reckenrode:matrix.orgRandy EckenrodeBut boy does that thing have a ton of impurities ….11:58:55
@emilazy:matrix.orgemily

https://github.com/emilazy/nixpkgs/commits/push-vsxoyyworlsz is including the Darwin kernel versions. IIRC I ran into issues with this that made me postpone it to post-release but I forget where. https://github.com/emilazy/nixpkgs/commits/push-rkpovppmolzv is using macosx. I didn't try combining the two since macosx failed so early in bootstrap, but I imagine if you get macosx working then adding the version would be easy.

you probably know this, but for macosx* the suffix is the actual macOS version, as opposed to darwin*'s kernel version. that's convenient since we can just append the minimum version directly. LLVM knows how to translate between the two. OTOH I think there are a fair number of build systems that just match on darwin* for version, like the GNU toolchain certainly, so those will need teaching about it. one option is probably just to have a gnuTarget or whatever so that we can mangle the targets for those things. the idea of having one single triple is unworkable anyway. (autotools itself just doesn't care about the version suffices for Darwin I think, though maybe some extension modules for it do.)

12:19:03
@emilazy:matrix.orgemily we might want something in the kernel struct for if isMacOS then "darwin" else parsed.kernel.name since it seems to come up a lot, but OTOH a lot of those instances already have other special cases that I just extended, so maybe it'd be better to have go.* and node.* and stuff like we have rust.*12:20:39
@trofi:matrix.org@trofi:matrix.orggcc does not require copyright assignment: https://gcc.gnu.org/dco.html12:49:35
@rosscomputerguy:matrix.orgTristan Ross
In reply to @emilazy:matrix.org
(not sure why we are doing more calls after everyone else on the team said it's not a good fit…)
I know not everyone is available for calls which is why I made a doc. I think a mixture of async + sync is good. We can all be on the same page with the design doc while some of us are doing a call to pair up and blaze through things.
20:42:22
@rosscomputerguy:matrix.orgTristan Ross
In reply to @trofi:matrix.org

Split GCC up similar to LLVM to accomplish this

I would suggest getting llvm-only bootstrap on linux first :)

An LLVM only bootstrap would take a lot of work that I'd be comfortable with after we have toolchain attrs
20:50:44
@rosscomputerguy:matrix.orgTristan RossIt would certainly be easier20:51:34
@Ericson2314:matrix.orgJohn EricsonUnless we drop GCC although, I think the GCC split up is something we need to do either way 20:55:01
@rosscomputerguy:matrix.orgTristan RossYeah, but I don't think we can drop GCC.21:04:07
@rosscomputerguy:matrix.orgTristan RossI consider it part of the "defacto standard Linux environment"21:04:27
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)tbf, fhs-compliance is also part of the de-facto standard...21:04:57
@rosscomputerguy:matrix.orgTristan Ross Kinda like GNU coreutils 21:05:01
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)nothing that can't be fixed given enough patches21:05:08
@rosscomputerguy:matrix.orgTristan Ross
In reply to @grimmauld:grapevine.grimmauld.de
tbf, fhs-compliance is also part of the de-facto standard...
Well, we're exempt from that
21:05:13

Show newer messages


Back to Room ListRoom Version: 9