!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

229 Members
74 Servers

Load older messages


SenderMessageTime
15 Nov 2024
@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
@p14:matrix.orgp14Well, that's true, I don't especially expect that.08:56:33
@emilazy:matrix.orgemily ideally, we would pick no default C/C++ library so that you have to explicitly specify which to use 08:56:37
@p14:matrix.orgp14So long as it can be configured after the fact with extra flags, a config file, or a wrapper.08:56:44
@emilazy:matrix.orgemilyright.08:56:49
@emilazy:matrix.orgemily and forced -nostdlibinc inhibits configuration! 08:56:55
@emilazy:matrix.orgemilyit forces a non-standard policy that makes our unwrapped Clang work unlike normal unwrapped Clang, and this is not just theoretical because it broke Darwin08:57:20
@emilazy:matrix.orgemilyI have nothing against unwrapped compilers, just something against expecting them to adapt to stdenv-specific configuration :)08:58:35
@p14:matrix.orgp14That all sounds fair.08:58:45
@emilazy:matrix.orgemily that it's hard to use the libcxxStdenv compiler because it injects libstdc++ directories, sure 08:58:51
@emilazy:matrix.orgemily I don't think -nostdlibinc is the fix for that 08:58:56
@emilazy:matrix.orgemilyideally we'd get the unwrapped compilers to not inject those GCC directories at all08:59:06
@emilazy:matrix.orgemilyrather than using such a blunt tool to get there08:59:14
@emilazy:matrix.orgemilyI forget the exact issue I found though08:59:29
@p14:matrix.orgp14

that it's hard to use the libcxxStdenv compiler because it injects libstdc++ directories, sure

This statement reads as a surprise to me - what does 'libcxx' have to do with 'libstdc++'?

08:59:30
@emilazy:matrix.orgemilyI think it's something like the GCC toolchain causes it to… something something08:59:42
@emilazy:matrix.orgemilyI'll dig up the issue.08:59:44
@p14:matrix.orgp14https://github.com/NixOS/nixpkgs/issues/151879 ?09:00:25
@emilazy:matrix.orgemilythat might be the one for the wrapped compiler09:00:49

Show newer messages


Back to Room ListRoom Version: 9