Skip to content

Instantly share code, notes, and snippets.

@Andrej123456789
Created December 28, 2021 15:27
Show Gist options
  • Save Andrej123456789/5117f9d076609c4e1f35bf3f078d2788 to your computer and use it in GitHub Desktop.
Save Andrej123456789/5117f9d076609c4e1f35bf3f078d2788 to your computer and use it in GitHub Desktop.
mkdir -p /home/vangu/ringOS/gnu-efi/x86_64/bootloader
make -C /home/vangu/ringOS/gnu-efi/x86_64/bootloader -f /home/vangu/ringOS/gnu-efi//bootloader/Makefile SRCDIR=/home/vangu/ringOS/gnu-efi//bootloader ARCH=x86_64
make[1]: Entering directory '/home/vangu/ringOS/gnu-efi/x86_64/bootloader'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/vangu/ringOS/gnu-efi/x86_64/bootloader'
!==== COMPILING src/Bitmap.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/Bitmap.cpp -o lib/Bitmap.o
!==== COMPILING src/Reboot.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/Reboot.cpp -o lib/Reboot.o
!==== COMPILING src/pciDescriptors.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/pciDescriptors.cpp -o lib/pciDescriptors.o
!==== COMPILING src/scheduling/pit/pit.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/scheduling/pit/pit.cpp -o lib/scheduling/pit/pit.o
!==== COMPILING src/kernel.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/kernel.cpp -o lib/kernel.o
!==== COMPILING src/panic.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/panic.cpp -o lib/panic.o
!==== COMPILING src/Window/Window.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/Window/Window.cpp -o lib/Window/Window.o
!==== COMPILING src/memory/heap.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/memory/heap.cpp -o lib/memory/heap.o
!==== COMPILING src/efiMemory.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/efiMemory.cpp -o lib/efiMemory.o
!==== COMPILING src/cstr.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/cstr.cpp -o lib/cstr.o
!==== COMPILING src/interrupts/interrupts.cpp
g++ -mno-red-zone -mgeneral-regs-only -ffreestanding -g -c src/interrupts/interrupts.cpp -o lib/interrupts/interrupts.o
!==== COMPILING src/interrupts/IDT.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/interrupts/IDT.cpp -o lib/interrupts/IDT.o
!==== COMPILING src/paging/PageFrameAllocator.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/paging/PageFrameAllocator.cpp -o lib/paging/PageFrameAllocator.o
!==== COMPILING src/paging/PageMapIndexer.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/paging/PageMapIndexer.cpp -o lib/paging/PageMapIndexer.o
!==== COMPILING src/paging/PageTableManager.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/paging/PageTableManager.cpp -o lib/paging/PageTableManager.o
!==== COMPILING src/paging/paging.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/paging/paging.cpp -o lib/paging/paging.o
!==== COMPILING src/shutdown.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/shutdown.cpp -o lib/shutdown.o
!==== COMPILING src/userinput/keyboard.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/userinput/keyboard.cpp -o lib/userinput/keyboard.o
!==== COMPILING src/userinput/mouse.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/userinput/mouse.cpp -o lib/userinput/mouse.o
!==== COMPILING src/kernelUtil.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/kernelUtil.cpp -o lib/kernelUtil.o
!==== COMPILING src/tga/tga.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/tga/tga.cpp -o lib/tga/tga.o
src/tga/tga.cpp: In function ‘unsigned int tga_parse(unsigned char*, int)’:
src/tga/tga.cpp:16:27: warning: converting to non-pointer type ‘unsigned int’ from NULL [-Wconversion-null]
16 | if(w<1 || h<1) return NULL;
| ^~~~
src/tga/tga.cpp:19:22: warning: converting to non-pointer type ‘unsigned int’ from NULL [-Wconversion-null]
19 | if(!data) return NULL;
| ^~~~
src/tga/tga.cpp:23:104: warning: converting to non-pointer type ‘unsigned int’ from NULL [-Wconversion-null]
23 | if(ptr[6]!=0 || ptr[4]!=0 || ptr[3]!=0 || (ptr[7]!=24 && ptr[7]!=32)) { free(data); return NULL; }
| ^~~~
src/tga/tga.cpp:33:106: warning: converting to non-pointer type ‘unsigned int’ from NULL [-Wconversion-null]
33 | if(ptr[5]!=0 || ptr[6]!=0 || ptr[1]!=0 || (ptr[16]!=24 && ptr[16]!=32)) { free(data); return NULL; }
| ^~~~
src/tga/tga.cpp:43:104: warning: converting to non-pointer type ‘unsigned int’ from NULL [-Wconversion-null]
43 | if(ptr[6]!=0 || ptr[4]!=0 || ptr[3]!=0 || (ptr[7]!=24 && ptr[7]!=32)) { free(data); return NULL; }
| ^~~~
src/tga/tga.cpp:65:106: warning: converting to non-pointer type ‘unsigned int’ from NULL [-Wconversion-null]
65 | if(ptr[5]!=0 || ptr[6]!=0 || ptr[1]!=0 || (ptr[16]!=24 && ptr[16]!=32)) { free(data); return NULL; }
| ^~~~
src/tga/tga.cpp:87:32: warning: converting to non-pointer type ‘unsigned int’ from NULL [-Wconversion-null]
87 | free(data); return NULL;
| ^~~~
!==== COMPILING src/ahci/ahci.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/ahci/ahci.cpp -o lib/ahci/ahci.o
src/ahci/ahci.cpp: In member function ‘void AHCI::Port::Configure()’:
src/ahci/ahci.cpp:72:48: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
72 | memset((void*)(hbaPort->commandListBase), 0, 1024);
| ^
src/ahci/ahci.cpp: In member function ‘bool AHCI::Port::Read(uint64_t, uint32_t, void*)’:
src/ahci/ahci.cpp:124:67: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
124 | HBACommandHeader* cmdHeader = (HBACommandHeader*)hbaPort->commandListBase;
| ^~~~~~~~~~~~~~~
src/ahci/ahci.cpp:129:94: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
129 | HBACommandTable* commandTable = (HBACommandTable*)(cmdHeader->commandTableBaseAddress);
| ^
src/ahci/ahci.cpp: In constructor ‘AHCI::AHCIDriver::AHCIDriver(PCI::PCIDeviceHeader*)’:
src/ahci/ahci.cpp:184:64: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
184 | ABAR = (HBAMemory*)((PCI::PCIHeader0*)pciBaseAddress)->BAR5;
| ^~~~
src/ahci/ahci.cpp: In function ‘AHCI::PortType AHCI::CheckPortType(AHCI::HBAPort*)’:
src/ahci/ahci.cpp:44:5: warning: control reaches end of non-void function [-Wreturn-type]
44 | }
| ^
!==== COMPILING src/IO.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/IO.cpp -o lib/IO.o
!==== COMPILING src/pci.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/pci.cpp -o lib/pci.o
!==== COMPILING src/gdt/gdt.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/gdt/gdt.cpp -o lib/gdt/gdt.o
!==== COMPILING src/acpi.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/acpi.cpp -o lib/acpi.o
!==== COMPILING src/BasicRenderer.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/BasicRenderer.cpp -o lib/BasicRenderer.o
!==== COMPILING src/memory.cpp
g++ -ffreestanding -fshort-wchar -mno-red-zone -fno-exceptions -g -c src/memory.cpp -o lib/memory.o
!==== COMPILING src/gdt/gdt.asm
nasm src/gdt/gdt.asm -f elf64 -o lib/gdt/gdt_asm.o
!==== LINKING
ld.lld -T kernel.lld -static -Bsymbolic -nostdlib -o bin/kernel.elf lib/Bitmap.o lib/Reboot.o lib/pciDescriptors.o lib/scheduling/pit/pit.o lib/kernel.o lib/panic.o lib/Window/Window.o lib/memory/heap.o lib/efiMemory.o lib/cstr.o lib/interrupts/interrupts.o lib/interrupts/IDT.o lib/paging/PageFrameAllocator.o lib/paging/PageMapIndexer.o lib/paging/PageTableManager.o lib/paging/paging.o lib/shutdown.o lib/userinput/keyboard.o lib/userinput/mouse.o lib/kernelUtil.o lib/tga/tga.o lib/ahci/ahci.o lib/IO.o lib/pci.o lib/gdt/gdt.o lib/acpi.o lib/BasicRenderer.o lib/memory.o lib/gdt/gdt_asm.o
ld.lld: error: undefined symbol: StartMenuStuff
>>> referenced by kernel.cpp:80 (src/kernel.cpp:80)
>>> lib/kernel.o:(_start)
>>> referenced by mouse.cpp:179 (src/userinput/mouse.cpp:179)
>>> lib/userinput/mouse.o:(Draw())
>>> referenced by mouse.cpp:185 (src/userinput/mouse.cpp:185)
>>> lib/userinput/mouse.o:(Draw())
>>> referenced by mouse.cpp:186 (src/userinput/mouse.cpp:186)
>>> lib/userinput/mouse.o:(Draw())
ld.lld: error: undefined symbol: BasicStuff
>>> referenced by Window.cpp:18 (src/Window/Window.cpp:18)
>>> lib/Window/Window.o:(Basic::Square(unsigned long, unsigned long, unsigned long, unsigned long, unsigned int))
>>> referenced by Window.cpp:24 (src/Window/Window.cpp:24)
>>> lib/Window/Window.o:(StartMenu::DrawStartMenu(int, unsigned int))
make: *** [Makefile:47: link] Error 1
vangu@DESKTOP-A8H3TU8:~/ringOS/kernel$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment