| 26 Mar 2025 |
n3tcat | > file /nix/store/ix4mrsayc4i5d61ar59fh1p33nkxchqv-m68k-unknown-none-elf-gcc-13.2.0/bin/m68k-unknown-none-elf-gcc
/nix/store/ix4mrsayc4i5d61ar59fh1p33nkxchqv-m68k-unknown-none-elf-gcc-13.2.0/bin/m68k-unknown-none-elf-gcc: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /nix/store/7jiqcrg061xi5clniy7z5pvkc4jiaqav-glibc-2.38-27/lib/ld-linux-x86-64.so.2, for GNU/Linux 3.10.0, not stripped
| 20:35:18 |
K900 | Have you cleaned the build directory? | 20:35:35 |
K900 | You probably need to rebuild the whole thing | 20:35:40 |
K900 | With the flags removed | 20:35:45 |
n3tcat | Like the build directory of my project? | 20:35:59 |
n3tcat | oh yeah that makes sense ofc | 20:36:40 |
K900 | Yeah | 20:36:43 |
n3tcat | m68k-unknown-none-elf-gcc -T Linker.ld -o os.bin -O2 -m68000 -Wall -Wextra -nostdlib start.o main.o -fno-PIE drivers/screen.o drivers/serial.o cpu/interrupt.o cpu/interrupts.o libc/stdlib.o libc/string.o prog/mandelbrot.o prog/memtest.o prog/tty.o -ffreestanding `m68k-unknown-none-elf-gcc -m68000 -print-libgcc-file-name -ffreestanding`
/nix/store/fmdkz68rg2al0ds776246wkzc12kva5q-m68k-unknown-none-elf-binutils-2.40/bin/m68k-unknown-none-elf-ld: main.o: in function `kmain':
main.c:(.text+0x6): undefined reference to `_GLOBAL_OFFSET_TABLE_'
collect2: error: ld returned 1 exit status
certainly less errors | 20:38:25 |
n3tcat | oh nvm my clean script doesn't clean properly | 20:38:42 |
n3tcat | seems to be working now :3 | 20:38:49 |
n3tcat | oh hell yeah I took out the hardening thing and it still works. I must have had some bad build files left over from the other day | 20:39:47 |
n3tcat | tyty! This has been extremely helpful for me | 20:39:52 |
K900 | Yeah if you can confirm this actually works, we may want to track down some newlib folk | 20:44:17 |
K900 | And see if they will take the patch | 20:44:23 |
n3tcat | I have some C code building now (well, flashing to the RAM) but yeah that is something I would love to do | 20:45:39 |
n3tcat | Where do I find newlib folks? Would I just open a PR with your change and then hopefully they will comment on it? | 20:45:53 |
K900 | I think they're still on like | 20:46:25 |
K900 | CVS or some shit | 20:46:27 |
n3tcat | What is CVS? | 20:46:54 |
n3tcat | oh wait this would be a patch outside of nixos wouldn't it | 20:47:05 |
K900 | Yeah, I mean upstream newlib | 20:47:21 |
K900 | In reply to @stephen:crabsin.space What is CVS? Oh god | 20:47:24 |
| * K900 crumbles to dust | 20:47:30 |
K900 | CVS is like | 20:47:48 |
K900 | The original version control system | 20:47:56 |
K900 | CVS to SVN is what SVN is to hit | 20:48:15 |
K900 | * CVS to SVN is what SVN is to git | 20:48:24 |
K900 | Roughly | 20:48:26 |
K900 | But also looks like they have mailing lists | 20:48:32 |
K900 | https://sourceware.org/newlib/ | 20:48:34 |