On 03/11/2015 09:10 PM, Tristan Gingold wrote:
In fact, this is not necessary anymore. Cf README: you just need to
run configure in ghdl, then make copy-sources, and finally
configure and build gcc.
Thanks Tristan. I haven't found make copy-sources being mentioned in
README - maybe this could be added? Anyway, the "new" style build method
is more comfortable...
Should I simply remove dist.sh ?
Yes please. Either that, or fix it. It IMO makes no sense to keep broken
scripts...
Another issue. I'm trying to compile ghdl with gcc/gnat 5.0.0. I succeed
getting ghdl1 compiled, but then compiling standard aborts with an
exception. It doesn't matter whether I use the llvm or gcc backend...
$ ghdl1-llvm --std=93 -quiet -g -c -o
lib64/ghdl/llvm/v93/std/std_standard.o --compile-standard
******************** GHDL Bug occured ****************************
Please report this bug on http://gna.org/projects/ghdl
GHDL release: GHDL 0.33dev (20141104) [Dunoon edition]
Compiled with GNAT Version: 5.0.0 20150226 (Red Hat 5.0.0-0.
In directory: .
Command line:
ghdl1-llvm --std=93 -quiet -g -c -o
lib64/ghdl/llvm/v93/std/std_standard.o --compile-standard
Exception CONSTRAINT_ERROR raised
Exception information:
Exception name: CONSTRAINT_ERROR
Message: evaluation.adb:2568 overflow check failed
Call stack traceback locations:
0x4f0b43 0x51ecc6 0x5326c4 0x5a2bb9 0x5a315a 0x5a4c53 0x5a5262 0x5a5cfe
0x5910de 0x569eff 0x5bbd5d 0x47b398 0x436196 0x39e682083e 0x435647
0xfffffffffffffffe
******************************************************************
Catchpoint 1, CONSTRAINT_ERROR at 0x00000000004f0b45 in
evaluation.eval_discrete_range_length (constraint=385)
at src/vhdl/evaluation.adb:2568
2568 Res := Right - Left + 1;
(gdb) p Right
$1 = 9223372036854775807
(gdb) p Left
$2 = -9223372036854775808
(gdb) bt
#0 <__gnat_debug_raise_exception> (e=0x1491bc0 <constraint_error>)
at s-excdeb.adb:43
#1 0x00007ffff77f3963 in ada.exceptions.complete_occurrence (
x=x@entry=0x154b9f0) at a-except.adb:932
#2 0x00007ffff77f396e in ada.exceptions.complete_and_propagate_occurrence (
x=x@entry=0x154b9f0) at a-except.adb:941
#3 0x00007ffff77f3d90 in ada.exceptions.raise_with_location_and_msg (
e=0x1491bc0 <constraint_error>, f=(system.address) 0xf74f84, l=2568,
c=c@entry=0, m=m@entry=(system.address) 0x7ffff7976ab0)
at a-except.adb:1167
#4 0x00007ffff77f3952 in <__gnat_raise_constraint_error_msg> (
file=<optimized out>, line=<optimized out>, column=column@entry=0,
msg=msg@entry=(system.address) 0x7ffff7976ab0) at a-except.adb:898
#5 0x00007ffff77f3edc in <__gnat_rcheck_CE_Overflow_Check> (
file=<optimized out>, line=<optimized out>) at a-except.adb:1277
#6 0x00000000004f0b45 in evaluation.eval_discrete_range_length (
constraint=385)
at src/vhdl/evaluation.adb:2568
#7 0x000000000051ecc8 in trans.chap7.translate_static_range_length
(expr=385)
at src/vhdl/translate/trans-chap7.adb:590
#8 0x00000000005326c6 in trans.chap7.translate_static_range (arange=385,
range_type=3)
at src/vhdl/translate/trans-chap7.adb:4369
#9 0x00000000005a2bbb in trans.chap3.create_static_scalar_type_range
(def=382)
at src/vhdl/translate/trans-chap3.adb:1568
#10 0x00000000005a315c in
trans.chap3.create_static_type_definition_type_range
(def=382)
at src/vhdl/translate/trans-chap3.adb:1608
#11 0x00000000005a4c55 in trans.chap3.create_type_range_var (def=382)
at src/vhdl/translate/trans-chap3.adb:1929
#12 0x00000000005a5264 in trans.chap3.translate_type_definition (def=382,
with_vars=true)
at src/vhdl/translate/trans-chap3.adb:2051
#13 0x00000000005a5d00 in trans.chap3.translate_named_type_definition (
def=382, id=440)
at src/vhdl/translate/trans-chap3.adb:2259
#14 0x00000000005910e0 in trans.chap4.translate_subtype_declaration
(decl=386)
at src/vhdl/translate/trans-chap4.adb:1388
#15 0x0000000000569f01 in translation.translate_standard (main=true)
at src/vhdl/translate/translation.adb:1912
#16 0x00000000005bbd5f in ortho_front.parse (filename=...)
at src/vhdl/translate/ortho_front.adb:340
#17 0x000000000047b39a in ortho_code_main ()
at src/ortho/llvm/ortho_code_main.adb:269
(gdb) call disp_tree.disp_tree(Expr,False)
range_expression [385]
location: *std_standard*:1:1
expr_staticness: local
direction: to
left_limit: integer_literal [384]
location: *std_standard*:1:1
value: -9223372036854775808
expr_staticness: local
literal_origin: *null*
type: integer_type_definition [3]
right_limit: integer_literal [383]
location: *std_standard*:1:1
value: 9223372036854775807
expr_staticness: local
literal_origin: *null*
type: integer_type_definition [3]
range_origin: *null*
type: integer_type_definition [3]
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss