| 15 May 2026 |
Nadia | does anyone know why clang for the cross system with useLLVM set (in a nix shell environment) would attempt to call gcc? | 13:14:03 |
Nadia | it tries to call plain gcc and fails because it doesn't exist, if I include a gcc for the cross system in the shell it tries to call it but the compiler wrapper seems to pass clang flags to it | 13:15:18 |
Nadia | (is nixpkgs even the right choice for cross compiling for embedded or should I just write my own derivations for building a toolchain?) | 13:25:02 |
Nadia | unrelated question, how do I add more flags to gcc in the case class as -march/-mabi/etc? | 14:42:38 |
Artturin | Show your mkShell expr | 14:44:13 |
Artturin | Have you checked the env? | 14:44:37 |
Artturin | * Have you checked the shell env? | 14:44:46 |
Nadia | Download flake.nix | 14:48:56 |
Nadia | trying to build a simple int main() { return 0; } with this will reproduce the problem | 14:56:48 |
Sergei Zimmerman (xokdvium) | In reply to @nadia:nhp.sh unrelated question, how do I add more flags to gcc in the case class as -march/-mabi/etc? Which embedded machine are you trying to compile for? It’s pretty doable if you are willing to wrangle with nixpkgs config and have enough compute to build to cross compiler | 17:03:32 |
Sergei Zimmerman (xokdvium) | It is a freestanding one with custom linker scripts and no libc/libstdc++ etc? | 17:04:09 |
Nadia | yeah | 17:04:58 |
Sergei Zimmerman (xokdvium) | Hm I can dig up some stuff I used for stm32 cross with c/rust | 17:05:18 |
Nadia | specifically, I was trying to use clang to build for the N64 (it has a MIPS64 CPU) just to see how doable that was, but ran into that weird issue | 17:06:15 |
Nadia | gave up on that, and just went for gcc | 17:06:44 |
Nadia | wanted to add extra flags to get the libgcc also built with -mfix4300, but maybe it's fine without | 17:28:57 |
| 26 May 2026 |
| phanirithvij changed their display name from loudgolem to phanirithvij. | 11:41:05 |
| 29 May 2026 |
| lassulus changed their profile picture. | 07:06:40 |
| lorne joined the room. | 14:07:25 |
lorne | I see in scrollback some people working on PowerMac G5 support 👋. I recently booted a cross-compiled NixOS installer on a PowerMac11,2 that I recently found at a junk store. Just submitted a quick fix for the cross kernel build. | 17:50:14 |
| 31 May 2026 |
Stas | Mine is having flaky ram slots. Will burn the apple test cd to test it | 07:31:17 |
Stas | It just hangs, but after wiggling the sticks the problem goes away for a while | 07:32:04 |
lorne | I just returned from the junk shop with a G4 PowerMac3,6. This is probably going to be more interesting to get going. | 08:24:29 |
Artturin | In reply to @stas:mainframe.lv Mine is having flaky ram slots. Will burn the apple test cd to test it Try cleaning the contacts with isopropyl | 09:29:28 |
Artturin | Wiggling the sticks sounds like it's rubbing away corrosion(or similar) | 09:30:25 |
Stas | I tried with a more proper contact cleaner, need to retry some day | 12:35:02 |
| 1 Jun 2026 |
Puna | LMK when you get to the point where you'd try to make an installer ISO. I'm interested to know how booting differs on that hardware compared to my G5. | 14:22:51 |
lorne | For my G5 I've been assembling a symlink tree of: grub image, kernel, vmlinux, squashfs, and just scp-ing it directly to an Apple Partition Map / HFS+ volume on a usb stick and booting over usb with the regular probe-usb boot usb3/disk:3,\grub\grub.img. I was going to try that again once everything builds (libressl is sad). | 15:04:37 |
lorne | * For my G5 I've been assembling a symlink tree of: grub image, kernel, initrd, squashfs, and just scp-ing it directly to an Apple Partition Map / HFS+ volume on a usb stick and booting over usb with the regular probe-usb boot usb3/disk:3,\grub\grub.img. I was going to try that again once everything builds (libressl is sad). | 15:29:29 |
Puna | https://github.com/NixOS/nixpkgs/pull/486572 and https://github.com/NixOS/nixpkgs/pull/488831 should allow you to build an ISO via nixos module stuff, write it to a USB / burn to a disc, and either boot it from the mac's multiboot menu thingy or via the tbxi entry point in openfirmware | 15:56:41 |