Pierre Bourdon delroth
  • Joined on 2024-04-05
delroth commented on issue lix-project/lix#306 2024-05-12 21:08:22 +00:00
Static builds fail

https://gerrit.lix.systems/c/lix/+/1106/1 fixes the first trivial part of the problem.

Then libstore tests fail because the linker is pruning .o files for store implementations due to them not…

delroth commented on issue lix-project/lix#308 2024-05-12 20:48:56 +00:00
Increase of 7MB in the size of the Lix derivation on Linux

@jade do you have a ref to that warning you're talking about? I didn't see it on my side when building in release mode.

In general I'd say that building with build_type = release is a…

delroth commented on issue lix-project/lix#306 2024-05-12 18:12:36 +00:00
Static builds fail

Yeah, that was fairly obvious and I already have a patch for this. But there are further problems with unit tests and C++ constructors causing store registration to sometimes not work (and that's…

delroth commented on issue lix-project/lix#308 2024-05-12 16:54:53 +00:00
Increase of 7MB in the size of the Lix derivation on Linux

since you say this: lix should really enable lto in nixpkgs. lto makes quite a difference in eval performance (which is why we added it to nix in the first place 🫠)

Should package.nix

delroth commented on issue lix-project/lix#308 2024-05-12 16:33:30 +00:00
Increase of 7MB in the size of the Lix derivation on Linux

Getting there.

The last 3MB are in very large part attributable to the Rust lix-doc being statically linked into libnixcmd. It's dragging in a good chunk of runtime, from what I can tell. Not…

delroth commented on issue lix-project/lix#308 2024-05-12 16:17:15 +00:00
Increase of 7MB in the size of the Lix derivation on Linux

with -Db_lto=true and mesonBuildType = "release";:

/nix/store/9lhnrg0rwjkk9si9fnpvyrbkkajw32ca-lix-2.90-beta.1       87.4M
/nix/store/awshr3d8a94v2igyf16jh5p8bw9wf93s-nix-2.18.2      …
delroth commented on issue lix-project/lix#308 2024-05-12 16:09:09 +00:00
Increase of 7MB in the size of the Lix derivation on Linux

Current hypothesis: this is because Nix >= 2.10 on GNU stdenvs uses -flto which Lix doesn't seem to use. This would explain why the discrepancy is only happening on the Linux builds and not the…

delroth commented on issue lix-project/lix#308 2024-05-12 15:50:09 +00:00
Increase of 7MB in the size of the Lix derivation on Linux

With mesonBuildType = "release"; patched in to the nixpkgs expression (and checked that -O3 appears in the build flags):

/nix/store/3nijav5qh5960976z10bmwn99vc8ibik-lix-2.90-beta.1      …
delroth commented on issue lix-project/lix#308 2024-05-12 15:42:10 +00:00
Increase of 7MB in the size of the Lix derivation on Linux

I built the derivation with ninjaFlags = [ "-v" ]; and:

[10/456] g++ -Isrc/libutil/libnixutil.so.p -Isrc/libutil -I../src/libutil -I/nix/store/rh6sv1rpxavhhzprbaqpkqdm4sq39d19-boehm-gc-8.…
delroth closed issue lix-project/lix#300 2024-05-11 13:24:08 +00:00
nix-prefetch-url regresses with commit 121edecf (no decompression)
delroth commented on issue lix-project/lix#300 2024-05-11 13:24:07 +00:00
nix-prefetch-url regresses with commit 121edecf (no decompression)

Fixed in 38d825b21e425b0f0a64304ff5bfe4dfbeaf9e97. I have a pending changeset (https://gerrit.lix.systems/c/lix/+/1099/1) adding a unit test which would have caught this.

delroth opened issue lix-project/lix#300 2024-05-11 11:52:18 +00:00
nix-prefetch-url regresses with commit 121edecf (no decompression)