File vdt.changes of Package failed_vdt
Repair report for package: failed_vdt
Location: temp_workspace/failed_vdt
Summary:
- Root cause: The build system enabled SSE compiler flags for all architectures. On riscv64 the compiler rejected the x86-specific -msse flag, causing the build to fail with "c++: error: unrecognized command-line option ‘-msse’".
Exact modifications made (minimal):
1) File: temp_workspace/failed_vdt/vdt.spec
- Context: %build cmake option block that controls SSE compilation.
- Original block (before change):
%build
# Note: Neon is implicitly enabled on aarch64
%cmake \
-DDIAG:BOOL=ON \
-DAVX:BOOL=OFF \
%ifarch aarch64 %{arm} %{ix86}
-DSSE:BOOL=OFF \
%else
-DSSE:BOOL=ON \
%endif
%{nil}
- Modified block (now in vdt.spec):
%build
# Note: Neon is implicitly enabled on aarch64
%cmake \
-DDIAG:BOOL=ON \
-DAVX:BOOL=OFF \
%ifarch i386 i486 i586 i686 x86_64
-DSSE:BOOL=ON \
%else
-DSSE:BOOL=OFF \
%endif
%{nil}
- Reason: Enabling SSE only for x86 architectures prevents -msse from being added on non-x86 targets (such as riscv64), avoiding compiler errors.
Files changed:
- temp_workspace/failed_vdt/vdt.spec (replaced entire file content; only change is the %ifarch conditional around -DSSE)
- temp_workspace/failed_vdt/vdt.changes (this report appended as the file content)
Verification steps to run next:
- Re-run OBS build for project 'home:lalala123:RISCV' repository 'standard' arch 'riscv64' for package 'vdt' (srcmd5 4fc1aef3b9a20a90beb7e6387c404a72). The build should now progress past previous -msse errors. If further architecture-specific compiler flags appear, repeat minimal conditionalization in the spec.
Timestamp: 2025-08-24T00:00:00Z