Bug 2402550 - retsnoop 0.11 FTBFS on ppc64le
Summary: retsnoop 0.11 FTBFS on ppc64le
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: retsnoop
Version: rawhide
Hardware: ppc64le
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Michel Lind
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PPCTracker
TreeView+ depends on / blocked
 
Reported: 2025-10-08 18:59 UTC by Michel Lind
Modified: 2026-07-22 16:50 UTC (History)
5 users (show)

Fixed In Version: retsnoop-0.11-7.fc45
Clone Of:
Environment:
Last Closed: 2026-07-22 16:50:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Attaching my patch (103 bytes, patch)
2025-10-25 21:31 UTC, Aditi Mishra
no flags Details | Diff

Description Michel Lind 2025-10-08 18:59:40 UTC
retsnoop.bpf.c:182:8: error: no member named 'sp' in 'struct pt_regs'
  182 |                 sp = PT_REGS_SP((struct pt_regs *)ctx);
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.output/include/bpf/bpf_tracing.h:503:43: note: expanded from macro 'PT_REGS_SP'
  503 | #define PT_REGS_SP(x) (__PT_REGS_CAST(x)->__PT_SP_REG)
      |                        ~~~~~~~~~~~~~~~~~  ^
.output/include/bpf/bpf_tracing.h:314:21: note: expanded from macro '__PT_SP_REG'
  314 | #define __PT_SP_REG sp
      |                     ^
1 error generated.
make: *** [Makefile:119: .output/retsnoop.bpf.o] Error 1
make: *** Waiting for unfinished jobs....

Reproducible: Always

Steps to Reproduce:
1. fedpkg clone -a retsnoop
2. cd retsnoop
3. Try a scratch build for ppc64le of 0.11-1
Actual Results:
Fails as above

Expected Results:
Should succeed

Comment 1 Aditi Mishra 2025-10-09 12:25:02 UTC
I'll take look.

Comment 2 Aditi Mishra 2025-10-25 21:31:22 UTC
Created attachment 2110828 [details]
Attaching my patch

The change is in bpf_tracing header file where sp doesn't exist for powerpc arch.

Comment 3 Yaakov Selkowitz 2026-06-26 00:09:13 UTC
Michel, any update on this upstream?

Comment 4 Aditi Mishra 2026-06-26 07:20:54 UTC
hey @yaakov, I created a PR against libbpf, but that time it was already merged in latest build. https://github.com/libbpf/libbpf/pull/931. 
Remaining things I think Michel will know.

Comment 5 Michel Lind 2026-07-22 11:16:09 UTC
Looks like libbpf used by retsnoop needs to be rebased to a newer commit, in the meantime once the Python mini-mass-rebuild currently hogging capacity is over I'll try and apply this patch

Comment 6 Fedora Update System 2026-07-22 14:46:17 UTC
FEDORA-2026-79e2830e5e (retsnoop-0.11-7.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-79e2830e5e

Comment 7 Fedora Update System 2026-07-22 16:50:01 UTC
FEDORA-2026-79e2830e5e (retsnoop-0.11-7.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.