Home
[RDK Central Wiki]
CMF
[Code Releases]
I am using the attached manifest.xml which is from RDK release
I am using Ubuntu 16.04 with below configuration
HDD : 100 GB
RAM : 2 GB
Swap file : 4 GB
Build Selection:
#source meta-cmf-raspberrypi/setup-environment
Selected Option:
19) meta-cmf-raspberrypi/conf/machine/raspberrypi-rdk-mc.conf
I am building image for "rdk-generic-mediaclient-image". My build is almost completed (98%), but getting below error for wpe-webkit,
| void JSXSLTProcessorOwner::finalize(JSC::Handle<JSC::Unknown> handle, void* context)
| ^~~~~~~~~~~~~~~~~~~~
| virtual memory exhausted: Cannot allocate memory
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/karthi/projects/rdk_ivstable/build-raspberrypi-rdk-mc/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/wpe-webkit/0.4.3+gitAUTOINC+bc64bbadf2-r0/temp/log.do_compile.28354)
ERROR: Task (/home/karthi/projects/rdk_ivstable/meta-rdk-ext/recipes-extended/wpe-webkit/wpe-webkit_0.4.3.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1606 tasks of which 1572 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
Summary: 1 task failed:
/home/karthi/projects/rdk_ivstable/meta-rdk-ext/recipes-extended/wpe-webkit/wpe-webkit_0.4.3.bb:do_compile
Summary: There were 2 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
If anyone faced such an issue, please help me.
7 Comments
Deepthi Suseelan
Z-Karthikeyan Srinivasan
Are you seeing this issue consistently? Because logs looks like memory issue. Can you also please attach the compile log fromwpe-webkit.
Z-Karthikeyan Srinivasan
Deepthi Suseelan ,
Yes, I am seeing this issue consistently. I tried many times with many swap configurations, but facing the same issue. I am using Ubuntu 16.04 32 bit.
log.do_compile.8732
Please see the attached log.
Thanks,
Karthikeyan S
Z-David Toll
I see a similar problem consistently during wpe-webkit compilation on 32-bit Ubuntu 16.04 (with 6GB RAM & 4GB swap) - it seems that g++ hits the 32-bit process address-space limit.
If I try the same build on 64-bit Ubuntu 16.04 (with 6GB RAM & 4GB swap) while running "free -c 100000000", I see that all RAM & swap is exhausted during wpe-webkit compilation.
Increasing the swap to 8GB allows compilation to succeed - is this memory usage expected? If so, it should be documented somewhere as a build environment requirement.
Z-Karthikeyan Srinivasan
Thanks for the details.
I will try with 64-bit Ubuntu.
Wouter-Lucas van Boesschoten
Latest WPEWebKit forcefully disables the gold linker. This is because the gold linker has issues linking to the right math FPU, which causes performances issues on WPEWebKit.
The side effect of that is that the BFD linker uses more ram to link everything. I think you'd need a minimum of 8 GB ram and similar swap to be able to link it together. If you can't get above 8 GB RAM, try using a really big swap and see if that will make it go through.
Z-Karthikeyan Srinivasan
I tried with 8GB swap but still getting the same error. May be 64-bit ubuntu can help to resolve this issue. Let me try on 64-bit ubuntu .
Z-Karthikeyan Srinivasan
Hi All,
This issue got resolved after I changed my ubuntu to 64 bit version. The below is my Ubuntu configurations,
Ubuntu 16.04 - 64 bit
6GB RAM
16GB Swap