!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

580 Members
126 Servers

Load older messages


SenderMessageTime
26 Mar 2025
@stephen:crabsin.spacen3tcatoh yeah that makes sense ofc20:36:40
@k900:0upti.meK900Yeah 20:36:43
@stephen:crabsin.spacen3tcat
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
@stephen:crabsin.spacen3tcatoh nvm my clean script doesn't clean properly20:38:42
@stephen:crabsin.spacen3tcatseems to be working now :320:38:49
@stephen:crabsin.spacen3tcatoh 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 day20:39:47
@stephen:crabsin.spacen3tcattyty! This has been extremely helpful for me20:39:52
@k900:0upti.meK900Yeah if you can confirm this actually works, we may want to track down some newlib folk 20:44:17
@k900:0upti.meK900And see if they will take the patch20:44:23
@stephen:crabsin.spacen3tcatI have some C code building now (well, flashing to the RAM) but yeah that is something I would love to do20:45:39
@stephen:crabsin.spacen3tcatWhere 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:0upti.meK900I think they're still on like 20:46:25
@k900:0upti.meK900CVS or some shit 20:46:27
@stephen:crabsin.spacen3tcatWhat is CVS?20:46:54
@stephen:crabsin.spacen3tcatoh wait this would be a patch outside of nixos wouldn't it20:47:05
@k900:0upti.meK900Yeah, I mean upstream newlib 20:47:21
@k900:0upti.meK900
In reply to @stephen:crabsin.space
What is CVS?
Oh god
20:47:24
* @k900:0upti.meK900 crumbles to dust20:47:30
@k900:0upti.meK900CVS is like 20:47:48
@k900:0upti.meK900The original version control system 20:47:56
@k900:0upti.meK900CVS to SVN is what SVN is to hit 20:48:15
@k900:0upti.meK900* CVS to SVN is what SVN is to git20:48:24
@k900:0upti.meK900Roughly 20:48:26
@k900:0upti.meK900But also looks like they have mailing lists 20:48:32
@k900:0upti.meK900https://sourceware.org/newlib/20:48:34
@k900:0upti.meK900I don't know how active they are though 20:48:43
@stephen:crabsin.spacen3tcatoh no20:48:44
@stephen:crabsin.spacen3tcatHow bad would it be to just open a PR to nixpkgs with your patch? I am not sure how much I want to deal with newlib stuff20:49:10
@k900:0upti.meK900Uhhh20:49:44
@k900:0upti.meK900I mean you can 20:49:56

Show newer messages


Back to Room ListRoom Version: 6