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

Erik Joelsson erik.joelsson at oracle.com
Thu Jul 25 18:05:28 UTC 2019


The failing build step is using nm to extract symbols from object files. 
The standard nm on Macosx/Xcode (which is llvm based) behaves 
differently compared to Linux/GNU which is from binutils. If your 
environment contains a different nm then the hotspot build will not know 
how to call it properly.

You could try to work around it by configuring with NM=/usr/bin/nm set.

/Erik

On 2019-07-24 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