Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

编译swiftshader出错 #4

Open
hyperiris opened this issue Jan 18, 2023 · 1 comment
Open

编译swiftshader出错 #4

hyperiris opened this issue Jan 18, 2023 · 1 comment

Comments

@hyperiris
Copy link

hyperiris commented Jan 18, 2023

5005 分支

看起来是没有patch third_party/swiftshader/src/Reactor/SubzeroReactor.cpp 这个文件

../../third_party/swiftshader/src/Reactor/SubzeroReactor.cpp:320:3: error: "Unknown architecture"
# error "Unknown architecture"
^
../../third_party/swiftshader/src/Reactor/SubzeroReactor.cpp:311:24: error: no return statement in constexpr function
constexpr static bool detectARM()
^
../../third_party/swiftshader/src/Reactor/SubzeroReactor.cpp:339:16: error: constexpr variable 'emulateMismatchedBitCast' must be initialized by a constant expression
constexpr bool emulateMismatchedBitCast = CPUID::ARM;
^ ~~~~~~~~~~
../../third_party/swiftshader/src/Reactor/SubzeroReactor.cpp:339:43: note: initializer of 'ARM' is unknown
constexpr bool emulateMismatchedBitCast = CPUID::ARM;
^
../../third_party/swiftshader/src/Reactor/SubzeroReactor.cpp:336:23: note: declared here
constexpr bool CPUID::ARM = CPUID::detectARM();
^
../../third_party/swiftshader/src/Reactor/SubzeroReactor.cpp:668:3: error: "Unsupported platform"
# error "Unsupported platform"
^
4 errors generated.

@wjh-la
Copy link
Collaborator

wjh-la commented Feb 14, 2023

swiftshader需要llvm10的代码,目前没有没有开源的loongarch上的llvm10可用,cef的loongarch配置对于swiftshader是不编译的

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants