!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

225 Members
72 Servers

Load older messages


SenderMessageTime
12 Nov 2024
@emilazy:matrix.orgemily (or is LLVMGold.so required for interoperating with ld.bfd too?) 17:28:14
@sternenseemann:systemli.orgsterniI'm pretty sure17:39:09
@sternenseemann:systemli.orgsterni“just” for LTO though17:39:16
@sternenseemann:systemli.orgsterniHaskell uses it =^_^=17:39:35
@sternenseemann:systemli.orgsterniI wonder if it's still necessary17:39:54
@p14:matrix.orgp14 emily: sterni like this? :) https://github.com/NixOS/nixpkgs/pull/355532 21:52:57
@emilazy:matrix.orgemily"only" is stretching it a bit given the Darwin patch :)22:09:41
@emilazy:matrix.orgemilythough that should be solvable22:09:42
@emilazy:matrix.orgemilyor rather the Darwin not-patch22:10:06
@reckenrode:matrix.orgRandy Eckenrode

@emilazy:matrix.org Here is comparing the Darwin cross to a Linux cross clang: https://gist.github.com/reckenrode/9d9035cf4f070c271d2499b401078320

22:16:58
@emilazy:matrix.orgemily
In reply to @reckenrode:matrix.org

@emilazy:matrix.org Here is comparing the Darwin cross to a Linux cross clang: https://gist.github.com/reckenrode/9d9035cf4f070c271d2499b401078320

what about on top of p14's PR?
22:17:31
@emilazy:matrix.orgemilylooks like that's the only remaining divergence22:17:36
@emilazy:matrix.orgemilyah, I guess it doesn't handle the patch though22:18:26
@emilazy:matrix.orgemilyor whatever's going on there22:18:37
@reckenrode:matrix.orgRandy EckenrodeI cherry-picked it. Still a divergence22:20:21
@reckenrode:matrix.orgRandy EckenrodeI added it as a second file in the above gist.22:20:55
@emilazy:matrix.orgemily ah, because , enableGold ? withGold stdenv.targetPlatform 22:23:03
@emilazy:matrix.orgemily p14: probably enableGoldPlugin shouldn't default to libbfd.hasPluginAPI but instead true 22:23:19
@sternenseemann:systemli.orgsterniyes22:28:42
@emilazy:matrix.orgemilyhow does this even work anyway?22:29:34
@emilazy:matrix.orgemily do we have to point it to the right libbfd.so for the target at runtime or something? 22:29:45
@p14:matrix.orgp14Sorry, headed to bed, but my understanding is that libLLVMgold is only using a well defined interface which should not vary as a function of the target. That said I am not a heavy darwin user and I am afk so can’t look there closely for now.22:32:08
@p14:matrix.orgp14
In reply to @reckenrode:matrix.org

@emilazy:matrix.org Here is comparing the Darwin cross to a Linux cross clang: https://gist.github.com/reckenrode/9d9035cf4f070c271d2499b401078320

I am not exactly clear on what is being diffed in these gists
22:36:36
@emilazy:matrix.orgemily pkgsCross.gnu64.clang-unwrapped vs. pkgsCross.[I forget how you spell x86_64-darwin here].clang-unwrapped on a Darwin host, I think. 22:36:59
@emilazy:matrix.orgemily the issue is that you still condition it on enableGold, which the LLVM derivation sets the default of to withGold stdenv.targetPlatform 22:37:19
@emilazy:matrix.orgemily so the same divergence is present. so probably that should be , enableGold ? true in LLVM. 22:37:30
@p14:matrix.orgp14Ok. Will fix it up over the coming days. Would be helpful to know what the best expressions to test are.22:39:47
@emilazy:matrix.orgemily I think you want a Darwin localSystem (because of the patch conditional) and compare say {Linux, Darwin} × {x86-64, AArch64} for the target 22:41:17
@emilazy:matrix.orgemily the -nostdinc patch will be a pain. it's a hack that we have to skip on Darwin because it doesn't help us and it breaks stuff. but it's a hack that works by patching the command-line parsing 22:41:43
@emilazy:matrix.orgemilyat which point Clang doesn't know what target it'll be yet AIUI22:41:49

Show newer messages


Back to Room ListRoom Version: 9