While testing a start script fix for xmonad on F40+ I ran into this: ``` Errors detected while compiling xmonad config: /home/petersen/.xmonad/xmonad.hs $ ghc --make xmonad.hs -i -ilib -fforce-recomp -main-is main -v0 -outputdir /home/petersen/.xmonad/build-x86_64-linux -o /home/petersen/.xmonad/xmonad-x86_64-linux gcc: fatal error: cannot read spec file ‘/usr/lib/rpm/redhat/redhat-annobin-cc1’: No such file or directory compilation terminated. ghc-9.4.5: `gcc' failed in phase `Linker'. (Exit code: 1) ``` Reproducible: Always Steps to Reproduce: 1. dnf install xmonad 2. mkdir ~/.xmonad 3. cp /usr/share/xmonad/xmonad.hs ~/.xmonad 4. xmonad --recompile Actual Results: From the description above for the full error dialog output. gcc: fatal error: cannot read spec file ‘/usr/lib/rpm/redhat/redhat-annobin-cc1’: No such file or directory Expected Results: No compilation error Of course one can install redhat-rpm-config to workaround this, but it is not very obvious why/when this is now required?
gcc doesn't add those -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 options, redhat-rpm-config does, and apparently something (ghc?) saved that option to some file and reads it from there and passes to gcc. Don't do that or filter such options out.
Thank you very much for the insight, Jakub. Grepping I found the culprit it seems: /usr/lib64/ghc-9.4.5/lib/package.conf.d/X11-1.10.3.conf: -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 "-Wl,--build-id=sha1"
FEDORA-2024-adad8f6d9c (ghc-X11-1.10.3-7.fc40) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-adad8f6d9c
FEDORA-2024-5359554b28 (ghc-X11-1.10.3-7.fc39) has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-5359554b28
FEDORA-2024-5359554b28 has been pushed to the Fedora 39 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-5359554b28` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-5359554b28 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-adad8f6d9c has been pushed to the Fedora 40 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-adad8f6d9c` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-adad8f6d9c See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-a97379782c (ghc-X11-1.10.3-7.fc38) has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2024-a97379782c
FEDORA-2024-a97379782c has been pushed to the Fedora 38 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-a97379782c` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-a97379782c See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-adad8f6d9c (ghc-X11-1.10.3-7.fc40) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2024-5359554b28 (ghc-X11-1.10.3-7.fc39) has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2024-a97379782c (ghc-X11-1.10.3-7.fc38) has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report.