!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

231 Members
75 Servers

Load older messages


SenderMessageTime
14 Nov 2024
@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
@emilazy:matrix.orgemilyyeah, I think there are wrapped cases08:54:06
@emilazy:matrix.orgemilybut AIUI it was moved from the wrapper to a patch08:54:13
@emilazy:matrix.orgemilybecause of some bug report about an unwrapped compiler on non-NixOS08:54:20
@p14:matrix.orgp14That may be, but is it clear what the route to solution is?08:54:21
@emilazy:matrix.orgemilywhich I personally do not consider compelling08:54:24
@emilazy:matrix.orgemily
In reply to @p14:matrix.org
That may be, but is it clear what the route to solution is?
re: "it also prevents clang from searching /usr/lib", it's not totally clear if this is desirable for unwrapped compilers and it can be handled in other ways in wrapped compilers
08:55:09
@emilazy:matrix.orgemily"we should try to supply the C++ stdlib link and include flags" yes08:55:20
@emilazy:matrix.orgemilysysroot stuff is complicated unfortunately08:55:30
@p14:matrix.orgp14Hmm. I understand that but I actually have a usecase via elfshaker/manyclangs, which enables access to any binary of LLVM at any commit of clang with ~1s access time (and not much storage): https://github.com/elfshaker/elfshaker / https://github.com/elfshaker/manyclangs/08:55:47
@p14:matrix.orgp14Currently the manyclangs packs are built with Ubuntu, but I would like to build them with a static-llvm stdenv.08:56:11
@emilazy:matrix.orgemilybut do you expect those compilers to magically know what C++ library you want to use?08:56:16
@emilazy:matrix.orgemilythat's not how Clang works on any other distro.08:56:22

Show newer messages


Back to Room ListRoom Version: 9