Skip to content

Fedora 44+ build fixes: cmake4 macros and ppc64le asm#46

Open
kdudka wants to merge 3 commits into
mainfrom
cmake4
Open

Fedora 44+ build fixes: cmake4 macros and ppc64le asm#46
kdudka wants to merge 3 commits into
mainfrom
cmake4

Conversation

@kdudka

@kdudka kdudka commented Jun 19, 2026

Copy link
Copy Markdown
Member

Summary

  • Update make-srpm.sh to use %cmake macros instead of %cmake3 (and corresponding %cmake_build, %ctest, %cmake_install), and change BuildRequires: cmake3 to cmake, following the Fedora CMake 4.0 change
  • Remove the now-unnecessary %undefine __cmake3_in_source_build
  • Fix ppc64le inline asm syntax ($0x7F0x7F, mrli) rejected by newer binutils on Fedora 44+:
    /usr/bin/ld.bfd: error: read-only segment has dynamic relocations
    
  • Temporarily disable Coverity CI on the main branch since the Coverity Scan service has been down

Test plan

  • Verify the SRPM builds successfully with the updated cmake macros
  • Confirm the ppc64le build no longer fails with dynamic relocation errors
  • Confirm CI passes on the branch (excluding Coverity)

@kdudka kdudka self-assigned this Jun 19, 2026
@kdudka kdudka requested a review from sfowl June 19, 2026 07:11
@kdudka

kdudka commented Jun 19, 2026

Copy link
Copy Markdown
Member Author

/packit rebuild-failed

kdudka and others added 3 commits June 19, 2026 15:39
The `$0x7F` immediate prefix is x86 AT&T syntax, not valid PowerPC.
Newer binutils on Fedora 44+ treats it as a symbol reference, causing
a relocation in .text that the linker rejects for a shared object:
```
/usr/bin/ld.bfd: error: read-only segment has dynamic relocations
```

Also fix `mr %%r0, 1` (move register, expects two registers) to
`li %%r0, 1` (load immediate), matching the existing `li` usage
for the `execve` syscall number on the same code path.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
It seems that %cmake3 macros are no long provided in
rawhide, nor is there a `Provides: cmake3`.

https://fedoraproject.org/wiki/Changes/CMake4.0
The service has been down for quite some time now causing the CI to fail:
```
curl https://scan.coverity.com/download/other/linux64 \
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100    59    0     0  100    59      0    378 --:--:-- --:--:-- --:--:--   378
100  1608    0  1549  100    59   7470    284 --:--:-- --:--:-- --:--:--  7730
Error: Unable to process file command 'output' successfully.
Error: Invalid format '  <head>'
```
@kdudka kdudka changed the title make-srpm.sh: update cmake macros and deps for cmake4 Fedora 44+ build fixes: cmake4 macros and ppc64le asm Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants