!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

230 Members
75 Servers

Load older messages


SenderMessageTime
13 Nov 2024
@sternenseemann:systemli.orgsterni emily: well just when you request it so not always 23:12:07
@emilazy:matrix.orgemilyyeah, but it should be always :)23:12:19
14 Nov 2024
@p14:matrix.orgp14

@sterni I am afk from writing on github but:

I wonder if the header has any target specific CPP?

I think the answer is negative. Logically, if the clang derivation is not varying according to targetPlatform, it cannot.

16:54:33
@p14:matrix.orgp14(Re https://github.com/NixOS/nixpkgs/pull/355532#issuecomment-2476054093)16:55:03
@emilazy:matrix.orgemilyI think sterni meant the libbfd headers16:55:09
@emilazy:matrix.orgemilywhich is a target-sensitive derivation16:55:14
@emilazy:matrix.orgemily though the .src isn't of course 16:55:27
@p14:matrix.orgp14I took those from source, not build.16:55:29
@emilazy:matrix.orgemilyyeah16:55:42
@sternenseemann:systemli.orgsterniindeed, the question would be if we can just build LLVMgold.so unconditionally or whether it will fail sometimes due to the header16:55:43
@emilazy:matrix.orgemilyyou do need to adjust the default of the flag that turns it on16:55:50
@emilazy:matrix.orgemilyI think that was the intention of the PR16:55:53
@emilazy:matrix.orgemily and p14 just missed that our default is target-specific 16:55:58
@emilazy:matrix.orgemilypresumably it builds fine on a Darwin host at present as you can do cross to Linux, so I think doing it unconditionally should be okay16:56:37
@emilazy:matrix.orgemily the tar thing is weird but I don't have a better idea 16:56:44
@emilazy:matrix.orgemily it should maybe move to libbfd itself 16:56:51
@emilazy:matrix.orgemily i.e. libbfd.plugin-api 16:56:57
@emilazy:matrix.orgemilyso that it is clear what interface we commit to there16:57:05
@emilazy:matrix.orgemily "-DLLVM_BINUTILS_INCDIR=${libbfd.plugin-api}/include" feels nicer 16:57:38
@p14:matrix.orgp14

Seems a reasonable suggestion! I would appreciate it on-PR so I don’t forget when I come back to it.

With respect to separating LLVMgold.so into a different derivation, I am not sure of the value of that. The build system archania and subsequent potential for breakage required to do it does not seem worth the hassle.

17:00:05
@emilazy:matrix.orgemilyI don't think that was suggested, was it?17:00:19
@emilazy:matrix.orgemilyah, sterni did17:00:35
@emilazy:matrix.orgemilyLLVM hates being split up. the amount of split we already have causes problems17:00:45
@emilazy:matrix.orgemilyso I personally wouldn't prioritize that17:00:52
@emilazy:matrix.orgemilyI will leave a review.17:00:55
@p14:matrix.orgp14
In reply to @emilazy:matrix.org
I will leave a review.
Thanks for the review. I think I’ll adjust the scope of the patch by changing the title so that just the target dependence of BFD is dropped. Other fixes can come separately.
17:35:53
@emilazy:matrix.orgemilyagreed17:36:00
@emilazy:matrix.orgemilydidn't want to block the PR on it by any means17:36:04
@emilazy:matrix.orgemilyjust flagging up that there's still more to do17:36:11
@p14:matrix.orgp14Ack. I may or may not take a closer look, since I am not a darwin user.17:36:37

Show newer messages


Back to Room ListRoom Version: 9