!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

554 Members
119 Servers

Load older messages


SenderMessageTime
19 Oct 2025
@matthewcroughan:defenestrate.itmatthewcroughanseems like a silly thing to fail on but yeah 10:13:43
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/NixOS/nixpkgs/pull/452738 also10:15:12
@matthewcroughan:defenestrate.itmatthewcroughan Weirdly too, the VM tests somehow build install-grub.sh 10:16:28
@matthewcroughan:defenestrate.itmatthewcroughanimage.png
Download image.png
10:17:59
@matthewcroughan:defenestrate.itmatthewcroughanthe deps in yellow failed to build10:18:03
@matthewcroughan:defenestrate.itmatthewcroughan
error: Cannot build '/nix/store/p6prsakbjbpp0rbjzryxgzdm3cpxf1a7-vde2-aarch64-unknown-linux-musl-2.3.3.drv'.
       Reason: builder failed with exit code 2.
       Output paths:
         /nix/store/lcb911qs6ffd7gg4xnnzd10i9hbvrybb-vde2-aarch64-unknown-linux-musl-2.3.3
       Last 25 log lines:
       >   CC       canonicalize.lo
       >   CC       malloc.lo
       >   CC       memcmp.lo
       >   CC       realloc.lo
       > In file included from realloc.c:3:
       > realloc.c: In function 'rpl_realloc':
       > ../../include/config.h:342:16: error: implicit declaration of function 'rpl_malloc'; did you mean 'rpl_realloc'? [-Wimplicit-function-declaration]
       >   342 | #define malloc rpl_malloc
       >       |                ^~~~~~~~~~
       > realloc.c:17:24: note: in expansion of macro 'malloc'
       >    17 |                 return malloc(size);
       >       |                        ^~~~~~
       > ../../include/config.h:342:16: error: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
       >   342 | #define malloc rpl_malloc
       > realloc.c:17:24: note: in expansion of macro 'malloc'
       >    17 |                 return malloc(size);
       >       |                        ^~~~~~
       > realloc.c:19:20: error: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
       >    19 |                 mem=malloc(size);
       >       |                    ^
       > make[2]: *** [Makefile:395: realloc.lo] Error 1
       > make[2]: Leaving directory '/build/source/src/common'
       > make[1]: *** [Makefile:563: all-recursive] Error 1
       > make[1]: Leaving directory '/build/source/src'
       > make: *** [Makefile:393: all-recursive] Error 1
       For full logs, run:
         nix log /nix/store/p6prsakbjbpp0rbjzryxgzdm3cpxf1a7-vde2-aarch64-unknown-linux-musl-2.3.3.drv
10:18:12
@matthewcroughan:defenestrate.itmatthewcroughanvde2 fails like that 10:18:15
@matthewcroughan:defenestrate.itmatthewcroughanAh okay pytest actually only fails to produce devdoc a percentage of the time 10:18:33
@matthewcroughan:defenestrate.itmatthewcroughanThe real error is that it's producing a bad output path10:18:43
@qyliss:fairydust.spaceAlyssa Rossah that's a common one10:18:46
@matthewcroughan:defenestrate.itmatthewcroughan
 error: output '/nix/store/2ldd5ibxb8i538v6cch3j8zkyvkq5mq9-python3.13-pytest-8.4.2-aarch64-unknown-linux-musl' is not allowed to refer to the following paths:
┃          /nix/store/m0b67b3lmjcxa8aplpl75qpb26gr5vsf-python3-3.13.8
10:18:58
@matthewcroughan:defenestrate.itmatthewcroughanAnd that is because of this 10:19:08
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/NixOS/nixpkgs/pull/45150610:19:09
@qyliss:fairydust.spaceAlyssa Ross
    "ac_cv_func_malloc_0_nonnull=yes"
    "ac_cv_func_realloc_0_nonnull=yes"
10:19:28
@qyliss:fairydust.spaceAlyssa Rossthat's the solution any time you see an rpl_malloc error10:19:34
@qyliss:fairydust.spaceAlyssa Ross If you want to be very thorough you can gate between !lib.systems.equals stdenv.buildPlatform stdenv.hostPlatform but I don't expect we support any libcs where the answer wouldn't be yes 10:20:15
@qyliss:fairydust.spaceAlyssa Ross * If you want to be very thorough you can gate behind !lib.systems.equals stdenv.buildPlatform stdenv.hostPlatform but I don't expect we support any libcs where the answer wouldn't be yes 10:20:23
@matthewcroughan:defenestrate.itmatthewcroughanwasm?10:20:38
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/virtualsquare/vde-210:21:45
@matthewcroughan:defenestrate.itmatthewcroughanhuh10:21:46
@matthewcroughan:defenestrate.itmatthewcroughan
  • With VDE it is possible to create a virtual network of UML machines running
    on several real computer
10:21:52
@matthewcroughan:defenestrate.itmatthewcroughanI wonder if we could make a VM test driver that is powered by UML instead of qemu10:22:05
@matthewcroughan:defenestrate.itmatthewcroughanit doesn't look like the thing I need to patch is actually in the vde2 source tree though10:22:49
@matthewcroughan:defenestrate.itmatthewcroughan there is no config.h there 10:23:01
@matthewcroughan:defenestrate.itmatthewcroughanah it's a generated one postConfigure10:23:18
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/virtualsquare/vde-2/blob/master/CMakeLists.txt#L28410:23:22
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all) wait whats the difference between lib.systems.equals and == ? 10:24:07
@matthewcroughan:defenestrate.itmatthewcroughanreadability I guess? :D10:24:18
@opna2608:matrix.orgPunahttps://github.com/NixOS/nixpkgs/pull/23833110:26:53
@matthewcroughan:defenestrate.itmatthewcroughanNow the pytest issue, I don't know how I cna fix that 10:26:57

Show newer messages


Back to Room ListRoom Version: 6