FTBFB. [GHDL - test] vpi ..Running with 28 test workers. vpi vpi001: failed vpi vpi002: failed vpi vpi004: failed analyze mydesign.vhdl elaborate myentity /usr/bin/x86_64-pc-linux-gnu-gcc /var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/temp/gcc_14/bin/gcc -c vpi1.c -I/var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/work/ghdl-4.1.0/include/ghdl -f PIC vpi1.c: In function ‘my_handle_register’: vpi1.c:56:13: error: assignment to ‘PLI_INT32 (*)(struct t_cb_data *)’ {aka ‘int (*)(struct t_cb_data *)’} from incompatible pointer type ‘void (*)(void)’ [- Wincompatible-pointer-types] 56 | cb.cb_rtn = &vpi_proc; | ^ analyze mydesign.vhdl elaborate myentity /usr/bin/x86_64-pc-linux-gnu-gcc /var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/temp/gcc_14/bin/gcc -c vpi1.c -I/var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/work/ghdl-4.1.0/include/ghdl -fPIC vpi1.c: In function ‘my_handle_register’: vpi1.c:71:13: error: assignment to ‘PLI_INT32 (*)(struct t_cb_data *)’ {aka ‘int (*)(struct t_cb_data *)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types] 71 | cb.cb_rtn = &vpi_proc; | ^ vpi vpi003: failed analyze mydesign.vhdl elaborate myentity /var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/temp/gcc_14/bin/gcc -c vpi1.c -I/var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/work/ghdl-4.1.0/include/ghdl -fPIC vpi1.c: In function ‘my_handle_register’: vpi1.c:46:13: error: assignment to ‘PLI_INT32 (*)(struct t_cb_data *)’ {aka ‘int (*)(struct t_cb_data *)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types] 46 | cb.cb_rtn = &vpi_proc; | ^ analyze mydesign.vhdl elaborate myentity /usr/bin/x86_64-pc-linux-gnu-gcc /var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/temp/gcc_14/bin/gcc -c vpi1.c -I/var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/work/ghdl-4.1.0/include/ghdl -fPIC vpi1.c: In function ‘my_handle_register’: vpi1.c:46:13: error: assignment to ‘PLI_INT32 (*)(struct t_cb_data *)’ {aka ‘int (*)(struct t_cb_data *)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types] 46 | cb.cb_rtn = &vpi_proc; | ^ vpi vpi001: failed analyze mydesign.vhdl elaborate myentity /usr/bin/x86_64-pc-linux-gnu-gcc /var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/temp/gcc_14/bin/gcc -c vpi1.c -I/var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/work/ghdl-4.1.0/include/ghdl -fPIC vpi1.c: In function ‘my_handle_register’: vpi1.c:56:13: error: assignment to ‘PLI_INT32 (*)(struct t_cb_data *)’ {aka ‘int (*)(struct t_cb_data *)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types] 56 | cb.cb_rtn = &vpi_proc; | ^ vpi vpi002: failed analyze mydesign.vhdl elaborate myentity /usr/bin/x86_64-pc-linux-gnu-gcc /var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/temp/gcc_14/bin/gcc -c vpi1.c -I/var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/work/ghdl-4.1.0/include/ghdl -fPIC vpi1.c: In function ‘my_handle_register’: vpi1.c:71:13: error: assignment to ‘PLI_INT32 (*)(struct t_cb_data *)’ {aka ‘int (*)(struct t_cb_data *)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types] 71 | cb.cb_rtn = &vpi_proc; | ^ vpi vpi004: failed analyze mydesign.vhdl elaborate myentity /var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/temp/gcc_14/bin/gcc -c vpi1.c -I/var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/work/ghdl-4.1.0/include/ghdl -fPIC vpi1.c: In function ‘my_handle_register’: vpi1.c:46:13: error: assignment to ‘PLI_INT32 (*)(struct t_cb_data *)’ {aka ‘int (*)(struct t_cb_data *)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types] 46 | cb.cb_rtn = &vpi_proc; | ^ vpi vpi003: failed analyze mydesign.vhdl elaborate myentity /usr/bin/x86_64-pc-linux-gnu-gcc /var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/temp/gcc_14/bin/gcc -c vpi1.c -I/var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/work/ghdl-4.1.0/include/ghdl -fPIC vpi1.c: In function ‘my_handle_register’: vpi1.c:46:13: error: assignment to ‘PLI_INT32 (*)(struct t_cb_data *)’ {aka ‘int (*)(struct t_cb_data *)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types] 46 | cb.cb_rtn = &vpi_proc; | ^ vpi test failed (vpi001 vpi002 vpi004 vpi003 ) make: *** [Makefile:242: test.mcode] Error 1 [GHDL - test] vhpi ..Running with 28 test workers. vhpi 004trace_stdout: failed vhpi 005trace_file: failed analyze mydesign.vhdl elaborate myentity /usr/bin/x86_64-pc-linux-gnu-gcc /var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/temp/gcc_14/bin/gcc -c vhpi_lib.c -I/var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/work/ghdl-4.1.0/include/ghdl -fPIC vhpi_lib.c: In function ‘my_startup’: vhpi_lib.c:26:30: error: passing argument 2 of ‘vhpi_register_cb’ makes integer from pointer without a cast [-Wint-conversion] 26 | vhpi_register_cb(&cb_data, NULL); | ^~~~ | | | void * In file included from vhpi_lib.c:2: /var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/work/ghdl-4.1.0/include/ghdl/vhpi_user.h:1000:46: note: expected ‘int32_t’ {aka ‘int’} but argument is of type ‘void *’ 1000 | int32_t flags); | ~~~~~~~~^~~~~ analyze mydesign.vhdl elaborate myentity /usr/bin/x86_64-pc-linux-gnu-gcc /var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/temp/gcc_14/bin/gcc -c vhpi_lib.c -I/var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/work/ghdl-4.1.0/include/ghdl -fPIC vhpi_lib.c: In function ‘my_startup’: vhpi_lib.c:24:30: error: passing argument 2 of ‘vhpi_register_cb’ makes integer from pointer without a cast [-Wint-conversion] 24 | vhpi_register_cb(&cb_data, NULL); | ^~~~ | | | void * In file included from vhpi_lib.c:2: /var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/work/ghdl-4.1.0/include/ghdl/vhpi_user.h:1000:46: note: expected ‘int32_t’ {aka ‘int’} but argument is of type ‘void *’ 1000 | int32_t flags); | ~~~~~~~~^~~~~ vhpi 002load_entrypoint: ok vhpi 001load_lib: ok vhpi 003load_multi_lib: ok vhpi 004trace_stdout: failed analyze mydesign.vhdl elaborate myentity /usr/bin/x86_64-pc-linux-gnu-gcc /var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/temp/gcc_14/bin/gcc -c vhpi_lib.c -I/var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/work/ghdl-4.1.0/include/ghdl -fPIC vhpi_lib.c: In function ‘my_startup’: vhpi_lib.c:26:30: error: passing argument 2 of ‘vhpi_register_cb’ makes integer from pointer without a cast [-Wint-conversion] 26 | vhpi_register_cb(&cb_data, NULL); | ^~~~ | | | void * In file included from vhpi_lib.c:2: /var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/work/ghdl-4.1.0/include/ghdl/vhpi_user.h:1000:46: note: expected ‘int32_t’ {aka ‘int’} but argument is of type ‘void *’ 1000 | int32_t flags); | ~~~~~~~~^~~~~ vhpi 005trace_file: failed analyze mydesign.vhdl elaborate myentity /usr/bin/x86_64-pc-linux-gnu-gcc /var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/temp/gcc_14/bin/gcc -c vhpi_lib.c -I/var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/work/ghdl-4.1.0/include/ghdl -fPIC vhpi_lib.c: In function ‘my_startup’: vhpi_lib.c:24:30: error: passing argument 2 of ‘vhpi_register_cb’ makes integer from pointer without a cast [-Wint-conversion] 24 | vhpi_register_cb(&cb_data, NULL); | ^~~~ | | | void * In file included from vhpi_lib.c:2: /var/tmp/portage/sci-electronics/ghdl-4.1.0-r1/work/ghdl-4.1.0/include/ghdl/vhpi_user.h:1000:46: note: expected ‘int32_t’ {aka ‘int’} but argument is of type ‘void *’ 1000 | int32_t flags); | ~~~~~~~~^~~~~ vhpi test failed (004trace_stdout 005trace_file ) make: *** [Makefile:242: test.mcode] Error 1 Creating a PR in a few minutes (backported related upstream commits) Moreover I have successfully built ghdl-4.1.0-r1 with ADA_COMPAT=gcc_14, also the test phase was run successfully with ebuild and using USE=test.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd830b9a47db798235ae7041acac28d059824cdf commit cd830b9a47db798235ae7041acac28d059824cdf Author: Fabio Rossi <rossi.f@inwind.it> AuthorDate: 2025-03-10 09:55:03 +0000 Commit: Maciej Barć <xgqt@gentoo.org> CommitDate: 2025-03-10 11:59:31 +0000 sci-electronics/ghdl: fix tests for ghdl-4.1.0 - fixed tests backporting upstream related commits - add support to gcc_14 compiler Closes: https://bugs.gentoo.org/951113 Signed-off-by: Fabio Rossi <rossi.f@inwind.it> Closes: https://github.com/gentoo/gentoo/pull/40996 Signed-off-by: Maciej Barć <xgqt@gentoo.org> .../ghdl/files/ghdl-4.1.0-tests-fix.patch | 266 +++++++++++++++++++++ .../{ghdl-4.1.0-r1.ebuild => ghdl-4.1.0-r2.ebuild} | 7 +- 2 files changed, 271 insertions(+), 2 deletions(-)