#1134441 ghdl: Fail to build on powerpc

Package:
src:ghdl
Source:
src:ghdl
Submitter:
Petter Reinholdtsen
Date:
2026-05-13 02:47:34 UTC
Severity:
normal
Tags:
#1134441#5
Date:
2026-04-20 06:52:10 UTC
From:
To:
The new upstream source fail to autobuild on ppc64el and ppc64, which block the
package from migrating to testing.  I have done test builds on both
ppc64el and ppc64, and on both these the self testing fail as seen in
<URL: https://buildd.debian.org/status/fetch.php?pkg=ghdl&arch=ppc64el&ver=5.1.1%2Bdfsg-2&stamp=1776598438&raw=0 > and
<URL: https://buildd.debian.org/status/fetch.php?pkg=ghdl&arch=ppc64&ver=5.1.1%2Bdfsg-2&stamp=1776600339&raw=0 >,
with a "error: bound check failure at" for various VHDL source
locations.

This make me suspect the issue is with any non-x86 and non-arm
architecture.  I notice Ubuntu changed the Architecture list in
debian/control to any for the previous version, and according to
<URL: https://launchpad.net/ubuntu/+source/ghdl/5.0.1+dfsg-1ubuntu1 > it
built on amd64, arm64, armhf, ppc64el and s390x but not riscv64.  Ubuntu
have not yet tried to build the 5.1.1 release.

I had a look at the source to see if I could track down the problem, but
have no idea where to start and do not know the programming language of
a lot of the code, so it is going to take more time than I have
available to spend on ghdl, so waiting for me to fix it is not going to
solve the problem.

I suggest to drop ppc64el and ppc64 binary packages from unstable until
someone have time to port ghdl to powerpc architectures again, to allow
the package to migrate to testing once other issues are fixed.

#1134441#10
Date:
2026-05-02 10:17:41 UTC
From:
To:
I tested a ppc64el build of boh 5.1.1 and 6.0.0 and both fail the self
testing, so I passed the issue upstream.

These are the failures I got using 6.0.0:

gna issue2540: failed
analyze ent.vhdl
elaborate and simulate test1
./test1:error: bound check failure at ../../src/ieee2008/math_real-body.vhdl:777
  instance:
./test1:error: error during elaboration


gna issue2620: failed
analyze casetb.vhdl
elaborate and simulate case_questionmark_tb --assert-level=error
./case_questionmark_tb:error: bound check failure at ../../src/ieee2008/math_real-body.vhdl:777
  instance:
./case_questionmark_tb:error: error during elaboration


gna issue1924: failed
analyze fixed_pkg.vhdl float32_pkg.vhdl test_float_to_sfixed.vhdl
elaborate and simulate test_float_to_sfixed
test_float_to_sfixed.vhdl:25:9:@0ms:(report note): s  : 0.00000000.00000000000000000000000 -> 0.0
test_float_to_sfixed.vhdl:29:9:@0ms:(report note): sf : 0000.00
test_float_to_sfixed.vhdl:30:9:@0ms:(report note):
./test_float_to_sfixed:error: bound check failure at ../../src/ieee2008/float_generic_pkg-body.vhdl:3602
  instance: .test_float_to_sfixed(rtl).P0
./test_float_to_sfixed:error: simulation failed


gna issue3079: failed
analyze a.vhdl
elaborate and simulate a
./a:error: bound check failure at ../../src/ieee2008/math_real-body.vhdl:777
  instance:
./a:error: error during elaboration


gna issue339: failed
analyze test_pkg.vhdl test_bench.vhdl
elaborate test_bench
simulate test_bench --stop-time=700ns --wave=w.ghw ( test_bench --stop-time=700ns --wave=w.ghw)
../../src/ieee2008/fixed_generic_pkg-body.vhdl:2640:7:@0ms:(assertion warning): :ieee:fixed_generic_pkg:TO_SFIXED(REAL): vector t
runcated
./test_bench:error: bound check failure at ../../src/ieee2008/fixed_generic_pkg-body.vhdl:3121
  instance: .test_bench(bench).write_result
./test_bench:error: simulation failed


gna issue1389: failed
analyze mwe.vhdl
elaborate and simulate mwe
./mwe:error: bound check failure at ../../src/ieee/math_real-body.vhdl:777
  instance: .mwe(a).P0
./mwe:error: error during elaboration


gna test failed (issue2540 issue2620 issue1924 issue3079 issue339 issue1389 )
make[1]: *** [debian/rules:213: /home/pere/ghdl-salsa/builddir/stamps/test-llvm] Error 1

#1134441#17
Date:
2026-05-03 17:13:18 UTC
From:
To:
I've requested the removal of the powerpc binaries from the Debian
archive in <URL: https://bugs.debian.org/1135623 >.