Closed fgsoftware1 closed 3 years ago
FAILED: bin/gdt.o gcc -m32 -Iinclude -fno-use-cxa-atexit -nostdlib -fno-builtin -fno-rtti -fno-exceptions -fno-leading-underscore -Wno-write-strings -fno-stack-protector -std=c++11 -Dsnprintf=snprintf -D_WIN32_WINNT=0x0501 -D_MSC_VER=1600 -o bin/gdt.o -c src/gdt.cpp In file included from src/gdt.cpp:1: src/include/gdt.h:12:13: error: ‘uint16_t’ does not name a type 12 | uint16_t limit_lo; | ^~~~ src/include/gdt.h:13:13: error: ‘uint16_t’ does not name a type 13 | uint16_t base_lo; | ^~~~ src/include/gdt.h:14:13: error: ‘uint8_t’ does not name a type 14 | uint8_t base_hi; | ^~~ src/include/gdt.h:15:13: error: ‘uint8_t’ does not name a type 15 | uint8_t type; | ^~~ src/include/gdt.h:16:13: error: ‘uint8_t’ does not name a type 16 | uint8_t limit_hi; | ^~~ src/include/gdt.h:17:13: error: ‘uint8_t’ does not name a type 17 | uint8_t base_vhi; | ^~~ src/include/gdt.h:19:39: error: expected ‘)’ before ‘base’ 19 | SegmentDescriptor(uint32_t base, uint32_t limit, uint8_t type); | ~ ^~~~~ | ) src/include/gdt.h:20:13: error: ‘uint32_t’ does not name a type 20 | uint32_t Base(); | ^~~~ src/include/gdt.h:21:13: error: ‘uint32_t’ does not name a type 21 | uint32_t Limit(); | ^~~~ src/include/gdt.h:34:11: error: ‘uint16_t’ does not name a type 34 | uint16_t CodeSegmentSelector(); | ^~~~ src/include/gdt.h:35:11: error: ‘uint16_t’ does not name a type 35 | uint16_t DataSegmentSelector(); | ^~~~ src/gdt.cpp: In constructor ‘GlobalDescriptorTable::GlobalDescriptorTable()’: src/gdt.cpp:7:40: error: no matching function for call to ‘GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(int, int, int)’ 7 | dataSegmentSelector(0,6410241024,0x92) | ^ In file included from src/gdt.cpp:1: src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor()’ 9 | class SegmentDescriptor | ^~~~~ src/include/gdt.h:9:15: note: candidate expects 0 arguments, 3 provided src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(const GlobalDescriptorTable::SegmentDescriptor&)’ src/include/gdt.h:9:15: note: candidate expects 1 argument, 3 provided src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(GlobalDescriptorTable::SegmentDescriptor&&)’ src/include/gdt.h:9:15: note: candidate expects 1 argument, 3 provided src/gdt.cpp:7:40: error: no matching function for call to ‘GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(int, int, int)’ 7 | dataSegmentSelector(0,6410241024,0x92) | ^ In file included from src/gdt.cpp:1: src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor()’ 9 | class SegmentDescriptor | ^~~~~ src/include/gdt.h:9:15: note: candidate expects 0 arguments, 3 provided src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(const GlobalDescriptorTable::SegmentDescriptor&)’ src/include/gdt.h:9:15: note: candidate expects 1 argument, 3 provided src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(GlobalDescriptorTable::SegmentDescriptor&&)’ src/include/gdt.h:9:15: note: candidate expects 1 argument, 3 provided src/gdt.cpp:7:40: error: no matching function for call to ‘GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(int, int, int)’ 7 | dataSegmentSelector(0,6410241024,0x92) | ^ In file included from src/gdt.cpp:1: src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor()’ 9 | class SegmentDescriptor | ^~~~~ src/include/gdt.h:9:15: note: candidate expects 0 arguments, 3 provided src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(const GlobalDescriptorTable::SegmentDescriptor&)’ src/include/gdt.h:9:15: note: candidate expects 1 argument, 3 provided src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(GlobalDescriptorTable::SegmentDescriptor&&)’ src/include/gdt.h:9:15: note: candidate expects 1 argument, 3 provided src/gdt.cpp:7:40: error: no matching function for call to ‘GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(int, int, int)’ 7 | dataSegmentSelector(0,6410241024,0x92) | ^ In file included from src/gdt.cpp:1: src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor()’ 9 | class SegmentDescriptor | ^~~~~ src/include/gdt.h:9:15: note: candidate expects 0 arguments, 3 provided src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(const GlobalDescriptorTable::SegmentDescriptor&)’ src/include/gdt.h:9:15: note: candidate expects 1 argument, 3 provided src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(GlobalDescriptorTable::SegmentDescriptor&&)’ src/include/gdt.h:9:15: note: candidate expects 1 argument, 3 provided src/gdt.cpp:9:3: error: ‘uint32_t’ was not declared in this scope 9 | uint32_t i[2]; | ^~~~ src/gdt.cpp:10:3: error: ‘i’ was not declared in this scope 10 | i[1] = (uint32_t)this; | ^ src/gdt.cpp:13:37: error: ‘uint8_t’ was not declared in this scope 13 | asm volatile("lgdt (%0)": :"p" (((uint8_t ) i)+2)); | ^~~ src/gdt.cpp:13:46: error: expected primary-expression before ‘)’ token 13 | asm volatile("lgdt (%0)": :"p" (((uint8_t ) i)+2)); | ^ src/gdt.cpp:13:47: error: expected ‘)’ before ‘i’ 13 | asm volatile("lgdt (%0)": :"p" (((uint8_t ) i)+2)); | ~ ^~ | ) src/gdt.cpp:13:54: error: expected ‘)’ before ‘;’ token 13 | asm volatile("lgdt (%0)": :"p" (((uint8_t ) i)+2)); | ~ ^ | ) src/gdt.cpp:13:54: error: expected ‘)’ before ‘;’ token 13 | asm volatile("lgdt (%0)": :"p" (((uint8_t *) i)+2)); | ^ | ) src/gdt.cpp: At global scope: src/gdt.cpp:20:1: error: ‘uint16_t’ does not name a type 20 | uint16_t GlobalDescriptorTable::DataSegmentSelector(){ | ^~~~ src/gdt.cpp:24:1: error: ‘uint16_t’ does not name a type 24 | uint16_t GlobalDescriptorTable::CodeSegmentSelector(){ | ^~~~ src/gdt.cpp:28:60: error: expected constructor, destructor, or type conversion before ‘(’ token 28 | GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(uint32_t base, uint32_t limit,uint8_t flags){ | ^ src/gdt.cpp:51:1: error: ‘uint32_t’ does not name a type 51 | uint32_t GlobalDescriptorTable::SegmentDescriptor::Base(){ | ^~~~ src/gdt.cpp:61:1: error: ‘uint32_t’ does not name a type 61 | uint32_t GlobalDescriptorTable::SegmentDescriptor::Limit(){ | ^~~~ src/gdt.cpp:73:1: error: ‘uint32_t’ does not name a type 73 | uint32_t __stack_chk_fail_local(){ | ^~~~ [3/3] gcc -m32 -Iinclude -fno-use-cxa-atexit -nostdlib -fno-builtin -fno-rtti -fno...f=snprintf -D_WIN32_WINNT=0x0501 -D_MSC_VER=1600 -o bin/kernel.o -c src/kernel.cpp ninja: build stopped: subcommand failed.
FAILED: bin/gdt.o gcc -m32 -Iinclude -fno-use-cxa-atexit -nostdlib -fno-builtin -fno-rtti -fno-exceptions -fno-leading-underscore -Wno-write-strings -fno-stack-protector -std=c++11 -Dsnprintf=snprintf -D_WIN32_WINNT=0x0501 -D_MSC_VER=1600 -o bin/gdt.o -c src/gdt.cpp In file included from src/gdt.cpp:1: src/include/gdt.h:12:13: error: ‘uint16_t’ does not name a type 12 | uint16_t limit_lo; | ^
~~~ src/include/gdt.h:13:13: error: ‘uint16_t’ does not name a type 13 | uint16_t base_lo; | ^~~~ src/include/gdt.h:14:13: error: ‘uint8_t’ does not name a type 14 | uint8_t base_hi; | ^~~ src/include/gdt.h:15:13: error: ‘uint8_t’ does not name a type 15 | uint8_t type; | ^~~ src/include/gdt.h:16:13: error: ‘uint8_t’ does not name a type 16 | uint8_t limit_hi; | ^~~ src/include/gdt.h:17:13: error: ‘uint8_t’ does not name a type 17 | uint8_t base_vhi; | ^~~ src/include/gdt.h:19:39: error: expected ‘)’ before ‘base’ 19 | SegmentDescriptor(uint32_t base, uint32_t limit, uint8_t type); | ~ ^~~~~ | ) src/include/gdt.h:20:13: error: ‘uint32_t’ does not name a type 20 | uint32_t Base(); | ^~~~ src/include/gdt.h:21:13: error: ‘uint32_t’ does not name a type 21 | uint32_t Limit(); | ^~~~ src/include/gdt.h:34:11: error: ‘uint16_t’ does not name a type 34 | uint16_t CodeSegmentSelector(); | ^~~~ src/include/gdt.h:35:11: error: ‘uint16_t’ does not name a type 35 | uint16_t DataSegmentSelector(); | ^~~~ src/gdt.cpp: In constructor ‘GlobalDescriptorTable::GlobalDescriptorTable()’: src/gdt.cpp:7:40: error: no matching function for call to ‘GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(int, int, int)’ 7 | dataSegmentSelector(0,6410241024,0x92) | ^ In file included from src/gdt.cpp:1: src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor()’ 9 | class SegmentDescriptor | ^~~~~ src/include/gdt.h:9:15: note: candidate expects 0 arguments, 3 provided src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(const GlobalDescriptorTable::SegmentDescriptor&)’ src/include/gdt.h:9:15: note: candidate expects 1 argument, 3 provided src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(GlobalDescriptorTable::SegmentDescriptor&&)’ src/include/gdt.h:9:15: note: candidate expects 1 argument, 3 provided src/gdt.cpp:7:40: error: no matching function for call to ‘GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(int, int, int)’ 7 | dataSegmentSelector(0,6410241024,0x92) | ^ In file included from src/gdt.cpp:1: src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor()’ 9 | class SegmentDescriptor | ^~~~~ src/include/gdt.h:9:15: note: candidate expects 0 arguments, 3 provided src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(const GlobalDescriptorTable::SegmentDescriptor&)’ src/include/gdt.h:9:15: note: candidate expects 1 argument, 3 provided src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(GlobalDescriptorTable::SegmentDescriptor&&)’ src/include/gdt.h:9:15: note: candidate expects 1 argument, 3 provided src/gdt.cpp:7:40: error: no matching function for call to ‘GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(int, int, int)’ 7 | dataSegmentSelector(0,6410241024,0x92) | ^ In file included from src/gdt.cpp:1: src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor()’ 9 | class SegmentDescriptor | ^~~~~ src/include/gdt.h:9:15: note: candidate expects 0 arguments, 3 provided src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(const GlobalDescriptorTable::SegmentDescriptor&)’ src/include/gdt.h:9:15: note: candidate expects 1 argument, 3 provided src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(GlobalDescriptorTable::SegmentDescriptor&&)’ src/include/gdt.h:9:15: note: candidate expects 1 argument, 3 provided src/gdt.cpp:7:40: error: no matching function for call to ‘GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(int, int, int)’ 7 | dataSegmentSelector(0,6410241024,0x92) | ^ In file included from src/gdt.cpp:1: src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor()’ 9 | class SegmentDescriptor | ^~~~~ src/include/gdt.h:9:15: note: candidate expects 0 arguments, 3 provided src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(const GlobalDescriptorTable::SegmentDescriptor&)’ src/include/gdt.h:9:15: note: candidate expects 1 argument, 3 provided src/include/gdt.h:9:15: note: candidate: ‘constexpr GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(GlobalDescriptorTable::SegmentDescriptor&&)’ src/include/gdt.h:9:15: note: candidate expects 1 argument, 3 provided src/gdt.cpp:9:3: error: ‘uint32_t’ was not declared in this scope 9 | uint32_t i[2]; | ^~~~ src/gdt.cpp:10:3: error: ‘i’ was not declared in this scope 10 | i[1] = (uint32_t)this; | ^ src/gdt.cpp:13:37: error: ‘uint8_t’ was not declared in this scope 13 | asm volatile("lgdt (%0)": :"p" (((uint8_t ) i)+2)); | ^~~ src/gdt.cpp:13:46: error: expected primary-expression before ‘)’ token 13 | asm volatile("lgdt (%0)": :"p" (((uint8_t ) i)+2)); | ^ src/gdt.cpp:13:47: error: expected ‘)’ before ‘i’ 13 | asm volatile("lgdt (%0)": :"p" (((uint8_t ) i)+2)); | ~ ^~ | ) src/gdt.cpp:13:54: error: expected ‘)’ before ‘;’ token 13 | asm volatile("lgdt (%0)": :"p" (((uint8_t ) i)+2)); | ~ ^ | ) src/gdt.cpp:13:54: error: expected ‘)’ before ‘;’ token 13 | asm volatile("lgdt (%0)": :"p" (((uint8_t *) i)+2)); | ^ | ) src/gdt.cpp: At global scope: src/gdt.cpp:20:1: error: ‘uint16_t’ does not name a type 20 | uint16_t GlobalDescriptorTable::DataSegmentSelector(){ | ^~~~ src/gdt.cpp:24:1: error: ‘uint16_t’ does not name a type 24 | uint16_t GlobalDescriptorTable::CodeSegmentSelector(){ | ^~~~ src/gdt.cpp:28:60: error: expected constructor, destructor, or type conversion before ‘(’ token 28 | GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(uint32_t base, uint32_t limit,uint8_t flags){ | ^ src/gdt.cpp:51:1: error: ‘uint32_t’ does not name a type 51 | uint32_t GlobalDescriptorTable::SegmentDescriptor::Base(){ | ^~~~ src/gdt.cpp:61:1: error: ‘uint32_t’ does not name a type 61 | uint32_t GlobalDescriptorTable::SegmentDescriptor::Limit(){ | ^~~~ src/gdt.cpp:73:1: error: ‘uint32_t’ does not name a type 73 | uint32_t __stack_chk_fail_local(){ | ^~~~ [3/3] gcc -m32 -Iinclude -fno-use-cxa-atexit -nostdlib -fno-builtin -fno-rtti -fno...f=snprintf -D_WIN32_WINNT=0x0501 -D_MSC_VER=1600 -o bin/kernel.o -c src/kernel.cpp ninja: build stopped: subcommand failed.