thomtl / Luna

A Type-1 Hypervisor written in Modern C++

Home Page:https://thomtl.github.io/projects/luna.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error: no matching constructor for initialization of 'amd_vi::DeviceID'

leap0x7b opened this issue · comments

In file included from ../../kernel/source/drivers/iommu/amd/amd_vi.cpp:1:
In file included from ../../kernel/include/Luna/drivers/iommu/amd/amd_vi.hpp:5:
In file included from ../../kernel/include/Luna/cpu/cpu.hpp:6:
In file included from ../../kernel/include/Luna/cpu/threads.hpp:4:
In file included from ../../kernel/include/Luna/cpu/stack.hpp:4:
In file included from ../../kernel/include/Luna/mm/hmm.hpp:4:
In file included from ../../kernel/include/Luna/mm/pmm.hpp:4:
In file included from ../../kernel/include/Luna/misc/stivale2.hpp:6:
../../kernel/include/std/utility.hpp:29:69: error: no matching constructor for initialization of 'amd_vi::DeviceID'
        constexpr pair(U1&& x, U2&& y): first(std::forward<U1>(x)), second(std::forward<U2>(y)) {}
                                                                    ^      ~~~~~~~~~~~~~~~~~~~

Please compile using GCC 10.2.0

I'm using clang

I saw that in the discord, compilation using clang is not supported, please compile using GCC 10.2.0 or GCC 11.2.0