I can't create entities with ghdl -e <entity>

Bug #5309 reported by Javier Jardón
16
Affects Status Importance Assigned to Milestone
ghdl (Ubuntu)
Fix Released
Medium
MOTU
Breezy
Invalid
Medium
Unassigned

Bug Description

I get this error:

$ ghdl -e <entity>
/usr/bin/ld: no se puede encontrar -lgnat-3.4
collect2: ld devolvió el estado de salida 1
/usr/lib/ghdl/bin/ghdl: compilation error

I use ubuntu breezy, in hoary it works.

Changed in ghdl:
assignee: nobody → motu
Javier Jardón (jjardon)
Changed in ghdl:
status: Unconfirmed → Confirmed
Revision history for this message
Benjamin Montgomery (bmonty) wrote : does this problem exist in dapper?

I ran the examples from the ghdl website's tutorial and got the correct output. Does this issue still exist for you in dapper?

Changed in ghdl:
status: Confirmed → Needs Info
Revision history for this message
wfjm (w-f-j-mueller) wrote :

Had the same problem with Ubuntu 5.10, while it works fine with Debian Sarge.

Reason: ghdl looks under Ubuntu 5.10 for the ADA runtime in

   ghdl -e -v hello_world
   ....
   -L/usr/lib/gcc/i486-linux/3.4.4/adalib/ -lgnat-3.4

Under Ubuntu gnat-3.4 however installs into

  /usr/lib/gcc/i486-linux-gnu/3.4.5/adalib/

Apparently neither the ADA versions of ghdl and gnat match, nor the install paths for the libs.

I hacked it with

  # mkdir -p /usr/lib/gcc/i486-linux/3.4.4/
  # ln -s /usr/lib/gcc/i486-linux-gnu/3.4.5/adalib adalib

but I'd appreciate of the packages be fixed.

Revision history for this message
wfjm (w-f-j-mueller) wrote :

The Debian maintainer of ghdl, Wesley J. Landaker <email address hidden>, suggested the following work arounds:

1. add softlink as in previous comment

2. Modify /usr/lib/ghdl/lib/gcc/${arch}-linux-gnu/${ver}/vhdl/lib/grt.lst,
which controls what the libraries get linked in to elaborated designs.

3. rebuild from sources.

Javier Jardón (jjardon)
Changed in ghdl:
status: Needs Info → Fix Committed
Revision history for this message
Barry deFreese (bddebian) wrote :

Fixed in Dapper

Changed in ghdl:
status: Fix Committed → Fix Released
Revision history for this message
KarlGoetz (kgoetz) wrote :

If this is fixed in dapper the status can be changed. Please file a new bug if you have problems in Dapper.

Changed in ghdl:
status: Unconfirmed → Fix Committed
Revision history for this message
Javier Jardón (jjardon) wrote :

Work fine for me in Ubuntu Dapper now

Thank you!

Revision history for this message
Richard Brady (brady) wrote :

The bug has not been fixed in Breezy. It has been fixed in Dapper, and is indicated as fixed for Dapper. However, as far as Breezy 5.10 goes, it prevails, and I have therefore marked it as 'confirmed'.

Changed in ghdl:
status: Fix Committed → Confirmed
Revision history for this message
Marco Rodrigues (gothicx) wrote :

Breezy support is over.. Today it's Breezy End Of Life!

Changed in ghdl:
status: Confirmed → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.