| 19 Oct 2025 |
matthewcroughan | seems like a silly thing to fail on but yeah | 10:13:43 |
matthewcroughan | https://github.com/NixOS/nixpkgs/pull/452738 also | 10:15:12 |
matthewcroughan | Weirdly too, the VM tests somehow build install-grub.sh | 10:16:28 |
matthewcroughan |  Download image.png | 10:17:59 |
matthewcroughan | the deps in yellow failed to build | 10:18:03 |
matthewcroughan | 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 | vde2 fails like that | 10:18:15 |
matthewcroughan | Ah okay pytest actually only fails to produce devdoc a percentage of the time | 10:18:33 |
matthewcroughan | The real error is that it's producing a bad output path | 10:18:43 |
Alyssa Ross | ah that's a common one | 10:18:46 |
matthewcroughan | 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 | And that is because of this | 10:19:08 |
matthewcroughan | https://github.com/NixOS/nixpkgs/pull/451506 | 10:19:09 |
Alyssa Ross | "ac_cv_func_malloc_0_nonnull=yes"
"ac_cv_func_realloc_0_nonnull=yes"
| 10:19:28 |
Alyssa Ross | that's the solution any time you see an rpl_malloc error | 10:19:34 |
Alyssa 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 |
Alyssa 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 | wasm? | 10:20:38 |
matthewcroughan | https://github.com/virtualsquare/vde-2 | 10:21:45 |
matthewcroughan | huh | 10:21:46 |
matthewcroughan |
- With VDE it is possible to create a virtual network of UML machines running
on several real computer
| 10:21:52 |
matthewcroughan | I wonder if we could make a VM test driver that is powered by UML instead of qemu | 10:22:05 |
matthewcroughan | it doesn't look like the thing I need to patch is actually in the vde2 source tree though | 10:22:49 |
matthewcroughan | there is no config.h there | 10:23:01 |
matthewcroughan | ah it's a generated one postConfigure | 10:23:18 |
matthewcroughan | https://github.com/virtualsquare/vde-2/blob/master/CMakeLists.txt#L284 | 10:23:22 |
Grimmauld (any/all) | wait whats the difference between lib.systems.equals and == ? | 10:24:07 |
matthewcroughan | readability I guess? :D | 10:24:18 |
Puna | https://github.com/NixOS/nixpkgs/pull/238331 | 10:26:53 |
matthewcroughan | Now the pytest issue, I don't know how I cna fix that | 10:26:57 |