!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

559 Members
122 Servers

Load older messages


SenderMessageTime
23 Nov 2021
@qyliss:fairydust.spaceAlyssa Rosssternenseemann: although while I have you I am curious, doesn't pgo mean non-reproducibility?22:15:47
@sternenseemann:systemli.orgsterni Alyssa Ross: it does not actually and it is a common misconception I have discovered 22:16:08
@sternenseemann:systemli.orgsterniPGO profiling data only is like code path analysis, so if the analyzed code is deterministic and you feed it the same input every time it'll come up with the same profiling data22:16:55
@sternenseemann:systemli.orgsterniit is also not machine dependent as far as I can tell (not sure if instruction sets are relevant though?)22:17:22
@sternenseemann:systemli.orgsternifor foot PGO I made a patch which allowed seeding the input data generation with a fixed start value22:17:48
@qyliss:fairydust.spaceAlyssa Rossoh cool!22:17:55
@sternenseemann:systemli.orgsterniand I you can reproduce the same output store path for foot on multiple machines22:18:03
@sternenseemann:systemli.orgsterniso ironically gcc can do reproducible PGO, but not of itself22:18:19
@qyliss:fairydust.spaceAlyssa Rossamazing22:41:39
@sternenseemann:systemli.orgsterniprobably the part of the build system which runs the partial profiling compiler is racy22:43:11
@sternenseemann:systemli.orgsternibut I suspect it's non trivial to debug22:43:24
@sternenseemann:systemli.orgsterniI think baloo even tried -j1 to no avail22:43:32
@sternenseemann:systemli.orgsternihttps://github.com/NixOS/nixpkgs/pull/112928#issuecomment-80971490722:46:07
@sternenseemann:systemli.orgsterniah hm differences between different machines22:46:36
@sternenseemann:systemli.orgsterniominous22:46:37
24 Nov 2021
@sternenseemann:systemli.orgsterni John Ericson: getting the increasing sense that our GHC derivations are ever so subtly incorrect, but somehow work-ish (?) 11:00:38
@sternenseemann:systemli.orgsterni like why the hell do we pass buildPackages.llvmPackages, but then go on to put it in depsBuildTarget 11:00:58
@sternenseemann:systemli.orgsternialso I feel like the LLVM of the build (bootstrapping) GHC somehow leaks into the build environment for the actual GHC because it just complains about having the wrong LLVM version11:02:03
@sternenseemann:systemli.orgsterniwhich checks out because we propagate llvm for some reason11:02:18
@sternenseemann:systemli.orgsterniI wonder if this is unnecessary because we usually wrap the compiler as well?11:02:35
@sternenseemann:systemli.orgsternithe binaries aren't wrapped maybe that's where this stems from11:09:00
@sternenseemann:systemli.orgsternioh and we don't put llvm in the wrapper for the normal ones as well11:09:31
@Ericson2314:matrix.orgJohn Ericson sterni: well, I say the solution is just to get rid of the old stuff! :) 17:35:45
@Ericson2314:matrix.orgJohn Ericsonhttps://gitlab.haskell.org/ghc/ghc/-/merge_requests/596517:35:58
@andi:kack.itandi-This is likely the most fitting channel for this question: Do we have some sort of rpath minification in nixpkgs? I'm currently assuming every library in buildInputs could potentially end up in the rpath of each binary that we build, right?22:44:31
@symphorien:xlumurb.eusymphorienWhat is the shrink-rpath step of fixupphase ?22:46:15
@andi:kack.itandi-oh, that is in patchelf22:47:12
@andi:kack.itandi-I was grepping for various terms but not for shrink22:47:32
@andi:kack.itandi- and it works exactly as I was about to implement it. Thanks for the pointer symphorien 22:49:08
@symphorien:xlumurb.eusymphorienActually I don't really know what it does22:50:27

There are no newer messages yet.


Back to Room ListRoom Version: 6