jdk10 bootcycle build linux failing

Michal Vala mvala at redhat.com
Mon Mar 5 11:31:52 UTC 2018


Hi Erik,

I've played also with --with-num-cores. It seems like it has an effect only on 
first build, but no effect on bootcycle build (same as --with-memory-size). Is 
this behavior intended or is it a bug? Or am I doing something wrong?

I haven't tried "make JOBS=x" yet. I guess it may solve the issue, but I would 
expect that --with-num-cores should cover this.

Thanks

On 03/01/2018 10:59 PM, Erik Joelsson wrote:
> Hello Michal,
> 
> The --with-memory-size option is only used to help configure pick a more 
> reasonable concurrency level for make. If your machine still gets overwhelmed, I 
> would recommend manually turning down concurrency until you get it to work, 
> using "make JOBS=X". You can check the end of the configure output for how many 
> concurrent jobs configure set for you and work down from there.
> 
> /Erik
> 
> 
> On 2018-03-01 03:36, Michal Vala wrote:
>> Hi,
>>
>> I have an issue with bootcycle build. First run with external boot jdk is ok, 
>> but bootcycle phase always fails. I'm building on fedora27(local) and 
>> rhel7(VM). In case of local, build consume too much memory and kill my OS. 
>> I've tried to set `with-memory-size` but it seems like it accepts this value 
>> just for first build, but not for bootcycle. I'm building with:
>>
>> $ bash ./configure --disable-warnings-as-errors 
>> --with-boot-jdk=/home/tester/jdk-9.0.4
>> $ make bootcycle-images
>>
>> I suspect that build eats too much memory and OS kills some process, but I'm 
>> lack of knowledge here. Anyone else meeting similar issue?
>>
>> end of build log inlined here. I can provide more, but I was not able to find 
>> any useful log output:
>>
>> collect2: error: ld terminated with signal 9 [Killed]
>> gmake[5]: *** 
>> [/home/tester/openjdk/build/linux-x86_64-normal-server-release/bootcycle-build/hotspot/variant-server/libjvm/gtest/libjvm.so] 
>> Error 1
>> gmake[5]: *** Deleting file 
>> `/home/tester/openjdk/build/linux-x86_64-normal-server-release/bootcycle-build/hotspot/variant-server/libjvm/gtest/libjvm.so' 
>>
>> gmake[5]: *** Waiting for unfinished jobs....
>> gmake[4]: *** [hotspot-server-libs] Error 1
>>
>> ERROR: Build failed for target 'product-images' in configuration 
>> 'linux-x86_64-normal-server-release' (exit code 2)
>> gmake[4]: warning: -jN forced in submake: disabling jobserver mode.
>> Stopping sjavac server
>>
>> === Output from failing command(s) repeated here ===
>> * For target hotspot_variant-server_libjvm_gtest_objs_BUILD_GTEST_LIBJVM_link:
>> collect2: error: ld terminated with signal 9 [Killed]
>>
>> * All command lines available in 
>> /home/tester/openjdk/build/linux-x86_64-normal-server-release/bootcycle-build/make-support/failure-logs. 
>>
>> === End of repeated output ===
>>
>> No indication of failed target found.
>> Hint: Try searching the build log for '] Error'.
>> Hint: See doc/building.html#troubleshooting for assistance.
>>
>> gmake[3]: *** [main] Error 1
>> gmake[2]: *** [bootcycle-images] Error 2
>>
>> ERROR: Build failed for target 'bootcycle-images' in configuration 
>> 'linux-x86_64-normal-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 1
>> make: *** [bootcycle-images] Error 2
>>
> 

-- 
Michal Vala
OpenJDK QE
Red Hat Czech



More information about the build-dev mailing list