fgsoftware1 / piriquitOS

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

acpi #97

Closed fgsoftware1 closed 2 years ago

fgsoftware1 commented 2 years ago

FAILED: build/bin/acpi.o g++ -c -I ./src/kernel/include -std=c++11 -ffreestanding -fno-exceptions -fno-rtti -fpermissive src/kernel/acpi.cpp -o build/bin/acpi.o In file included from src/kernel/include/stl/string.hpp:6, from src/kernel/include/console.hpp:6, from src/kernel/acpi.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 /usr/include/c++/10/bits/move.h:57, from /usr/include/c++/10/bits/stl_pair.h:59, from /usr/include/c++/10/utility:70, from src/kernel/include/stl/string.hpp:7, from src/kernel/include/console.hpp:6, from src/kernel/acpi.cpp:5: /usr/include/c++/10/type_traits: At global scope: /usr/include/c++/10/type_traits:2182:12: error: redefinition of default argument for ‘class _Tp’ 2182 | struct enable_if | ^~~~~ In file included from src/kernel/include/console.hpp:5, from src/kernel/acpi.cpp:5: src/kernel/include/stl/enable_if.hpp:6:23: note: original definition appeared here 6 | template <bool B, class T = void> | ^~~~~ In file included from /usr/include/c++/10/bits/move.h:57, from /usr/include/c++/10/bits/stl_pair.h:59, from /usr/include/c++/10/utility:70, from src/kernel/include/stl/string.hpp:7, from src/kernel/include/console.hpp:6, from src/kernel/acpi.cpp:5: /usr/include/c++/10/type_traits:2187:12: error: redefinition of ‘struct std::enable_if<true, T>’ 2187 | struct enable_if<true, _Tp> | ^~~~~~~~ In file included from src/kernel/include/console.hpp:5, from src/kernel/acpi.cpp:5: src/kernel/include/stl/enable_if.hpp:12:12: note: previous definition of ‘struct std::enable_if<true, T>’ 12 | struct enable_if<true, T> | ^~~~~~ In file included from src/kernel/include/console.hpp:6, from src/kernel/acpi.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/acpi.cpp: In function ‘unsigned int {anonymous}::check_rsd_ptr(unsigned int)’: src/kernel/acpi.cpp:55:18: error: ‘equal_n’ is not a member of ‘std’ 55 | if (std::equal_n(sig, reinterpret_cast<const char >(rsdp), 8)) | ^~~ src/kernel/acpi.cpp: In function ‘int {anonymous}::check_header(unsigned int, const char)’: src/kernel/acpi.cpp:113:18: error: ‘equal_n’ is not a member of ‘std’ 113 | if (std::equal_n(reinterpret_cast<const char *>(ptr), sig, 4)) | ^~~ src/kernel/acpi.cpp: In function ‘int {anonymous}::init_acpi()’: src/kernel/acpi.cpp:224:38: error: ‘equal_n’ is not a member of ‘std’ 224 | if (std::equal_n(S5Addr, "S5", 4)) | ^~~