plex-orphaned-files icon indicating copy to clipboard operation
plex-orphaned-files copied to clipboard

Brew Install hanging up on openJDK

Open jeffmcnabb opened this issue 3 years ago • 3 comments

Not sure what I'm doing wrong, tried a few times to install and it gets stuck and eventually errors when trying to install openjdk:

🍺 /usr/local/Cellar/m4/1.4.18: 13 files, 631.3KB, built in 1 minute 33 seconds ==> Installing jakewharton/repo/plex-orphaned-files dependency: autoconf ==> ./configure --prefix=/usr/local/Cellar/autoconf/2.71 --with-lispdir=/usr/local/Cellar/autoconf/2.71/share/emacs/site-lisp/autoconf ==> make install 🍺 /usr/local/Cellar/autoconf/2.71: 75 files, 3.2MB, built in 16 seconds ==> Installing jakewharton/repo/plex-orphaned-files dependency: openjdk ==> ./configure --disable-warnings-as-errors --with-boot-jdk-jvmargs=-Duser.home=/Users/JeffEd/Library/Caches/Homebrew/java_cache --with-boot-jdk=/private/tmp/openjdk-20210608-29156-1swk0p1/jdk16u-jdk-16.0.1- ==> make images Last 15 lines from /Users/[myusername]/Library/Logs/Homebrew/openjdk/02.make: watchos(1.0, API_TO_BE_DEPRECATED), ^ /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrust.h:357:47: error: expected a version of the form 'major[.minor[.subminor]]' tvos(2.0, API_TO_BE_DEPRECATED)); ... (rest of output omitted)

  • All command lines available in /private/tmp/openjdk-20210608-29156-1swk0p1/jdk16u-jdk-16.0.1-ga/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

Do not report this issue to Homebrew/brew or Homebrew/core!

These open issues may also help: OpenJDK is somewhat broken on newer MacOS instances, console is flooded with errors when using JMeter, AdoptOpenJDK has no issues https://github.com/Homebrew/homebrew-core/issues/66953

Error: You are using macOS 10.13. We (and Apple) do not provide support for this old version. You will encounter build failures with some formulae. Please create pull requests instead of asking for help on Homebrew's GitHub, Twitter or any other official channels. You are responsible for resolving any issues you experience while you are running this old version.

jeffmcnabb avatar Jun 08 '21 18:06 jeffmcnabb

Wow it's trying to build the JDK?!? It should be installing it as a binary, ideally, unless this changed in Homebrew recently. I haven't never seen this.

I'm tempted to just drop the jdk dependency in brew which can also be annoying because now you have to install it separately, but it can be from anywhere not specifically Homebrew.

JakeWharton avatar Jun 08 '21 20:06 JakeWharton

Some of this is a bit over my head, so I maybe I'm doing it wrong? This issue MIGHT just be because my Plex machine is still on macOS 10.13; but from what I read it has more issues with newer macOS than older. I DID end up finding my orphaned files via Export Tools, but unlike your tool, that will eventually go away I think because it's a Plex Plugin.
So if no one else is having this issue we can maybe just assume it's due to being older macOS. Eventually I'll get the server updated to Big Sur, just have a few more 32-bit apps to replace.

jeffmcnabb avatar Jun 10 '21 15:06 jeffmcnabb

OK yes 10.13 is the problem (well, not a problem but more the reason that Homebrew tries to build the JDK from source).

According to https://formulae.brew.sh/formula/openjdk binaries are only available for Mojave (10.14) and newer. So updating to 10.14 or newer would allow it to simply download the dependency as a pre-built binary.

I'm not sure whether there's any action here for me to take. I don't like having to use Homebrew to install the JDK, but it also is technically correct to depend on it. Are you okay with the resolution to this being that 10.13 simply isn't supported?

JakeWharton avatar Jun 10 '21 15:06 JakeWharton