fgsoftware1 / piriquitOS

fgOS is a simple operating system
MIT License
2 stars 1 forks source link

kernel #93

Closed fgsoftware1 closed 2 years ago

fgsoftware1 commented 2 years ago

FAILED: build/bin/kernel.o g++ -c -I ./src/kernel/include -std=c++11 -ffreestanding -fno-exceptions -fno-rtti -fpermissive src/kernel/kernel.cpp -o build/bin/kernel.o In file included from src/kernel/include/stl/vector.hpp:5, from src/kernel/include/disks.hpp:7, from src/kernel/kernel.cpp:5: ./src/kernel/include/stl/algorithms.hpp:7:9: error: redefinition of ‘class std::array<T, N>’ 7 | class array | ^~~~~ In file included from src/kernel/include/disks.hpp:6, from src/kernel/kernel.cpp:5: src/kernel/include/stl/array.hpp:7:9: note: previous definition of ‘class std::array<T, N>’ 7 | class array | ^~~~~ In file included from src/kernel/include/stl/vector.hpp:5, from src/kernel/include/disks.hpp:7, from src/kernel/kernel.cpp:5: ./src/kernel/include/stl/algorithms.hpp:55:9: error: redefinition of ‘class std::unique_heap_array’ 55 | class unique_heap_array | ^~~~~ In file included from src/kernel/include/disks.hpp:6, from src/kernel/kernel.cpp:5: src/kernel/include/stl/array.hpp:55:9: note: previous definition of ‘class std::unique_heap_array’ 55 | class unique_heap_array | ^~~~~ In file included from src/kernel/include/disks.hpp:7, from src/kernel/kernel.cpp:5: src/kernel/include/stl/vector.hpp: In member function ‘void std::vector::push_back(const value_type&)’: src/kernel/include/stl/vector.hpp:102:22: error: ‘move_n’ is not a member of ‘std’ 102 | std::move_n(new_data, data, _size); | ^~ In file included from src/kernel/include/disks.hpp:8, from src/kernel/kernel.cpp:5: src/kernel/include/stl/string.hpp: In constructor ‘std::basic_string::basic_string(const CharT*)’: src/kernel/include/stl/string.hpp:33:18: error: ‘copy_n’ is not a member of ‘std’ 33 | std::copy_n(_data, s, _capacity); | ^~ src/kernel/include/stl/string.hpp: In copy constructor ‘std::basic_string::basic_string(const std::basic_string&)’: src/kernel/include/stl/string.hpp:43:18: error: ‘copy_n’ is not a member of ‘std’ 43 | std::copy_n(_data, rhs._data, _size + 1); | ^~ src/kernel/include/stl/string.hpp: In member function ‘std::basic_string& std::basic_string::operator=(const std::basic_string&)’: src/kernel/include/stl/string.hpp:62:22: error: ‘copy_n’ is not a member of ‘std’ 62 | std::copy_n(_data, rhs._data, _size + 1); | ^~ src/kernel/include/stl/string.hpp: In member function ‘std::basic_string& std::basic_string::operator+=(CharT)’: src/kernel/include/stl/string.hpp:130:26: error: ‘copy_n’ is not a member of ‘std’ 130 | std::copy_n(new_data, _data, _size); | ^~ src/kernel/kernel.cpp: In function ‘void kernel_main()’: src/kernel/kernel.cpp:19:20: error: ‘install_idt’ is not a member of ‘interrupt’ 19 | interrupt::install_idt(); | ^~~ src/kernel/kernel.cpp:20:20: error: ‘install_isrs’ is not a member of ‘interrupt’ 20 | interrupt::install_isrs(); | ^~~~ src/kernel/kernel.cpp:21:20: error: ‘remap_irqs’ is not a member of ‘interrupt’ 21 | interrupt::remap_irqs(); | ^~~~~~ src/kernel/kernel.cpp:22:20: error: ‘install_irqs’ is not a member of ‘interrupt’ 22 | interrupt::install_irqs(); | ^~~~ src/kernel/kernel.cpp:23:20: error: ‘enable_interrupts’ is not a member of ‘interrupt’ 23 | interrupt::enable_interrupts(); | ^~~~~ src/kernel/kernel.cpp:31:9: error: ‘keyboard’ has not been declared 31 | keyboard::install_driver(); | ^~~~