Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get a full list of errors when running 'make' and 'make run' #4

Open
MEMESCOEP opened this issue Aug 26, 2021 · 2 comments
Open

Get a full list of errors when running 'make' and 'make run' #4

MEMESCOEP opened this issue Aug 26, 2021 · 2 comments

Comments

@MEMESCOEP
Copy link

I get a full list of errors after running make or make run.
I have run bootstrap.sh first.

errors:

ld -o kernel/kernel.bin -Ttext 0x1000 boot/kernel_entry.o cpu/idt.o cpu/interrupt.o cpu/isr.o cpu/ports.o cpu/timer.o drivers/keyboard.o drivers/screen.o kernel/kernel.o libc/mem.o libc/string.o --oformat binary
ld: i386 architecture of input file `boot/kernel_entry.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `cpu/idt.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `cpu/interrupt.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `cpu/isr.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `cpu/ports.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `cpu/timer.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `drivers/keyboard.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `drivers/screen.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `kernel/kernel.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `libc/mem.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `libc/string.o' is incompatible with i386:x86-64 output
ld: cpu/idt.o: in function `set_idt_gate':
/home/andrew/Desktop/CustomOS/BetterOS/cpu/idt.c:8: undefined reference to `_GLOBAL_OFFSET_TABLE_'
ld: cpu/idt.o: in function `set_idt':
/home/andrew/Desktop/CustomOS/BetterOS/cpu/idt.c:20: undefined reference to `_GLOBAL_OFFSET_TABLE_'
ld: cpu/isr.o: in function `isr_install':
/home/andrew/Desktop/CustomOS/BetterOS/cpu/isr.c:56: undefined reference to `_GLOBAL_OFFSET_TABLE_'
ld: cpu/isr.o: in function `isr_handler':
/home/andrew/Desktop/CustomOS/BetterOS/cpu/isr.c:126: undefined reference to `_GLOBAL_OFFSET_TABLE_'
ld: cpu/isr.o: in function `irq_install':
/home/andrew/Desktop/CustomOS/BetterOS/cpu/isr.c:137: undefined reference to `_GLOBAL_OFFSET_TABLE_'
ld: cpu/isr.o:/home/andrew/Desktop/CustomOS/BetterOS/cpu/isr.c:145: more undefined references to `_GLOBAL_OFFSET_TABLE_' follow
make: *** [Makefile:31: kernel/kernel.bin] Error 1

@ghaiklor
Copy link
Owner

@xxxMEMESCOEPxxx and what do you want from me here?

@Pebaz
Copy link

Pebaz commented Sep 3, 2023

| @xxxMEMESCOEPxxx and what do you want from me here?
@ghaiklor you salty bro? 😅

I'm also getting this on WSL after running bootstrap script. Any ideas what this could be? I asked Claude and ChatGPT and they didn't know other than a misconfiguration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants