-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RISC-V cpuinfo build error #4650
Comments
Are you building with some non-standard libc? Usually libc provides the |
I am building with I found it can build pass by removing
Could you tell me which risc-v toolchain you are using? |
@fbarchard Could you tell me which risc-v toolchain you are using? Did you encounter the same issue? |
We're using the GNU cross-toolchain installed with Ubuntu. See our CI config for details. |
@Maratyszcza This error only happens in clang. You can also check it with prebuilt clang toolchain from https://github.com/riscv-collab/riscv-gnu-toolchain/releases/tag/2023.07.07. |
XNNPack already does |
I ran into the same issue on Intel I think, and hacked a solution by doing the syscall in assembly.
which is not the right solution but it works for x64. We use clang 16 or 17 at the moment and syscall will compile in c++ but not c99. |
I am trying to cross-compile xnnpack for risc-v by using
scripts/build-linux-riscv64.sh
with some modification of the toolchain path incmake/riscv64.toolchain
. But I got build error message when compiling cpuinfo:Do you have any suggestions for how to solve this issue?
(Actually in iree project I encountered the same issue but solved it by simply disabling cpuinfo.)
The text was updated successfully, but these errors were encountered: