[Newbie question] Strange errors trying to build the JDK

Zambonifofex zambonifofex at gmail.com
Mon Sep 3 01:46:04 UTC 2018


It is still an issue. Nothing has really changed since we last spoke.

Also, the file does indeed contain an entry for ‘NM’.

    NM:=/usr/bin/nm
On Sun, Sep 2, 2018 at 10:29 PM David Holmes <david.holmes at oracle.com> wrote:
>
> Back from vacation ...
>
> If this is still an issue ...
>
> On 23/08/2018 3:28 PM, Zambonifofex wrote:
> > Hello David, sorry for delaying to reply.
> >
> > By using ‘less’, I was able to find ‘NAWK’ in my
> > ‘~/jdk/build/linux-x86_64-normal-server-release/spec.gmk’ file:
> >
> >      NAWK:=/usr/bin/nawk
> >
> > However, I was not able to find any variables named ‘DUMP_SYMBOLS_CMD’.
>
> It is defined in ./hotspot/lib/JvmMapfile.gmk in terms of NM. Does
> spec.gmk have a valid value for NM?
>
> David
> -----
>
>
> > On Wed, Aug 22, 2018 at 3:18 AM David Holmes <david.holmes at oracle.com> wrote:
> >>
> >> Interesting - there is no actual error report in the log. Only this:
> >>
> >> lib/JvmMapfile.gmk:141: recipe for target
> >> '/home/zambonifofex/jdk/build/linux-x86_64-normal-server-release/hotspot/variant-server/libjvm/symbols-objects'
> >> failed
> >>
> >> Looking at the gmk file we have:
> >>
> >> $(JVM_OUTPUTDIR)/symbols-objects: $(BUILD_LIBJVM_ALL_OBJS)
> >>          $(call LogInfo, Generating symbol list from object files)
> >>          $(CD) $(JVM_OUTPUTDIR)/objs && \
> >>            $(DUMP_SYMBOLS_CMD) | $(NAWK) $(FILTER_SYMBOLS_AWK_SCRIPT) | $(SORT)
> >> -u > $@
> >>
> >> I'd have to suspect one of the command variables is not set. I suspect
> >> the actual error text may be redirected to the symbols-objects file, but
> >> unfortunately that has been deleted by 'make'.
> >>
> >> Check the generated spec.gmk file for the value of DUMP_SYMBOLS_CMD and
> >> NAWK.
> >>
> >> David
> >>
> >> On 22/08/2018 1:45 PM, Zambonifofex wrote:
> >>> Hello.
> >>>
> >>> I’ve run the following commands (using the Fish shell):
> >>>
> >>>       /home/zambonifofex/jdk/ $ make hotspot > ~/log.txt ^&1
> >>>       /home/zambonifofex/jdk/ $ env LOG=trace make hotspot > ~/log-trace.txt ^&1
> >>>       /home/zambonifofex/jdk/ $
> >>>
> >>> I’ll attach the generated files in this email.
> >>>
> >>> Thanks once again.
> >>> On Tue, Aug 21, 2018 at 8:51 PM Gustavo Romero
> >>> <gromero at linux.vnet.ibm.com> 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