23 Jul 2024 |
dramforever | thoughts on packages that fail to build when emulated by qemu-user? maybe routing them real machines make sense but using requiredSystemFeatures doesn't seem easy https://github.com/NixOS/nix/issues/2742 | 11:05:27 |
trofi | worth fixing qemu instead if feasible? | 19:03:28 |
24 Jul 2024 |
| Redstone changed their display name from redstone-menace to Redstone. | 10:15:15 |
John Ericson | rhelmot: artemist it seems the nixbsd cache is missing about 1000 things? | 17:14:50 |
John Ericson | I am doing
nix --extra-experimental-features 'nix-command flakes' build .#base.vmClosureInfo --out-link .gcroots/vm --store $PWD/temp-store --option extra-substituters "https://attic.mildlyfunctional.gay/nixbsd" --option extra-trusted-public-keys "nixbsd:gwcQlsUO
NBLrrGCOdEboIAeFq9eLaDqfhfXmHZs1mgc="
| 17:15:22 |
rhelmot | Indeed | 17:16:00 |
rhelmot | I haven’t put anything in the cache in a while | 17:16:13 |
rhelmot | And the attic watcher doesn’t work on FreeBSD lol | 17:16:27 |
rhelmot | I can do a build for you | 17:16:32 |
John Ericson | I am fine using an older version | 17:16:34 |
John Ericson | oh thanks | 17:16:37 |
John Ericson | also I figure I don't need actually need a big closure? Just the VM image itself? | 17:16:54 |
John Ericson | and then I would permanently configure your substituter inside the VM | 17:17:28 |
rhelmot | Yeah that’s approximately correct | 17:17:41 |
John Ericson | In reply to @rhelmot:matrix.org I can do a build for you I am going to get lunch, but if its done let me know and then I'll try again! | 17:22:09 |
rhelmot | the locked build seems to have been garbage collected, or perhaps I'm using nix wrong :) I'll take this as an opportunity to re-lock it with the up-to-date stuff | 17:24:16 |
John Ericson | rhelmot: ok great! | 17:25:42 |
| @ftchrist:matrix.org left the room. | 19:35:44 |
25 Jul 2024 |
dramforever | In reply to @trofi:matrix.org worth fixing qemu instead if feasible? there's a lot, like most of the time it's unimplemented features and sometimes it's bugs. archlinux riscv build most of their stuff on qemu-user and they have a list of failures here: https://github.com/felixonmars/archriscv-packages/blob/master/qemu-user-blacklist.txt | 00:31:01 |
dramforever | it's often test suites though | 00:31:29 |
dramforever | fixing qemu would work for some cases like i did manage to fix the coreutils problem but i doubt it would be generally applicable | 00:39:53 |
dramforever | * fixing qemu would work for some cases like i did manage to fix the coreutils problem but i doubt it would be generally applicable/feasible | 00:39:59 |
28 Jul 2024 |
| matthewcroughan - nix.how changed their display name from matthewcroughan to matthewcroughan - going to nix.camp. | 16:15:40 |
artemist | Is there a reason we build compiler-rt twice on FreeBSD? Upstream clang hardcodes `-lgcc --as-needed -lgcc_s --no-as-needed` link arguments so the `libclang_rt.builtins` library should never be used | 17:52:02 |
artemist | We provide both libgcc.a and libgcc_s.so in freebsd.libc and they're better on some architectures because they're built with FreeBSD headers, e.g. they're required unless we patch out CPU feature detection on aarch64-freebsd | 18:03:30 |
30 Jul 2024 |
John Ericson | @artemist:mildlyfunctional.gay: oops I thought I added a thing so we only built it once? | 17:30:01 |
John Ericson | Before I merged the PR? | 17:30:31 |
John Ericson | Also
```
/build/compiler-rt-src-18.1.8/compiler-rt/lib/builtins/cpu_model/x86.c:900:3: error: call to undeclared function 'static_assert'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
900 | static_assert(sizeof(Features) / sizeof(Features[0]) == 4, "");
| ^
/build/compiler-rt-src-18.1.8/compiler-rt/lib/builtins/cpu_model/x86.c:939:3: error: call to undeclared function '__assert'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
939 | assert(__cpu_model.__cpu_vendor < VENDOR_MAX);
| ^
/build/compiler-rt-src-18.1.8/compiler-rt/lib/builtins/cpu_model/x86.c:24:32: note: expanded from macro 'assert'
24 | #define assert(e) ((e)?(void)0:__assert(__FUNCTION__,__FILE__,__LINE__,#e))
|
``` | 17:30:43 |
John Ericson | I noticed this failure building freebsd static, I think it's new because got almost the same failure with OpenBSD and that was working a few weeks ago | 17:32:01 |
John Ericson | (also with LLVM 18) | 17:32:09 |