Hello Simon,

your setup seems to be a bit confusing ...

Your GHDL was compiled with GNAT 5.2.0 and GCC back-end, but the ghdl1 executable is hosted in a GCC 4.9.3. Moreover in an i686 folder (32 bit?).

Many bugfixes have been made since 0.33. Can you compile the latest GHDL 0.34dev from GitHub?

The fastest way it to install GCC, GNAT and LLVM-3.5. Then compile GHDL with llvm back-end. It's faster then GCC and needs not to compile GCC itself.

I have no GCC or LLVM back-ended GHDL at home, but my Windows (mcode back-end) version (0.34dev) reports no errors for your file.

A current LLVM build is also downloadable from https://github.com/Paebbels/ghdl/releases
It was created to test a new deployment process for GHDL. BUT it requires a quite old GCC (4.6 or was it 4.8? - I need to reconfigure the Travis-CI environment to use a newer GCC).

Regards
    Patrick

-----------------------------------
Wissenschaftliche Hilfskraft
Technische Universität Dresden
Fakultät Informatik
Institut für Technische Informatik
Lehrstuhl VLSI-Entwurfssysteme, Diagnostik und Architektur        
01062 Dresden, GERMANY
Tel.:  +49 351 463-38451                                       Fax:  +49 351 463-38324
E-Mail: patrick.lehm...@tu-dresden.de  
WWW:    http://vlsi-eda.inf.tu-dresden.de

-------- Ursprüngliche Nachricht --------
Von: Simon Thijs de Feber
Datum:23.04.2016 20:42 (GMT+01:00)
An: GHDL discuss list
Betreff: [Ghdl-discuss] GHDL Bug occured for unknown reason

Hello All,

I am using GHDL version
GHDL 0.33 (20150921) [Dunoon edition]
 Compiled with GNAT Version: 5.2.0
 GCC back-end code generator


I got this exception for an unknown reason while compiling a sha256 core from opencores.

ghdl -a --ieee=synopsys -fexplicit -v ../../securehash256bits_org/trunk/sha256.vhd
/usr/local/libexec/gcc/i686-slackware-linux/4.9.3/ghdl1 -fexplicit -P/usr/local/lib/gcc/i686-slackware-linux/4.9.3/vhdl//v93/std/ -P/usr/local/lib/gcc/i686-slackware-linux/4.9.3/vhdl//v93/synopsys/ -quiet -o sha256.s ../../securehash256bits_org/trunk/sha256.vhd

******************** GHDL Bug occured ****************************
Please report this bug on http://gna.org/projects/ghdl
GHDL release: GHDL 0.33 (20150921) [Dunoon edition]
Compiled with GNAT Version: 5.2.0
In directory: /home/stdefeber/projects/sandbox/ax_hmac/ghdl/
Command line:
/usr/local/libexec/gcc/i686-slackware-linux/4.9.3/ghdl1 -fexplicit -P/usr/local/lib/gcc/i686-slackware-linux/4.9.3/vhdl//v93/std/ -P/usr/local/lib/gcc/i686-slackware-linux/4.9.3/vhdl//v93/synopsys/ -quiet -o sha256.s ../../securehash256bits_org/trunk/sha256.vhd
Exception TYPES.INTERNAL_ERROR raised
Exception information:
Exception name: TYPES.INTERNAL_ERROR
Message: trans.adb:1516
Call stack traceback locations:
0x82282f5 0x8250165 0x8250733 0x8251e1a 0x8251f5f 0x825264f 0x8213459 0x8208e70 0x8212a5c 0x8214580 0x82115ee 0x8240cff 0x823dcf5 0x823dd42 0x823dd8c 0x823f02a 0x823dcf5 0x823dd42 0x823f02a 0x823dcf5 0x8233879 0x825acc0 0x822a895 0x825ca13 0x81abd4c 0x81864b3 0x856b180 0x856cdfd 0x81abdba 0x8183dba 0xb75ad29e 0x8184268
******************************************************************

Execution terminated by unhandled exception
Exception name: TYPES.INTERNAL_ERROR
Message: trans.adb:1516
Call stack traceback locations:
0x82282f5 0x8250165 0x8250733 0x8251e1a 0x8251f5f 0x825264f 0x8213459 0x8208e70 0x8212a5c 0x8214580 0x82115ee 0x8240cff 0x823dcf5 0x823dd42 0x823dd8c 0x823f02a 0x823dcf5 0x823dd42 0x823f02a 0x823dcf5 0x8233879 0x825acc0 0x822a895 0x825ca13 0x81abd4c 0x81864b3 0x856b180 0x856cdfd 0x81abdba 0x8183dba 0xb75ad29e 0x8184268
ghdl: compilation error

VHDL code is attached.
I changed the code from using std_logic unsigned to numeric_std.
Both version exhibit same error.

best regards

Simon






Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to