Bug 1829169 - GHDL tries to link against libgnat-9 but should instead link against libgnat-10
Summary: GHDL tries to link against libgnat-9 but should instead link against libgnat-10
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ghdl
Version: 32
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Thomas Sailer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-29 06:00 UTC by Michael Neuling
Modified: 2020-07-03 01:18 UTC (History)
8 users (show)

Fixed In Version: ghdl-0.38~dev-3.20200428gitad4e2f3.fc32
Clone Of:
Environment:
Last Closed: 2020-07-03 01:18:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michael Neuling 2020-04-29 06:00:23 UTC
Description of problem:
GHDL is linking against the wrong version of libgnat.

Version-Release number of selected component (if applicable):
ghdl-0.37dev-14.20200201git5428d6e.fc32

How reproducible:
Every time

Steps to Reproduce:

cat << EOF > nothing.vhdl
entity nothing is
end nothing;

architecture behave of nothing is
begin
end behave;
EOF

ghdl -a nothing.vhdl 
ghdl -e nothing

Actual results:
/usr/bin/ld: cannot find -lgnat-9
collect2: error: ld returned 1 exit status

Expected results:
No linker errors.

Additional info:
This is an similar to this below bug except f30+gnat9 vs f32+gnat10
https://bugzilla.redhat.com/show_bug.cgi?id=1711767

Comment 1 Matthias Waechter 2020-06-23 00:38:52 UTC
Confirmed for Fedora 32 and Rawhide.

Workaround 1:

$ sudo ln -s libgnat-10.so /usr/lib64/libgnat-9.so

Workaround 2:
$ sudo sed -ie 's/^-lgnat-9$/-lgnat-10/g' /usr/lib/ghdl/grt.lst

The bug can be seen and fixed easily at https://src.fedoraproject.org/rpms/ghdl/blob/master/f/ghdl.spec#_439

Comment 2 Matthias Waechter 2020-06-23 13:30:45 UTC
See https://src.fedoraproject.org/rpms/ghdl/pull-request/1 for master (Rawhide) and https://src.fedoraproject.org/rpms/ghdl/pull-request/2 for f32 (Fedora 32) backport.

Comment 3 Matthias Waechter 2020-06-24 04:42:27 UTC
Dan, would you mind to take a look at this issue? It is ready to rock’n’roll, batteries (pull requests) included for f32 and rawhide.

Comment 4 Dan Horák 2020-06-24 08:47:19 UTC
Sure, will merge the fix. I have to figure out, why I'm not notified about ghdl bugs ...

Comment 5 Fedora Update System 2020-06-24 11:24:38 UTC
FEDORA-2020-8d4badb2a2 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-8d4badb2a2

Comment 6 Fedora Update System 2020-06-25 01:03:33 UTC
FEDORA-2020-8d4badb2a2 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-8d4badb2a2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-8d4badb2a2

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2020-07-03 01:18:07 UTC
FEDORA-2020-8d4badb2a2 has been pushed to the Fedora 32 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.