Unable to build JDK on macOS 10.14.6

Timmy Jose zoltan.jose at gmail.com
Fri Feb 28 13:32:55 UTC 2020


Hello,

I have a tarball that I downloaded from
https://builds.shipilev.net/workspaces/jdk-jdk.tar.xz, and was trying to
build the same.

This are the commands that I am using to build the project:

1. /configure
--with-toolchain-path=/Applications/Xcode.app/Contents/Developer/usr/bin/
--disable-warnings-as-errors, and then

2. make images

My Xcode version is: Version 11.0 (11A420a).

However, it fails with a strange error about libarclite_macosx.

```
Undefined symbols for architecture x86_64:
  "_objc_loadClassref", referenced from:
      __ARCLite__load() in libarclite_macosx.a(arclite.o)
ld: symbol(s) not found for architecture x86_64
clang-9: error: linker command failed with exit code 1 (use -v to see
invocation)
make[3]: ***
[/Users/z0ltan/dev/forks/openjdk/jdk-jdk/build/macosx-x86_64-server-release/support/modules_libs/java.base/libosxsecurity.dylib]
Error 1
make[2]: *** [java.base-libs] Error 2

ERROR: Build failed for target 'images' in configuration
'macosx-x86_64-server-release' (exit code 2)

=== Output from failing command(s) repeated here ===
* For target
support_native_java.base_libosxsecurity_BUILD_LIBOSXSECURITY_link:
Undefined symbols for architecture x86_64:
  "_objc_loadClassref", referenced from:
      __ARCLite__load() in libarclite_macosx.a(arclite.o)
ld: symbol(s) not found for architecture x86_64
clang-9: error: linker command failed with exit code 1 (use -v to see
invocation)

* All command lines available in
/Users/z0ltan/dev/forks/openjdk/jdk-jdk/build/macosx-x86_64-server-release/make-support/failure-logs.
=== End of repeated output ===

No indication of failed target found.
Hint: Try searching the build log for '] Error'.
Hint: See doc/building.html#troubleshooting for assistance.

make[1]: *** [main] Error 2
make: *** [images] Error 2
```

I am attaching the failure logs (LOG=debug) with this email.

If any specific information would be useful in debugging this issue, I
would be more than happy to share the same.

Best Regards,

Timmy



More information about the build-dev mailing list