Bug 490365

Summary: compilation error during elaboration phase
Product: [Fedora] Fedora Reporter: Jaroslaw Gorny <jaroslaw.gorny>
Component: ghdlAssignee: Thomas Sailer <fedora>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-15 21:26:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jaroslaw Gorny 2009-03-15 19:01:37 UTC
Description of problem:

Trying to elaborate module fails because linker can't find gnat-4.3 library. Rawhide has gnat-4.4, according to debug info (quoted below) ghdl was compiled with version 4.4.

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

ghdl-0.27-0.110svn.3.fc11.1.i586


How reproducible:

always


Steps to Reproduce:
1. Analyse module (ghdl -a TB.vhdl) <- this works OK
2. Elaborate module (ghdl -e TB) <- this crashes

  
Actual results:
Elaborating design is not possible.


Expected results:
Elaborating design (ghdl -e <unit_name>) should work.

Additional info:

[jaroslav@moonstone foo]$ ghdl -e TB_inverter
/usr/bin/ld: cannot find -lgnat-4.3
collect2: ld returned 1 exit status
ghdl: compilation error

******************** GHDL Bug occured ****************************
Please report this bug on http://gna.org/projects/ghdl
GHDL release: GHDL 0.28dev (20080721) [Sokcho edition]
Compiled with GNAT Version: 4.4.0 20090219 (Red Hat 4.4.0-0.
In directory: /tmp/foo/
Command line:
ghdl -e TB_inverter
Exception STORAGE_ERROR raised
Exception information:
Exception name: STORAGE_ERROR
Message: stack overflow (or erroneous memory access)
Call stack traceback locations:
0x80feb7b
******************************************************************

Comment 1 Thomas Sailer 2009-03-15 21:26:44 UTC
Thanks for the report. Fixed in ghdl-0.27-0.110svn.4.fc11
http://koji.fedoraproject.org/koji/taskinfo?taskID=1242516

Alternatively, you can edit /usr/lib*/gcc/x86_64-fedora_ghdl-linux/4.3.1/vhdl/lib/grt.lst and replace gnat-4.3 with gnat-4.4