irsim icon indicating copy to clipboard operation
irsim copied to clipboard

Fails to build with clang >=17 (--with-interpreter=tcl)

Open nunotexbsd opened this issue 10 months ago • 0 comments

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

nunotexbsd avatar Apr 23 '24 08:04 nunotexbsd