Bug 33275 - gcc-14.1.0-1 from Cauldron fails to rebuild in Mageia 9 due to missing adalib
Summary: gcc-14.1.0-1 from Cauldron fails to rebuild in Mageia 9 due to missing adalib
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-07 18:35 CEST by Kristoffer Grundström
Modified: 2024-06-09 22:42 CEST (History)
1 user (show)

See Also:
Source RPM: gcc-14.1.0-1
CVE:
Status comment:


Attachments

Description Kristoffer Grundström 2024-06-07 18:35:53 CEST
Description of problem: I made sure that all the dependencies are installed and got no errors during the installation of them. I then tried to rebuild the src.rpm from Cauldron to Mageia 9 and it fails saying:

+ pushd /home/kristoffer/rpmbuild/BUILDROOT/gcc-14.1.0-1.mga9.x86_64/usr/lib/gcc/x86_64-mageia-linux/14/adalib
/var/tmp/rpm-tmp.da5lsv: line 95: pushd: /home/kristoffer/rpmbuild/BUILDROOT/gcc-14.1.0-1.mga9.x86_64/usr/lib/gcc/x86_64-mageia-linux/14/adalib: No such file or directory

Version-Release number of selected component (if applicable): 14.1.0-1

How reproducible: All the time.

Steps to Reproduce:
1. Download the src.rpm for gcc-14.1.0-1
2. Extract the source files to ~/rpmbuild/SOURCES/ and the gcc.spec to ~/Desktop/
3. Open a terminal window.
4. If your user isn't already added to the wheel group, go ahead and add it and re-login to your Desktop Environment for the change to take affect.
Skip this instruction otherwise.
5. If you're at $USER/Desktop now type sudo urpmi gcc.spec --auto in a terminal window and hit Enter/Return.
6. Now do rpmbuild -ba gcc.spec and hit Enter/Return and wait.
7. The build will reach almost to the end, but fails with saying that adalib is missing.
Kristoffer Grundström 2024-06-07 18:36:58 CEST

CC: (none) => lovaren

Comment 1 sturmvogel 2024-06-09 22:42:15 CEST
The source rpm gcc-14.1.0-1.mga10.src.rpm just rebuilds absolutly flawlessly on Mageia 9. This was verified on a clean MGA9 Virtualbox installation and on the openSUSE Build Service (OBS) infrastructure.

Your issue seems to be caused by not following the guidelines and an unclean building environment.
https://wiki.mageia.org/en/Packaging_for_beginners#Example_A:_Build_an_environment_and_your_first_rpm

Resolution: (none) => INVALID
Status: NEW => RESOLVED


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