Change in hotspot causing build issues on OSX 10.8.5
David Holmes
david.holmes at oracle.com
Tue Aug 25 02:20:55 UTC 2015
On 24/08/2015 9:07 PM, Lance Andersen wrote:
> Hi David,
>
> thank you for your reply.
>
> I was using Xcode 4.6.2
>
> -----------------
> Using gcc C++ compiler version 4.2.1 [i686-apple-darwin11-llvm-g++-4.2
> (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)]
> ---------------
>
> I upgraded to XCode 5.1.1
>
> ----------
> C Compiler: Version Apple LLVM version 4.2 (clang-425.0.28) (based
> on LLVM 3.2svn) Target: x86_64-apple-darwin12.6.0 Thread model: posix
> (at /usr/bin/clang)
> C++ Compiler: Version Apple LLVM version 4.2 (clang-425.0.28) (based
> on LLVM 3.2svn) Target: x86_64-apple-darwin12.6.0 Thread model: posix
> (at /usr/bin/clang++)
> ----------
Okay that is the official compiler version for 9.
> and now get the warnings:
>
> ---------
> Compiling 13 files for jdk.policytool
> clang: error: unknown warning option
> '-Wno-tautological-constant-out-of-range-compare'; did you mean
> '-Wno-tautological-compare'?
> make[3]: ***
> [/Users/ljanders/Documents/hg-workspaces/openjdk9/modular-dev/build/macosx-x86_64-normal-server-release/support/native/java.desktop/libfontmanager/AlternateSubstSubtables.o]
> Error 1
> make[2]: *** [java.desktop-libs] Error 2
> --------
>
> Also see a lot of these messages which I do not recall before
New warnings are expected when you bump up the compiler version as the
compiler gets more and more pedantic. I don't build on OSX so haven't
encountered them directly.
David
> -----------
> Compiling 43 files for jdk.httpserver
> nm: no name list
> nm: no name list
> nm: no name list
> ----------
>
> After running
>
> -------------
> ./configure --disable-warnings-as-errors
> ------------
>
> The build completed but I get a lot of warnings now for that I did not
> see before such as
>
> -----------
> /Users/ljanders/Documents/hg-workspaces/openjdk9/modular-dev/jdk/src/java.base/unix/native/libjava/jlong_md.h:69:9:
> warning: 'ptr_to_jlong' macro redefined
> #define ptr_to_jlong(a) ((jlong)(a))
> ----------
>
>
> Best
> Lance
> On Aug 24, 2015, at 12:18 AM, David Holmes <david.holmes at oracle.com
> <mailto:david.holmes at oracle.com>> wrote:
>
>> Hi Lance,
>>
>> On 22/08/2015 1:20 AM, Lance Andersen wrote:
>>> Hi,
>>>
>>> I just pulled over the latest updates for jdk 9 and it looks like
>>> there is a hotspot change that now causes the build to fail for me on
>>> osx 10.8.5
>>>
>>> ----------
>>>
>>> /Users/ljanders/Documents/hg-workspaces/openjdk9/modular-dev/hotspot/src/os/bsd/vm/jsig.c:45:
>>> error: thread-local storage not supported for this target
>>
>> https://bugs.openjdk.java.net/browse/JDK-8072147
>>
>> introduced the change to use a compiler based thread-local variable.
>> What compiler chain are you using?
>>
>> Thanks,
>> David
>>
>>> make[10]: *** [libjsig.dylib] Error 1
>>> make[10]: *** Waiting for unfinished jobs....
>>> make[9]: *** [the_vm] Error 2
>>> make[8]: *** [product] Error 2
>>> make[7]: *** [generic_build2] Error 2
>>> make[6]: *** [product] Error 2
>>> make[5]: *** [all_product_universal] Error 2
>>> make[4]: *** [universal_product] Error 2
>>> make[3]: ***
>>> [/Users/ljanders/Documents/hg-workspaces/openjdk9/modular-dev/build/macosx-x86_64-normal-server-release/hotspot/_hotspot.timestamp]
>>> Error 2
>>> make[2]: *** [hotspot] Error 2
>>> make[2]: *** Waiting for unfinished jobs....
>>> ----------
>>>
>>> I had done a configure and make clean?
>>>
>>>
>>> Thoughts?
>>>
>>> Best
>>> Lance
>>>
>>>
>>> Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
>>> Oracle Java Engineering
>>> 1 Network Drive
>>> Burlington, MA 01803
>>> Lance.Andersen at oracle.com
>>>
>>>
>>>
>
> <http://oracle.com/us/design/oracle-email-sig-198324.gif>
> <http://oracle.com/us/design/oracle-email-sig-198324.gif><http://oracle.com/us/design/oracle-email-sig-198324.gif>
> <http://oracle.com/us/design/oracle-email-sig-198324.gif>Lance Andersen|
> Principal Member of Technical Staff | +1.781.442.2037
> Oracle Java Engineering
> 1 Network Drive
> Burlington, MA 01803
> Lance.Andersen at oracle.com <mailto:Lance.Andersen at oracle.com>
>
>
>
More information about the build-dev
mailing list