Describe the bug
During build of catch for Fedora/RISC-V we have build failure each time:
RPM build errors:
error: Empty %files file /builddir/build/BUILD/catch-3.13.0-build/Catch2-3.13.0/debugsourcefiles.list
Empty %files file /builddir/build/BUILD/catch-3.13.0-build/Catch2-3.13.0/debugsourcefiles.list
We disabled generation of those files and moved on.
Package builds fine for the rest of Fedora architectures (x86-64, aarch64, ppc64le, s390x) because they have LTO enabled and RISC-V builds have LTO disabled due to low memory builders.
I gave build log and source to the Claude agent and got "if we drop -ffile-prefix-map then it will build". And it does.
I understand that this flag was added to keep builds reproducible, but I think that even with it removed, each rebuild of Fedora package will have exactly same directory used for sources.
Expected behavior
Package builds fine.
Reproduction steps
Steps to reproduce the bug.
Platform information:
- OS: Fedora Linux (since F41)
- Compiler+version: GCC (15.2.1 or above, no info for older versions)
- Catch version: 3.7.1 or above (we did not built older versions)
Additional context
https://src.fedoraproject.org/rpms/catch/pull-request/7 is PR for Fedora package
Describe the bug
During build of
catchfor Fedora/RISC-V we have build failure each time:We disabled generation of those files and moved on.
Package builds fine for the rest of Fedora architectures (x86-64, aarch64, ppc64le, s390x) because they have LTO enabled and RISC-V builds have LTO disabled due to low memory builders.
I gave build log and source to the Claude agent and got "if we drop -ffile-prefix-map then it will build". And it does.
I understand that this flag was added to keep builds reproducible, but I think that even with it removed, each rebuild of Fedora package will have exactly same directory used for sources.
Expected behavior
Package builds fine.
Reproduction steps
Steps to reproduce the bug.
Platform information:
Additional context
https://src.fedoraproject.org/rpms/catch/pull-request/7 is PR for Fedora package