You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build this package from source code for Arch Linux RISC-V port. But I encountered errors like unrecognized command-line option '-msse'. This problem isn't disappeared when I changed BUILD_SSE from ON to OFF. After searching the commit that introduced BUILD_SSE, I found that the commit 3410625 didn't completely resolve the problem. Even when -DBUILD_SSE=OFF is presented to cmake, it seems like src/avtk/CMakeLists.txt still inserts -msse -msse2 -mfpmath=sse into CMAKE_CXX_FLAGS.
Please provide additional checks for other architectures in src/avtk/CMakeLists.txt to fix this issue.
Thanks for reporting. I don't have a RISC-V board/port to test on unfortunately, so its a little awkward to know what flags should be passed to the RISC-V compiler for SIMD support.
If you have the time would you propose the C_FLAGS to use, or even better, file a PR which makes the code changes required?
Standard Extension for Packed-SIMD Instructions is still open as for now. So, I think -DBUILD_SSE=OFF should be able to turn off all SIMD flags as we don't have available SIMD instructions currently for rv64gc arch.
Hi, as a new architecture, I would encourage the use of Meson build system instead of CMake. I'm actively moving all OpenAV projects to Meson for a while now - CMake is awkward and Meson is better in many ways.
Aside from that, current master branch seems to work as you describe, but use BUILD_SSE=0 not OFF.
The below commands do not show -msse compiler-flags here.
mkdir build
cd build
cmake .. -DBUILD_SSE=0
make VERBOSE=1
I'm trying to build this package from source code for Arch Linux RISC-V port. But I encountered errors like
unrecognized command-line option '-msse'
. This problem isn't disappeared when I changedBUILD_SSE
fromON
toOFF
. After searching the commit that introducedBUILD_SSE
, I found that the commit 3410625 didn't completely resolve the problem. Even when-DBUILD_SSE=OFF
is presented to cmake, it seems like src/avtk/CMakeLists.txt still inserts-msse -msse2 -mfpmath=sse
into CMAKE_CXX_FLAGS.Please provide additional checks for other architectures in src/avtk/CMakeLists.txt to fix this issue.
openAV-ArtyFX/src/avtk/CMakeLists.txt
Lines 57 to 63 in 9b147f2
The text was updated successfully, but these errors were encountered: