[Newbie question] Strange errors trying to build the JDK

Ioi Lam ioi.lam at oracle.com
Wed Aug 22 00:24:26 UTC 2018


I am not sure if this is documented anywhere. Try searching for "Error 
2". It usually will tell you where the error is.

Thanks
- Ioi


On 8/21/18 4:51 PM, Gustavo Romero wrote:
> Hi,
>
> On 08/21/2018 08:00 PM, David Holmes wrote:
>> Hi,
>>
>> You need to search further up the build log to try and find the 
>> actual error that occurred when building hotspot.
>>
>> Run "make hotspot" and it should be easier to see.
>
> In addition to David's suggestion you can also add before the command 
> LOG=trace, like:
>
> $ LOG=trace make hotspot
>
> to spot the executed commands in the build process.
>
>
> Regards,
> Gustavo
>
>> David
>>
>> On 20/08/2018 11:53 AM, Zambonifofex wrote:
>>> Hello, everyone.
>>>
>>> I am new to collaborating to the JDK, so sorry if this question is too
>>> newbie‐ish.
>>>
>>> I have recently been affected by a minor bug in the ‘java.desktop’
>>> module on Linux. I figured I’d try to fix it by myself, so I followed
>>> the steps in the “How to Contribute” page, the “Building” page, as
>>> well as some more that I could find online.
>>>
>>> The bug number is ‘7162479’. The bug is that it calling
>>> ‘setLocationByPlatform(true)’ on a ‘JFrame’ will not work if
>>> ‘setResizable(false)’ has been called on the same ‘JFrame’.
>>>
>>> When I tried to build the JDK with ‘make images’, after getting a
>>> couple errors related to the changes I made and fixing them, I started
>>> to face a strange error that was not related to the changes I made at
>>> all.
>>>
>>> Here is the log I get when trying to run ‘make images’ currently, as
>>> well as the output of ‘hg id’, if that’s of any help (where
>>> ‘/home/zambonifofex/jdk $’ is the prompt):
>>>
>>>      /home/zambonifofex/jdk/ $ hg id
>>>      2e91d927e00c+ tip
>>>      /home/zambonifofex/jdk/ $ make images
>>>      Building target 'images' in configuration
>>> 'linux-x86_64-normal-server-release'
>>>      lib/JvmMapfile.gmk:141: recipe for target
>>> '/home/zambonifofex/jdk/build/linux-x86_64-normal-server-release/hotspot/variant-server/libjvm/symbols-objects' 
>>>
>>> failed
>>>      make[3]: ***
>>> [/home/zambonifofex/jdk/build/linux-x86_64-normal-server-release/hotspot/variant-server/libjvm/symbols-objects] 
>>>
>>> Error 1
>>>      make[3]: *** Deleting file
>>> '/home/zambonifofex/jdk/build/linux-x86_64-normal-server-release/hotspot/variant-server/libjvm/symbols-objects' 
>>>
>>>      make/Main.gmk:257: recipe for target 'hotspot-server-libs' failed
>>>      make[2]: *** [hotspot-server-libs] Error 1
>>>      make[2]: *** Waiting for unfinished jobs....
>>>
>>>      ERROR: Build failed for target 'images' in configuration
>>> 'linux-x86_64-normal-server-release' (exit code 2)
>>>
>>>      === Make failed targets repeated here ===
>>>      lib/JvmMapfile.gmk:141: recipe for target
>>> '/home/zambonifofex/jdk/build/linux-x86_64-normal-server-release/hotspot/variant-server/libjvm/symbols-objects' 
>>>
>>> failed
>>>      make/Main.gmk:257: recipe for target 'hotspot-server-libs' failed
>>>      === End of repeated output ===
>>>
>>>      Hint: Try searching the build log for the name of the first 
>>> failed target.
>>>      Hint: See doc/building.html#troubleshooting for assistance.
>>>
>>>      /home/zambonifofex/jdk/make/Init.gmk:300: recipe for target 
>>> 'main' failed
>>>      make[1]: *** [main] Error 1
>>>      /home/zambonifofex/jdk/make/Init.gmk:186: recipe for target 
>>> 'images' failed
>>>      make: *** [images] Error 2
>>>      /home/zambonifofex/jdk/ $
>>>
>>> Any help would be appreciated. Thanks in advance.
>>>
>>
>




More information about the build-dev mailing list