!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

234 Members
75 Servers

Load older messages


SenderMessageTime
15 Nov 2024
@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
@emilazy:matrix.orgemilybut maybe :)09:00:50
@emilazy:matrix.orgemilythere's an Alyssa commit with a reproducer for the wrapped one09:00:57
@emilazy:matrix.orgemily hm, maybe all the reports were just for the wrapped compiler? 09:01:08
@emilazy:matrix.orgemilybut in that case I have no idea why someone felt the need to bake it into a patch09:01:15
@emilazy:matrix.orgemilylet me do some proper digging09:01:22
@p14:matrix.orgp14https://github.com/NixOS/nixpkgs/pull/153963 was the original patch that added it, but I did not understand the justification yet09:01:41
@emilazy:matrix.orgemilywow, backporting a change that incompatible to the previous release09:02:16
@p14:matrix.orgp14No wait, looking at the patch it just changed the implementation09:02:19
@emilazy:matrix.orgemilythe past is a foreign country09:02:27
@emilazy:matrix.orgemily
In reply to @p14:matrix.org
No wait, looking at the patch it just changed the implementation
yeah. but somehow fixed that bug? apparently?
09:02:32
@emilazy:matrix.orgemilyoh09:02:39
@emilazy:matrix.orgemily I guess the sed just rotted 09:02:40
@emilazy:matrix.orgemily 1e26d33371a4a7238a644c49ddae49a4009c927f is the patch with the reproducer btw 09:02:53
@emilazy:matrix.orgemilyI say the criteria for replacing the patch is to not regress that example and unwrapped compilers can behave however09:03:09
@emilazy:matrix.orgemily anyway, I chased back the -nostdlibinc through Git blame before, let me do it again now that I'm not just venting to the macOS room 😅 09:03:34
@emilazy:matrix.orgemily it broke things for us because libclang is essentially unwrapped 09:03:46
@emilazy:matrix.orgemilywhich is its own problem09:03:50
@emilazy:matrix.orgemilyand a good reason we need to move off wrappers in time09:04:00
@p14:matrix.orgp14There are old patches which mess with this. https://github.com/NixOS/nixpkgs/commit/006d8dcdc1127808d6c68f3b72f8c3d0d8e7901409:04:49
@p14:matrix.orgp14 This was the first match for DriverArgs.hasArg via git log -G DriverArgs.hasArg ./pkgs/development/compilers/llvm/. 09:05:15
@emilazy:matrix.orgemilyuh, wow09:05:27

Show newer messages


Back to Room ListRoom Version: 9