!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

543 Members
115 Servers

Load older messages


SenderMessageTime
16 Oct 2025
@matthewcroughan:defenestrate.itmatthewcroughanFor real though, the real website hosted on the disposable vape, is much faster18:39:32
@matthewcroughan:defenestrate.itmatthewcroughan

Versions 0.9.13 through 1.2.5 are affected by CVE-2025-26519, an input-controlled out-of-bounds memory write primitive in iconv when the input encoding is EUC-KR and the output encoding is UTF-8, which could potentially be used as a vector to achieve arbitrary code execution. All users of software which may use iconv should patch (1, 2).

18:40:19
@matthewcroughan:defenestrate.itmatthewcroughanAre we applying that patch though ?18:40:23
@rosssmyth:matrix.orgrosssmythclock speed is half the ones I use at work, but the flash and ram are about the same18:41:03
@rosssmyth:matrix.orgrosssmythnice18:41:05
@matthewcroughan:defenestrate.itmatthewcroughanThe vape you use at work?18:41:26
@matthewcroughan:defenestrate.itmatthewcroughanAh yeah looks like we are 18:42:09
@matthewcroughan:defenestrate.itmatthewcroughan dramforever: NIX_DONT_SET_RPATH = true is set in pkgs/by-name/mu/musl/package.nix, does this somehow impact your patch from earlier? 18:42:58
@matthewcroughan:defenestrate.itmatthewcroughan
        > aarch64-unknown-linux-musl-ar rc lib/libc.a obj/src/aio/aio.lo obj/src/aio/aio_suspend.lo obj/src/aio/lio_listio.lo obj/src/complex/__cexp.lo obj/src/complex/__cexpf.lo obj/src/complex/cab…
