Date: Tue, 26 Sep 2023 12:57:46 +0000 From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: maintainer-feedback requested: [Bug 274106] java/openjdk8: fix build with lld 17 Message-ID: <bug-274106-8522-iCRzTTpY95@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-274106-8522@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-java (Nobody) <java@FreeBSD.org> for maintainer-feedback: Bug 274106: java/openjdk8: fix build with lld 17 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274106 --- Description --- Building java/openjdk8 with lld 17 results in the following link error: Making SA debugger back-end... ld: error: version script assignment of 'SUNWprivate_1.1' to symbol 'ps_getpid' failed: symbol not defined ld: error: version script assignment of 'SUNWprivate_1.1' to symbol 'ps_lcontinue' failed: symbol not defined ld: error: version script assignment of 'SUNWprivate_1.1' to symbol 'ps_lgetxmmregs' failed: symbol not defined ld: error: version script assignment of 'SUNWprivate_1.1' to symbol 'ps_lsetxmmregs' failed: symbol not defined cc: error: linker command failed with exit code 1 (use -v to see invocation) This is because lld 17 defaults to errors when undefined symbols are referenced in linker version scripts. Since there are many of these in openjdk 8, suppress the errors by adding -Wl,--undefined-version to the --with-extra-ldflags configure option.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274106-8522-iCRzTTpY95>
