Bug 2279868 - xmonad --recompile: gcc needs /usr/lib/rpm/redhat/redhat-annobin-cc1 ?
Summary: xmonad --recompile: gcc needs /usr/lib/rpm/redhat/redhat-annobin-cc1 ?
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ghc-X11
Version: 40
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Ben Boeckel
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-05-09 11:09 UTC by Jens Petersen
Modified: 2024-05-19 01:16 UTC (History)
14 users (show)

Fixed In Version: ghc-X11-1.10.3-7.fc40 ghc-X11-1.10.3-7.fc39 ghc-X11-1.10.3-7.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-05-18 01:13:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jens Petersen 2024-05-09 11:09:18 UTC
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?

Comment 1 Jakub Jelinek 2024-05-09 11:23:17 UTC
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.

Comment 2 Jens Petersen 2024-05-09 13:36:39 UTC
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"

Comment 3 Fedora Update System 2024-05-09 16:57:40 UTC
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

Comment 4 Fedora Update System 2024-05-09 17:17:55 UTC
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

Comment 5 Fedora Update System 2024-05-10 01:50:55 UTC
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.

Comment 6 Fedora Update System 2024-05-10 02:18:42 UTC
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.

Comment 7 Fedora Update System 2024-05-10 05:45:09 UTC
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

Comment 8 Fedora Update System 2024-05-11 03:11:01 UTC
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.

Comment 9 Fedora Update System 2024-05-18 01:13:09 UTC
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.

Comment 10 Fedora Update System 2024-05-18 01:26:17 UTC
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.

Comment 11 Fedora Update System 2024-05-19 01:16:48 UTC
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.


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