Mac OS (Mojave / Xcode 10.3) build issue..

Michel Trudeau michel.trudeau at oracle.com
Thu Jul 25 16:50:23 UTC 2019


I have a different problem building on Mojave, and it has to do with building Graal.    And it started happening after jdk-14+7, therefore, very recently.

Compiling 1641 files for jdk.internal.vm.compiler
/Users/micheltrudeau/WorkDir/OpenJDK/jdk/build/macosx-x86_64-server-release/support/gensrc/jdk.internal.vm.compiler/org/graalvm/compiler/lir/BailoutAndRestartBackendException_OptionDescriptors.java:22: error: cannot find symbol
                /*declaringClass*/ BailoutAndRestartBackendException.Options.class,
                                                                    ^
  symbol:   class Options
  location: class BailoutAndRestartBackendException
/Users/micheltrudeau/WorkDir/OpenJDK/jdk/build/macosx-x86_64-server-release/support/gensrc/jdk.internal.vm.compiler/org/graalvm/compiler/lir/BailoutAndRestartBackendException_OptionDescriptors.java:24: error: cannot find symbol
                /*option*/ BailoutAndRestartBackendException.Options.LIRUnlockBackendRestart);
                                                            ^
  symbol:   variable Options
  location: class BailoutAndRestartBackendException
/Users/micheltrudeau/WorkDir/OpenJDK/jdk/build/macosx-x86_64-server-release/support/gensrc/jdk.internal.vm.compiler/org/graalvm/compiler/replacements/arraycopy/PluginFactory_ArrayCopySnippets.java:35: error: cannot find symbol
        jdk.internal.vm.compiler.word.LocationIdentity result = org.graalvm.compiler.replacements.arraycopy.ArrayCopySnippets.getArrayLocation(arg0);
                                                                                                                             ^
  symbol:   method getArrayLocation(JavaKind)
  location: class ArrayCopySnippets
3 errors


On Jul 25, 2019, at 7:33 AM, Tim Bell <tim.bell at oracle.com> wrote:

Sundar:

I filed:
JDK-8228619 "[macos 10.14.x] (Mojave) build issue: /usr/local/bin/nm reports no symbols"
https://bugs.openjdk.java.net/browse/JDK-8228619

At Oracle, JDK 14 is built on macOS 10.13 (High Sierra).

This will need investigation in the future, when the build platform moves to 10.14

Tim

On 07/24/19 00:11, Sundararajan Athijegannathan wrote:
> Hi,
> 
> After recent OS and Xcode upgrade (Mojave 10.14.6 and Xcode 10.3), I'm
> seeing JDK build failures on my machine. Bboth "jdk-dev" and
> "panama-dev" foreign branch. It is a fresh configure & clean build. "nm"
> is selected from /usr/local/bin/nm and that is from bintools 2.32
> (homebrew installed).
> 
> I thought it may be the latest Xcode. And so I downloaded Xcode 9.2 and
> installed it in a different location (/Applications/Xcode_9.2.app/). I
> then used configure
> --with-toolchain-path=/Applications/Xcode_9.2.app/Contents/Developer/usr/bin.
> But I got the same failure|
> |
> /usr/local/bin/nm:
> $panama-dev/build/macosx-x86_64-server-release/hotspot/variant-server/libjvm/objs/bytecodeHistogram.o:
> no symbols
> /usr/local/bin/nm:
> $panama-dev/build/macosx-x86_64-server-release/hotspot/variant-server/libjvm/objs/c1_CFGPrinter.o:
> no symbols
> /usr/local/bin/nm:
> $panama-dev/build/macosx-x86_64-server-release/hotspot/variant-server/libjvm/objs/c1_Defs.o:
> no symbols
> /usr/local/bin/nm:
> $panama-dev/build/macosx-x86_64-server-release/hotspot/variant-server/libjvm/objs/c1_InstructionPrinter.o:
> no symbols
> /usr/local/bin/nm:
> $panama-dev/build/macosx-x86_64-server-release/hotspot/variant-server/libjvm/objs/c1_ValueSet.o:
> no symbols
> /usr/local/bin/nm:
> $panama-dev/build/macosx-x86_64-server-release/hotspot/variant-server/libjvm/objs/cppInterpreter.o:
> no symbols
> /usr/local/bin/nm:
> $panama-dev/build/macosx-x86_64-server-release/hotspot/variant-server/libjvm/objs/cppInterpreterGenerator.o:
> no symbols
> /usr/local/bin/nm:
> $panama-dev/build/macosx-x86_64-server-release/hotspot/variant-server/libjvm/objs/decoder_elf.o:
> no symbols
> /usr/local/bin/nm:
> $panama-dev/build/macosx-x86_64-server-release/hotspot/variant-server/libjvm/objs/depChecker_x86.o:
> no symbols
> /usr/local/bin/nm:
> $panama-dev/build/macosx-x86_64-server-release/hotspot/variant-server/libjvm/objs/dtraceAttacher.o:
> no symbols
> /usr/local/bin/nm:
> $panama-dev/build/macosx-x86_64-server-release/hotspot/variant-server/libjvm/objs/elfFile.o:
> no symbols
> /usr/local/bin/nm:
> $panama-dev/build/macosx-x86_64-server-release/hotspot/variant-server/libjvm/objs/elfFuncDescTable.o:
> no symbols
> /usr/local/bin/nm:
> $panama-dev/build/macosx-x86_64-server-release/hotspot/variant-server/libjvm/objs/elfStringTable.o:
> no symbols
> /usr/local/bin/nm:
> $panama-dev/build/macosx-x86_64-server-release/hotspot/variant-server/libjvm/objs/elfSymbolTable.o:
> no symbols
> /usr/local/bin/nm:
> $panama-dev/build/macosx-x86_64-server-release/hotspot/variant-server/libjvm/objs/instanceOop.o:
> no symbols
> make[3]: ***
> [$panama-dev/build/macosx-x86_64-server-release/hotspot/variant-server/libjvm/symbols-objects]
> Error 1
> make[3]: *** Deleting file
> `$panama-dev/build/macosx-x86_64-server-release/hotspot/variant-server/libjvm/symbols-objects'
> 
> make[3]: *** Waiting for unfinished jobs....
> make[2]: *** [hotspot-server-libs] Error 2
> 
> ERROR: Build failed for target 'images' in configuration
> 'macosx-x86_64-server-release' (exit code 2)
> 
> 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
> 
> Thanks,
> -Sundar
> 
> 





More information about the build-dev mailing list