irsim
irsim copied to clipboard
Fails to build with clang >=17 (--with-interpreter=tcl)
Build fine with clang 14 on FreeBSD 13.2.
clang 17 and 18 fails with:
===> Generating temporary packing list
--- installing executables to /wrkdirs/usr/ports/cad/irsim/work/stage/usr/local/bin
--- installing run-time files to /wrkdirs/usr/ports/cad/irsim/work/stage/usr/local/lib
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'Tclirsim_SafeInit' failed: symbol not defined
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'Random_Init' failed: symbol not defined
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'Random_SafeInit' failed: symbol not defined
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'Diglib_Init' failed: symbol not defined
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'Diglib_SafeInit' failed: symbol not defined
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [Makefile:25: tclirsim.so] Error 1
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'Tclirsim_Init' failed: symbol not defined
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'Tclirsim_SafeInit' failed: symbol not defined
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'Random_SafeInit' failed: symbol not defined
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'Diglib_Init' failed: symbol not defined
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'Diglib_SafeInit' failed: symbol not defined
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'init_subs' failed: symbol not defined
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'cur_delta' failed: symbol not defined
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'lprintf' failed: symbol not defined
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [Makefile:24: random.so] Error 1
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'Tclirsim_Init' failed: symbol not defined
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'Tclirsim_SafeInit' failed: symbol not defined
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'Random_Init' failed: symbol not defined
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'Random_SafeInit' failed: symbol not defined
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'Diglib_SafeInit' failed: symbol not defined
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'init_subs' failed: symbol not defined
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'cur_delta' failed: symbol not defined
ld: error: version script assignment of 'IRSIM_9.7' to symbol 'lprintf' failed: symbol not defined
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [Makefile:25: diglib.so] Error 1
Any clues? I can provide full logs if needed.
Thanks