┃        > aarch64-unknown-linux-musl-gcc -std=c99 -nostdinc -ffreestanding -fexcess-precision=standard -frounding-math -fno-strict-aliasing -Wa,--noexecstack -D_XOPEN_SOURCE=700 -I./arch/aarch64 -I.…
┃        > -Wl,-e,_dlstart -o lib/libc.so obj/src/aio/aio.lo obj/src/aio/aio_suspend.lo obj/src/aio/lio_listio.lo obj/src/complex/__cexp.lo obj/src/complex/__cexpf.lo obj/src/complex/cabs.lo obj/src/…
┃        > aarch64-unknown-linux-musl-ranlib lib/libc.a
┃        > collect2: fatal error: cannot find 'ld'
18:44:00
@matthewcroughan:defenestrate.itmatthewcroughanOkay, so given this..18:44:02
@matthewcroughan:defenestrate.itmatthewcroughan gcc is expected, but it can't find ld by the name ld I guess 18:44:16
@matthewcroughan:defenestrate.itmatthewcroughanBut this also seems to happen with llvm 18:44:27
@matthewcroughan:defenestrate.itmatthewcroughan Ah right it's only called gcc because of the way we wrap things right? 18:45:16
@matthewcroughan:defenestrate.itmatthewcroughanit's the gcc-wrapper18:45:19
@dramforever:matrix.orgdramforeverrpath is completely irrelevant when static linking18:46:45
@dramforever:matrix.orgdramforeverincluding my patch18:46:49
@matthewcroughan:defenestrate.itmatthewcroughanalright, makes sense 18:47:02
@dramforever:matrix.orgdramforeverwait, it shouldn't be using ld at this step18:49:21
@matthewcroughan:defenestrate.itmatthewcroughan I have another issue after I set security.enableWrappers = false anyway 18:59:39
@matthewcroughan:defenestrate.itmatthewcroughanWhich is that somehow, glibc-nolibgcc gets involved and fails to build gettimeofday18:59:53
@matthewcroughan:defenestrate.itmatthewcroughan
┣━ Dependency Graph:
┃                ┌─ ✔ etc
┃                ├─ ⏸ boot.json waiting for 3 ⏵
┃                │        ┌─ ⏵ glibc-nolibgcc-aarch64-unknown-linux-musl-2.40-66 (buildPhase) ⏱ 2m12s
┃                │     ┌─ ⏸ libgcc-aarch64-unknown-linux-musl-14.3.0
┃                │  ┌─ ⏸ glibc-aarch64-unknown-linux-musl-2.40-66
┃                │  ├─ ⏵ initrd-udev-rules ⏱ 6s
┃                │  ├─ ⏵ initrd-units ⏱ 55s
┃                ├─ ⏸ initrd-linux-aarch64-unknown-linux-musl-6.17.3
┃             ┌─ ⏸ nixos-system-nixos-25.11.20251016.6bec4e9
┃          ┌─ ⏸ closure-info
┃          │           ┌─ ✔ unit-nixos-activation.service
┃          │        ┌─ ✔ user-units
┃          │        │  ┌─ ✔ unit-serial-getty-.service
┃          │        │  ├─ ✔ unit-systemd-fsck-.service
┃          │        │  ├─ ✔ unit-systemd-makefs-.service
┃          │        │  ├─ ✔ unit-systemd-mkswap-.service
┃          │        │  ├─ ✔ unit-getty-.service
┃          │        │  │        ┌─ ✔ mdadm-aarch64-unknown-linux-musl-4.4 ⏱ 2s
┃          │        │  │     ┌─ ✔ udev-rules
┃          │        │  │  ┌─ ✔ X-Restart-Triggers-systemd-udevd
┃          │        │  ├─ ✔ unit-systemd-udevd.service
┃          │        ├─ ✔ system-units
┃          │     ┌─ ✔ etc-json
┃          │  ┌─ ✔ etc-dump
┃          │  ├─ ✔ composefs-1.0.8 ⏱ 21s
┃          ├─ ✔ etc-metadata.erofs
┃       ┌─ ⏸ nixos-system-nixos-25.11.20251016.6bec4e9
┃    ┌─ ⏸ closure-info
┃ ┌─ ⏸ run-nixos-vm
┃ ⏸ nixos-vm
19:00:09
@matthewcroughan:defenestrate.itmatthewcroughanapparently to build initrd we need glibc in a pure musl build 19:00:26
@matthewcroughan:defenestrate.itmatthewcroughanleaky leaky19:00:29
@matthewcroughan:defenestrate.itmatthewcroughan Hmm, apparently we have a requirement for pkgsStatic in stub-ld too? dramforever 19:04:59
@matthewcroughan:defenestrate.itmatthewcroughan
┃          │  │  │                    ├─ ⏵ musl-static-aarch64-unknown-linux-musl-1.2.5 (buildPhase) ⏱ 19s
┃          │  │  │                 ┌─ ⏸ aarch64-unknown-linux-musl-gcc-wrapper-14.3.0
┃          │  │  │              ┌─ ⏸ stdenv-linux
┃          │  │  │           ┌─ ⏸ stub-ld-aarch64-unknown-linux-musl
┃          │  │  │        ┌─ ⏸ nixos-tmpfiles.d
┃          │  │  │     ┌─ ⏸ tmpfiles.d
┃          │  │  │  ┌─ ⏸ X-Restart-Triggers-systemd-tmpfiles-resetup
┃          │  │  ├─ ⏸ unit-systemd-tmpfiles-resetup.service
┃          │  ├─ ⏸ system-units
┃          ├─ ⏸ etc
19:05:02
@dramforever:matrix.orgdramforeverah yes19:06:06
@dramforever:matrix.orgdramforeverthat one also must be static19:06:13
@dramforever:matrix.orgdramforeverit is itself a dynamic linker so it can't rely on another dynamic linker...19:06:32
@matthewcroughan:defenestrate.itmatthewcroughan
s
┃    │  │        ┌─ ⏸ libgcc-aarch64-unknown-linux-musl-14.3.0
┃    │  │     ┌─ ⏸ glibc-aarch64-unknown-linux-musl-2.40-66
┃    │  │  ┌─ ⏸ initrd-linux-aarch64-unknown-linux-musl-6.17.3
┃    │  ├─ ⏸ boot.json
┃    ├─ ⏸ nixos-system-nixos-25.11.20251016.6bec4e9
┃ ┌─ ⏸ run-nixos-vm
┃ ⏸ nixos-vm

I've gotten rid of that anyway, and now this

19:06:40
@matthewcroughan:defenestrate.itmatthewcroughanSo it looks like actually initrd itself depends on glibc19:07:04

Show newer messages


Back to Room ListRoom Version: 6