Bug 1576131

Summary: GHDL tries to link against gnat-7 but should against gnat-8
Product: [Fedora] Fedora Reporter: danselmi
Component: ghdlAssignee: Thomas Sailer <fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: fedora, jirik.svoboda, michael.finn.jorgensen, schulz89
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ghdl-0.35dev-0.20180520git66bb071.0.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-30 14:08:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description danselmi 2018-05-08 23:12:49 UTC
GHDL tries to link against libgnat-7:
$ ghdl -e uut
/usr/bin/ld: cannot find -lgnat-7
collect2: error: ld returned 1 exit status
ghdl:error: compilation error


$ dnf repoquery --requires ghdl | grep gnat
libgnat-8.so()(64bit)


Reproducible: Always

Steps to Reproduce:
0. install ghdl        (dnf install ghdl)
1. analyse a vhdl file (ghdl -a top.vhd)
2. elaborate entity    (ghdl -e top)
Actual Results:  
/usr/bin/ld: cannot find -lgnat-7
collect2: error: ld returned 1 exit status
ghdl:error: compilation error


Expected Results:  
It should build an executable file.

Comment 1 Michael Jørgensen 2018-05-13 11:50:27 UTC
I've run into this same issue.

Comment 2 Jiri Svoboda 2018-05-14 10:26:00 UTC
Same here.

Comment 3 Victor Schulz 2018-05-15 00:10:32 UTC
Same issue here.

As a temporary workaround, I created the following symlink as root:

cd /usr/lib64
ln -s libgnat-8.so libgnat-7.so

The files are compiling fine after this modification.

Comment 4 Fedora Update System 2018-05-21 12:31:24 UTC
ghdl-0.35dev-0.20180520git66bb071.0.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-4c44f7a8e3

Comment 5 Fedora Update System 2018-05-21 17:16:19 UTC
ghdl-0.35dev-0.20180520git66bb071.0.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-4c44f7a8e3

Comment 6 Fedora Update System 2018-05-30 14:08:48 UTC
ghdl-0.35dev-0.20180520git66bb071.0.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.