!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

234 Members
75 Servers

Load older messages


SenderMessageTime
14 Nov 2024
@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
@emilazy:matrix.orgemilyFWIW, the patch applies specifically on Linux17:40:26
@emilazy:matrix.orgemilyit's Darwin that opts out, because it breaks stuff for us17:40:30
@emilazy:matrix.orgemilybut it's not the right thing on Linux either17:40:35
@emilazy:matrix.orgemily we are injecting -nostdlibinc into every command-line for dubious reasons 17:40:41
@emilazy:matrix.orgemilyof unwrapped compilers17:40:50
@emilazy:matrix.orgemilywe should kill it off for all platforms, one way or another17:41:05
@emilazy:matrix.orgemily
In reply to @emilazy:matrix.org
FWIW, the patch applies specifically on Linux
(ok, specifically on not-Darwin)
17:41:15
15 Nov 2024
@p14:matrix.orgp14
In reply to @emilazy:matrix.org
we are injecting -nostdlibinc into every command-line for dubious reasons
This looks like a good description of the problem:
08:50:48
@p14:matrix.orgp14https://github.com/NixOS/nixpkgs/issues/191152#issuecomment-142902900308:50:50
@p14:matrix.orgp14

I think the bottom line is that we've got a matrix of toolchains and use cases we want to support (gcc or g++ or clang or clang++, libstdc++ or libc++) and a bunch of knobs we can turn (--stdlib, -nostdlibinc, --gcc-toolchain).

08:51:00
@emilazy:matrix.orgemilypart of the motivation is AIUI for unwrapped compilers08:53:13
@emilazy:matrix.orgemilywhich I think is a busted use case (expecting a C++ library override to work with an unwrapped compiler OOTB)08:53:30
@emilazy:matrix.orgemily anyway, I'm pretty firmly convinced that -nostdlibinc is the wrong knob 08:53:56
@p14:matrix.orgp14Is it? I'm not sure. My read from that thread is that it breaks some wrapped cases.08:53:58

Show newer messages


Back to Room ListRoom Version: 9