!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

557 Members
119 Servers

Load older messages


SenderMessageTime
16 Oct 2025
@matthewcroughan:defenestrate.itmatthewcroughanyeah here's one https://hercules-ci.com/accounts/github/MatthewCroughan/derivations/%2Fnix%2Fstore%2F6xi1bfv9ndvsqxl4d12pf69i9zf78r0y-musl-static-aarch64-unknown-linux-musl-1.2.5.drv/log?via-job=12eff0bd-584c-4702-a61a-6e8f2964d6be19:38:33
@matthewcroughan:defenestrate.itmatthewcroughan

dramforever:

20:20:36
@matthewcroughan:defenestrate.itmatthewcroughan *

dramforever:

        > FAILED: [code=1] libnixexpr.so
┃        > aarch64-unknown-linux-musl-g++  -o libnixexpr.so libnixexpr.so.p/meson-generated_.._parser-tab.cc.o libnixexpr.so.p/meson-generated_.._lexer-tab.cc.o libnixexpr.so.p/attr-path.cc.o libnixexpr.so.p/attr-set.cc.o libnixexpr.so.p/eval-cache.cc.o libnixexpr.so.p/eval-error.cc.o libnixexpr.so.p/eval-gc.cc.o libnixexpr.so.p/eval-profiler-settings.cc.o libnixexpr.so.p/eval-p…
┃        > /nix/store/bifvnbzdcmm08kmvwj655a5dsyrh27l6-fortify-headers-1.1alpine3/include/stdio.h: In function '__to_xstring.constprop':
┃        > /nix/store/bifvnbzdcmm08kmvwj655a5dsyrh27l6-fortify-headers-1.1alpine3/include/stdio.h:80:28: error: inlining failed in call to 'always_inline' 'vsnprintf': function body can be overwritten at link time
┃        >    80 | _FORTIFY_FN(vsnprintf) int vsnprintf(char * _FORTIFY_POS0 __s, size_t __n,
┃        >       |                            ^
┃        > /nix/store/v458d50aj6bcw0a0zzvkyiixyfakcz40-aarch64-unknown-linux-musl-gcc-14.3.0/include/c++/14.3.0/ext/string_conversions.h:113:32: note: called from here
┃        >   113 |       const int __len = __convf(__s, __n, __fmt, __args);
┃        >       |                                ^
┃        > make: *** [/build/ccCwh0jE.mk:86: /build/cccuMbHY.ltrans28.ltrans.o] Error 1
┃        > make: *** Waiting for unfinished jobs....
┃        > lto-wrapper: fatal error: make returned 2 exit status
┃        > compilation terminated.
┃        > /nix/store/pyfh6ldzdr8m3xkpxi60cjg6abha8r7i-aarch64-unknown-linux-musl-binutils-2.44/bin/aarch64-unknown-linux-musl-ld: error: lto-wrapper failed
┃        > collect2: error: ld returned 1 exit status
┃        > ninja: build stopped: subcommand failed.
┃        For full logs, run:
┃          nix log /nix/store/82aawiy1fids0wp7n9y8d18issf6d00a-nix-expr-aarch64-unknown-linux-musl-2.31.2.drv
`1``
20:20:40
@matthewcroughan:defenestrate.itmatthewcroughan *

dramforever:

        > FAILED: [code=1] libnixexpr.so
┃        > aarch64-unknown-linux-musl-g++  -o libnixexpr.so libnixexpr.so.p/meson-generated_.._parser-tab.cc.o libnixexpr.so.p/meson-generated_.._lexer-tab.cc.o libnixexpr.so.p/attr-path.cc.o libnixexpr.so.p/attr-set.cc.o libnixexpr.so.p/eval-cache.cc.o libnixexpr.so.p/eval-error.cc.o libnixexpr.so.p/eval-gc.cc.o libnixexpr.so.p/eval-profiler-settings.cc.o libnixexpr.so.p/eval-p…
┃        > /nix/store/bifvnbzdcmm08kmvwj655a5dsyrh27l6-fortify-headers-1.1alpine3/include/stdio.h: In function '__to_xstring.constprop':
┃        > /nix/store/bifvnbzdcmm08kmvwj655a5dsyrh27l6-fortify-headers-1.1alpine3/include/stdio.h:80:28: error: inlining failed in call to 'always_inline' 'vsnprintf': function body can be overwritten at link time
┃        >    80 | _FORTIFY_FN(vsnprintf) int vsnprintf(char * _FORTIFY_POS0 __s, size_t __n,
┃        >       |                            ^
┃        > /nix/store/v458d50aj6bcw0a0zzvkyiixyfakcz40-aarch64-unknown-linux-musl-gcc-14.3.0/include/c++/14.3.0/ext/string_conversions.h:113:32: note: called from here
┃        >   113 |       const int __len = __convf(__s, __n, __fmt, __args);
┃        >       |                                ^
┃        > make: *** [/build/ccCwh0jE.mk:86: /build/cccuMbHY.ltrans28.ltrans.o] Error 1
┃        > make: *** Waiting for unfinished jobs....
┃        > lto-wrapper: fatal error: make returned 2 exit status
┃        > compilation terminated.
┃        > /nix/store/pyfh6ldzdr8m3xkpxi60cjg6abha8r7i-aarch64-unknown-linux-musl-binutils-2.44/bin/aarch64-unknown-linux-musl-ld: error: lto-wrapper failed
┃        > collect2: error: ld returned 1 exit status
┃        > ninja: build stopped: subcommand failed.
┃        For full logs, run:
┃          nix log /nix/store/82aawiy1fids0wp7n9y8d18issf6d00a-nix-expr-aarch64-unknown-linux-musl-2.31.2.drv
20:20:43
@matthewcroughan:defenestrate.itmatthewcroughan *

dramforever:

        > FAILED: [code=1] libnixexpr.so
┃        > aarch64-unknown-linux-musl-g++  -o libnixexpr.so libnixexpr.so.p/meson-generated_.._parser-tab.cc.o libnixexpr.so.p/meson-generated_.._lexer-tab.cc.o libnixexpr.so.p/attr-path.cc.o libnixexpr.so.p/attr-set.cc.o libnixexpr.so.p/eval-cache.cc.o libnixexpr.so.p/eval-error.cc.o libnixexpr.so.p/eval-gc.cc.o libnixexpr.so.p/eval-profiler-settings.cc.o libnixexpr.so.p/eval-p…
┃        > /nix/store/bifvnbzdcmm08kmvwj655a5dsyrh27l6-fortify-headers-1.1alpine3/include/stdio.h: In function '__to_xstring.constprop':
┃        > /nix/store/bifvnbzdcmm08kmvwj655a5dsyrh27l6-fortify-headers-1.1alpine3/include/stdio.h:80:28: error: inlining failed in call to 'always_inline' 'vsnprintf': function body can be overwritten at link time
┃        >    80 | _FORTIFY_FN(vsnprintf) int vsnprintf(char * _FORTIFY_POS0 __s, size_t __n,
┃        >       |                            ^
┃        > /nix/store/v458d50aj6bcw0a0zzvkyiixyfakcz40-aarch64-unknown-linux-musl-gcc-14.3.0/include/c++/14.3.0/ext/string_conversions.h:113:32: note: called from here
┃        >   113 |       const int __len = __convf(__s, __n, __fmt, __args);
┃        >       |                                ^
┃        > make: *** [/build/ccCwh0jE.mk:86: /build/cccuMbHY.ltrans28.ltrans.o] Error 1
┃        > make: *** Waiting for unfinished jobs....
┃        > lto-wrapper: fatal error: make returned 2 exit status
┃        > compilation terminated.
┃        > /nix/store/pyfh6ldzdr8m3xkpxi60cjg6abha8r7i-aarch64-unknown-linux-musl-binutils-2.44/bin/aarch64-unknown-linux-musl-ld: error: lto-wrapper failed
┃        > collect2: error: ld returned 1 exit status
┃        > ninja: build stopped: subcommand failed.
┃        For full logs, run:
┃          nix log /nix/store/82aawiy1fids0wp7n9y8d18issf6d00a-nix-expr-aarch64-unknown-linux-musl-2.31.2.drv

This is what I get next

20:20:53
@matthewcroughan:defenestrate.itmatthewcroughanthis is for gnu->musl20:21:06
@matthewcroughan:defenestrate.itmatthewcroughanWoo20:53:45
@matthewcroughan:defenestrate.itmatthewcroughan
user: matthew 🌐 m2u in nixos-musl on  refactor [!?]
✦ ❯ nix build .#nixosConfigurations.{musl-llvm,musl,gnu-musl,gnu-musl-llvm}.config.system.build.vm --keep-going
warning: Git tree '/home/matthew/git/nixos-musl' is dirty
Finished at 20:53:14 after 0s

user: matthew 🌐 m2u in nixos-musl on  refactor [!?]
✦ ❯ ls result*
result:
bin  system

result-1:
bin  system

result-2:
bin  system

result-3:
bin  system
20:53:47
@matthewcroughan:defenestrate.itmatthewcroughanall 4 combos, great 20:53:52
@matthewcroughan:defenestrate.itmatthewcroughan dramforever: very close but.. 21:44:06
@matthewcroughan:defenestrate.itmatthewcroughan
         /nix/store/47djz04prfj1q20vaywic4kp92dk8gng-vm-test-run-musl-vmtest-aarch64-unknown-linux-musl
┏━ 11 Errors:
 ⋮
┃          /nix/store/a48vvnqlfmvbc5nwwhy0dw1cxlxl6y1v-musl-aarch64-unknown-linux-musl-1.2.5-bin
┃          /nix/store/jfqbx7483gva8nvch6l33idsqxvcfkdf-musl-aarch64-unknown-linux-musl-1.2.5-debug
┃        Last 25 log lines:
┃        > The next patch would create the file src/ldso/riscv64/dlopen.s,
┃        > which already exists!  Assume -R? [n]
┃        > Apply anyway? [n]
┃        > Skipping patch.
┃        > 1 out of 1 hunk ignored
┃        > The next patch would create the file src/ldso/s390x/dlopen.s,
┃        > which already exists!  Assume -R? [n]
┃        > Apply anyway? [n]
┃        > Skipping patch.
┃        > 1 out of 1 hunk ignored
┃        > The next patch would create the file src/ldso/sh/dlopen.s,
┃        > which already exists!  Assume -R? [n]
┃        > Apply anyway? [n]
┃        > Skipping patch.
┃        > 1 out of 1 hunk ignored
┃        > The next patch would create the file src/ldso/x32/dlopen.s,
┃        > which already exists!  Assume -R? [n]
┃        > Apply anyway? [n]
┃        > Skipping patch.
┃        > 1 out of 1 hunk ignored
┃        > The next patch would create the file src/ldso/x86_64/dlopen.s,
┃        > which already exists!  Assume -R? [n]
┃        > Apply anyway? [n]
┃        > Skipping patch.
┃        > 1 out of 1 hunk ignored
┃        For full logs, run:
┃          nix log /nix/store/6pysjc0czjba7zrzx2jaflps7k717vmv-musl-aarch64-unknown-linux-musl-1.2.5.drv
21:44:08
@matthewcroughan:defenestrate.itmatthewcroughanYour patch somehow causes the patch to fail, when vm tests are invoked21:44:18
@matthewcroughan:defenestrate.itmatthewcroughanweird isn't it?21:44:27
@matthewcroughan:defenestrate.itmatthewcroughanActually no, seems this happens with or without your patch, weird 22:02:59
@matthewcroughan:defenestrate.itmatthewcroughan* Testing more...22:03:17
@matthewcroughan:defenestrate.itmatthewcroughanYeah it seems to fail with or without your patch https://hercules-ci.com/accounts/github/MatthewCroughan/derivations/%2Fnix%2Fstore%2F65pas7vxszrihqbkd18n331qpnj8kwmx-musl-1.2.5.drv/log?via-job=b946d8d9-8e12-477a-ae5d-45854c6f7f6022:08:34
@matthewcroughan:defenestrate.itmatthewcroughanSome weird recursive application going on with the patches there 22:09:08
@matthewcroughan:defenestrate.itmatthewcroughanlook at these greens! :D22:53:21
@matthewcroughan:defenestrate.itmatthewcroughanimage.png
Download image.png
22:53:26
@matthewcroughan:defenestrate.itmatthewcroughanit works!22:53:30
@matthewcroughan:defenestrate.itmatthewcroughanlook at my musl's22:53:42
@matthewcroughan:defenestrate.itmatthewcroughanpoor m2 ultra though, the load average on that thing is through the roof 22:54:57
@matthewcroughan:defenestrate.itmatthewcroughanLike I wonder if I should be setting up some maxJobs or max cores setting 22:56:02
@symphorien:xlumurb.eusymphorienwhat is this interface ?23:04:52
@symphorien:xlumurb.eusymphorienah hercules-ci I should have scrolled23:06:06
@matthewcroughan:defenestrate.itmatthewcroughanYeah it's pretty good23:08:22
@matthewcroughan:defenestrate.itmatthewcroughanI yearn for a dark theme though23:08:29
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/MatthewCroughan/nixos-musl/blob/refactor/flake.nix23:09:23
@matthewcroughan:defenestrate.itmatthewcroughanAny opinions on how I could refactor this using cartesianProduct or maybe some other function, to generate the variants more cleanly?23:09:37
@matthewcroughan:defenestrate.itmatthewcroughan* Any opinions on how I could refactor this using cartesianProduct or maybe some other function, to generate the variants more cleanly, instead of all the copy-pasting?23:09:51

Show newer messages


Back to Room ListRoom Version: 6