I am not sure where this issue originates, but I cannot reproduce this locally in mock or copr, and I am instructed that this might be an issue on the `gcc-gfortran` side. If not please redirect it. I have linked to an example koji build [1] that demonstrates the issue. Basically running `cmake` fails at its built-in fortran test compilation. The relevant issue might be: ``` [4/4] : && /usr/bin/f95 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,--dependency-file,CMakeFiles/cmTC_38ce7.dir/link.d -O2 -g -march=x86-64-v4 -I/usr/lib/gfortran/modules CMakeFiles/cmTC_38ce7.dir/testFortranCompiler.f.o -o cmTC_38ce7 && : FAILED: cmTC_38ce7 : && /usr/bin/f95 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,--dependency-file,CMakeFiles/cmTC_38ce7.dir/link.d -O2 -g -march=x86-64-v4 -I/usr/lib/gfortran/modules CMakeFiles/cmTC_38ce7.dir/testFortranCompiler.f.o -o cmTC_38ce7 && : /usr/bin/ld: CMakeFiles/cmTC_38ce7.dir/testFortranCompiler.f.o: relocation R_X86_64_32S against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: failed to set dynamic section sizes: bad value collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. ``` with the relevant part being: `recompile with -fPIE` [1] https://koji.fedoraproject.org/koji/buildinfo?buildID=2211320 Reproducible: Always Steps to Reproduce: Koji build of `python-scikit-build-0.17.6` on `rawhide`
Possible near-duplicate of bug 2167430? In the sense that we need to add another stanza, this time for Fortran?
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle. Changing version to 39.