[MacPorts] #69440: openjdk21 @21.0.2_1: build fails with missing symbols
MacPorts
noreply at macports.org
Sun Mar 3 19:15:30 UTC 2024
#69440: openjdk21 @21.0.2_1: build fails with missing symbols
-------------------------+-----------------------
Reporter: cooljeanius | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.9.1
Keywords: | Port: openjdk21
-------------------------+-----------------------
Split off from #69213, similar to the failure in #66325:
{{{
Creating support/modules_libs/java.base/libsyslookup.dylib from 1 file(s)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libz.dylib) was built for newer macOS
version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libz.dylib) was built for newer macOS
version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libnet.dylib) was built for newer macOS
version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
Undefined symbols for architecture x86_64:
"_NET_Bind", referenced from:
_Java_sun_nio_ch_Net_bind0 in Net.o
"_NET_GetPortFromSockaddr", referenced from:
_Java_sun_nio_ch_Net_localPort in Net.o
_Java_sun_nio_ch_Net_remotePort in Net.o
"_NET_GetSockOpt", referenced from:
_Java_sun_nio_ch_Net_getIntOption0 in Net.o
"_NET_InetAddressToSockaddr", referenced from:
_Java_sun_nio_ch_Net_bind0 in Net.o
_Java_sun_nio_ch_Net_connect0 in Net.o
"_NET_SetSockOpt", referenced from:
_Java_sun_nio_ch_Net_setIntOption0 in Net.o
"_NET_SockaddrToInetAddress", referenced from:
_Java_sun_nio_ch_InheritedChannel_inetPeerAddress0 in
InheritedChannel.o
_Java_sun_nio_ch_InheritedChannel_peerPort0 in InheritedChannel.o
_Java_sun_nio_ch_Net_accept in Net.o
_Java_sun_nio_ch_Net_localInetAddress in Net.o
_Java_sun_nio_ch_Net_remoteInetAddress in Net.o
"_NET_SocketAvailable", referenced from:
_Java_sun_nio_ch_Net_available in Net.o
"_initInetAddressIDs", referenced from:
_Java_sun_nio_ch_InheritedChannel_initIDs in InheritedChannel.o
_Java_sun_nio_ch_Net_initIDs in Net.o
"_ipv4_available", referenced from:
_Java_sun_nio_ch_Net_socket0 in Net.o
"_ipv6_available", referenced from:
_Java_sun_nio_ch_Net_isIPv6Available0 in Net.o
_Java_sun_nio_ch_Net_socket0 in Net.o
"_reuseport_available", referenced from:
_Java_sun_nio_ch_Net_isReusePortAvailable0 in Net.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
gmake[3]: *** [Lib.gmk:74:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_openjdk21/openjdk21/work
/jdk21u-
jdk-21.0.2-ga/build/release/support/modules_libs/java.base/libnio.dylib]
Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: Leaving directory
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_openjdk21/openjdk21/work
/jdk21u-jdk-21.0.2-ga/make'
gmake[2]: *** [make/Main.gmk:199: java.base-libs] Error 2
gmake[2]: Leaving directory
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_openjdk21/openjdk21/work
/jdk21u-jdk-21.0.2-ga'
ERROR: Build failed for target 'images' in configuration 'release' (exit
code 2)
gmake[2]: Entering directory
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_openjdk21/openjdk21/work
/jdk21u-jdk-21.0.2-ga'
Stopping javac server
=== Output from failing command(s) repeated here ===
* For target support_native_java.base_libnio_BUILD_LIBNIO_link:
ld: warning: dylib (/opt/local/lib/libnet.dylib) was built for newer macOS
version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
ld: warning: dylib (/opt/local/lib/libunwind.dylib) was built for newer
macOS version (11.0) than being linked (10.12)
Undefined symbols for architecture x86_64:
"_NET_Bind", referenced from:
_Java_sun_nio_ch_Net_bind0 in Net.o
"_NET_GetPortFromSockaddr", referenced from:
_Java_sun_nio_ch_Net_localPort in Net.o
_Java_sun_nio_ch_Net_remotePort in Net.o
"_NET_GetSockOpt", referenced from:
_Java_sun_nio_ch_Net_getIntOption0 in Net.o
"_NET_InetAddressToSockaddr", referenced from:
_Java_sun_nio_ch_Net_bind0 in Net.o
_Java_sun_nio_ch_Net_connect0 in Net.o
"_NET_SetSockOpt", referenced from:
... (rest of output omitted)
* All command lines available in
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_openjdk21/openjdk21/work
/jdk21u-jdk-21.0.2-ga/build/release/make-support/failure-logs.
=== End of repeated output ===
No indication of failed target found.
HELP: Try searching the build log for '] Error'.
HELP: Run 'make doctor' to diagnose build problems.
gmake[2]: Leaving directory
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_openjdk21/openjdk21/work
/jdk21u-jdk-21.0.2-ga'
gnumake[1]: *** [main] Error 2
gnumake[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_openjdk21/openjdk21/work
/jdk21u-jdk-21.0.2-ga'
gnumake: *** [images] Error 2
gnumake: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_openjdk21/openjdk21/work
/jdk21u-jdk-21.0.2-ga'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_openjdk21/openjdk21/work
/jdk21u-jdk-21.0.2-ga" && /usr/bin/gnumake -w images
Exit code: 2
Error: Failed to build openjdk21: command execution failed
DEBUG: Error code: CHILDSTATUS 87085 2
DEBUG: Backtrace: command execution failed
while executing
"system {*}$notty {*}$callback {*}$nice $fullcmdstring"
invoked from within
"command_exec -callback portprogress::target_progress_callback build"
(procedure "portbuild::build_main" line 10)
invoked from within
"$procedure $targetname"
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_openjdk21/openjdk21/main.log
for details.
Error: Problem while installing openjdk21
}}}
`make doctor` output:
{{{
$ sudo make doctor
Password:
Building target 'doctor' in configuration 'release'
"make doctor" will help you analyze your build environment. It can
highlight
certain well-known problems, but it can never find all possible errors.
* Verifying that configure has picked up git...
* Checking for warnings from configure...
---
The following warnings were produced. Repeated here for convenience:
WARNING: pandoc is version 3.1.12, not the recommended version 2.19.2
WARNING: Ignoring CFLAGS(-pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch
x86_64) found in environment. Use --with-extra-cflags
WARNING: Ignoring CXXFLAGS(-pipe -Os -stdlib=libc++
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch
x86_64) found in environment. Use --with-extra-cxxflags
WARNING: Ignoring LDFLAGS(-L/opt/local/lib
-Wl,-headerpad_max_install_names
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
-arch x86_64) found in environment. Use --with-extra-ldflags
---
! Inspect the warnings, fix any problems, and re-run configure
fatal: not a git repository (or any of the parent directories): .git
* Checking for left-over core files...
fatal: not a git repository (or any of the parent directories): .git
* Checking for untracked files with illegal names...
* If all else fails, try removing the entire build directory and re-
creating
the same configuration using:
---
configure_command_line=$(make print-configuration)
make dist-clean
bash configure $configure_command_line
---
* The build README (doc/building.md) is a great source of information,
especially the chapter "Fixing Unexpected Build Failures". Check it out!
* If you still need assistance please contact build-dev at openjdk.org.
Finished building target 'doctor' in configuration 'release'
}}}
--
Ticket URL: <https://trac.macports.org/ticket/69440>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list