Skip to content
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

[C++] Does not build on RISC-V natively #32706

Closed
asfimport opened this issue Aug 16, 2022 · 4 comments
Closed

[C++] Does not build on RISC-V natively #32706

asfimport opened this issue Aug 16, 2022 · 4 comments
Assignees
Milestone

Comments

@asfimport
Copy link
Collaborator

In SetupCxxFlags.cmake, CMAKE_SYSTEM_PROCESSOR is not recognized and thus ARROW_CPU_FLAG is set to "x86". Which makes compilation to fail later with:


In file included from /build/arrow/src/apache-arrow-8.0.1/cpp/src/arrow/array/validate.cc:33:
In file included from /build/arrow/src/apache-arrow-8.0.1/cpp/src/arrow/util/utf8.h:32:
In file included from /build/arrow/src/apache-arrow-8.0.1/cpp/src/arrow/util/simd.h:37:
/usr/lib/clang/14.0.6/include/nmmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
^

Environment: Arch Linux riscv64
Reporter: Felix Yan
Assignee: Yibo Cai / @cyb70289

PRs and other links:

Note: This issue was originally created as ARROW-17440. Please see the migration documentation for further details.

@asfimport
Copy link
Collaborator Author

Antoine Pitrou / @pitrou:
Can you try again with 9.0.0?

@asfimport
Copy link
Collaborator Author

Antoine Pitrou / @pitrou:
Also cc @cyb70289

@asfimport
Copy link
Collaborator Author

Felix Yan:
I have tried with current master (10.0.0) and it fails earlier in cmake:


-- System processor: riscv64
-- Arrow build warning level: PRODUCTION
CMake Error at cmake_modules/SetupCxxFlags.cmake:457 (message):
  SSE4.2 required but compiler doesn't support it.
Call Stack (most recent call first):
  CMakeLists.txt:494 (include)


-- Configuring incomplete, errors occurred!

The linked PR fixes this.

@asfimport
Copy link
Collaborator Author

Antoine Pitrou / @pitrou:
Issue resolved by pull request 13902
#13902

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants