[datum] initial public push (IPP)

Remi Forax forax at univ-mlv.fr
Wed Nov 8 11:42:16 UTC 2017


Hi Mark,
you can use configure --disable-warnings-as-errors to remove this kind of errors.

see http://hg.openjdk.java.net/jdk/jdk/file/tip/doc/building.html for how to build the JDK.

cheers,
Rémi

----- Mail original -----
> De: "org openjdk" <org.openjdk at io7m.com>
> À: "amber-dev" <amber-dev at openjdk.java.net>
> Envoyé: Mercredi 8 Novembre 2017 12:25:01
> Objet: Re: [datum] initial public push (IPP)

> Hello.
> 
> On 2017-11-07T13:11:40 -0500
> Vicente Romero <vicente.romero at oracle.com> wrote:
>>
>> We have just made public the development of data classes [1].
> 
> I've run into a bit of difficulty building the current code:
> 
> ---
> 
> /home/someone/hg/amber/src/hotspot/cpu/x86/assembler_x86.cpp: In static member
> function ‘static Address Address::make_raw(int, int, int, int,
> relocInfo::relocType)’:
> /home/someone/hg/amber/src/hotspot/cpu/x86/assembler_x86.cpp:199:12: error:
> ‘*((void*)& rspec +32)’ may be used uninitialized in this function
> [-Werror=maybe-uninitialized]
>     return madr;
>            ^~~~
> /home/someone/hg/amber/src/hotspot/cpu/x86/assembler_x86.cpp:199:12: error:
> ‘*((void*)& rspec +24)’ may be used uninitialized in this function
> [-Werror=maybe-uninitialized]
> /home/someone/hg/amber/src/hotspot/cpu/x86/assembler_x86.cpp:199:12: error:
> ‘*((void*)& rspec +16)’ may be used uninitialized in this function
> [-Werror=maybe-uninitialized]
> cc1plus: all warnings being treated as errors
> make[3]: *** [lib/CompileJvm.gmk:211:
> /home/someone/hg/amber/build/linux-x86_64-normal-server-release/hotspot/variant-server/libjvm/objs/assembler_x86.o]
> Error 1
> make[2]: *** [make/Main.gmk:268: hotspot-server-libs] Error 2
> make[2]: *** Waiting for unfinished jobs....
> 
> ERROR: Build failed for target 'images' in configuration
> 'linux-x86_64-normal-server-release' (exit code 2)
> Stopping sjavac server
> 
> === Output from failing command(s) repeated here ===
> * For target hotspot_variant-server_libjvm_objs_assembler_x86.o:
> /home/someone/hg/amber/src/hotspot/cpu/x86/assembler_x86.cpp: In static member
> function ‘static Address Address::make_raw(int, int, int, int,
> relocInfo::relocType)’:
> /home/someone/hg/amber/src/hotspot/cpu/x86/assembler_x86.cpp:199:12: error:
> ‘*((void*)& rspec +32)’ may be used uninitialized in this function
> [-Werror=maybe-uninitialized]
>     return madr;
>            ^~~~
> /home/someone/hg/amber/src/hotspot/cpu/x86/assembler_x86.cpp:199:12: error:
> ‘*((void*)& rspec +24)’ may be used uninitialized in this function
> [-Werror=maybe-uninitialized]
> /home/someone/hg/amber/src/hotspot/cpu/x86/assembler_x86.cpp:199:12: error:
> ‘*((void*)& rspec +16)’ may be used uninitialized in this function
> [-Werror=maybe-uninitialized]
> cc1plus: all warnings being treated as errors
> 
> * All command lines available in
> /home/someone/hg/amber/build/linux-x86_64-normal-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 common/doc/building.html#troubleshooting for assistance.
> 
> make[1]: *** [/home/someone/hg/amber/make/Init.gmk:296: main] Error 2
> make: *** [/home/someone/hg/amber/make/Init.gmk:186: images] Error 2
> 
> ---
> 
> I'm not sure if that's a legitimate error or just the result of
> somewhat stricter compiler version on my end.
> 
> --
> Mark Raynsford | http://www.io7m.com


More information about the amber-dev mailing list