Forum

Met an error on the building the NDK Installer for qemux86

Hi, I tried to install NDK(for qemux86) but failed because of an error.
I tried to install it at Ubuntu 20.04 x64 (Virtual Box on Windows 10 x64 Host), and I have to follow the instruction to apply the 0001-fix-webruntime-crash-on-ose-emulator-after-dunfell.patch, but I got the follow errors:
ERROR: nodejs-12.14.1-r0 do_compile: oe_runmake failed
Currently 4 running tasks (5557 of 7348) 75% |################################################################################################################################################# |
0: webruntime-79.0.3945.79-49-r36.3 do_compile (pid 509925) 0% | |
1: nodejs-12.14.1-r0 do_compile - 3h25m38s (pid 509940)
2: runc-docker-1.0.0-rc8+gitAUTOINC+425e105d5a-r0 do_prepare_recipe_sysroot - 15s (pid 538940)
3: runc-docker-1.0.0-rc8+gitAUTOINC+425e105d5a-r0 do_patch - 14s (pid 539068)
Currently 4 running tasks (5557 of 7348) 75% |################################################################################################################################################# |
0: webruntime-79.0.3945.79-49-r36.3 do_compile (pid 509925) 0% | |
1: nodejs-12.14.1-r0 do_compile - 3h25m40s (pid 509940)
2: runc-docker-1.0.0-rc8+gitAUTOINC+425e105d5a-r0 do_prepare_recipe_sysroot - 17s (pid 538940)
3: runc-docker-1.0.0-rc8+gitAUTOINC+425e105d5a-r0 do_patch - 17s (pid 539068)
ERROR: nodejs-12.14.1-r0 do_compile: Execution of '/home/jaychou/webos/build-webos/BUILD/work/qemux86-webos-linux/nodejs/12.14.1-r0/temp/run.do_compile.509940' failed with exit code 1:

{standard input}: Assembler messages:
{standard input}:179351: Warning: end of file not at end of a line; newline inserted
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
i686-webos-linux-g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[1]: *** [tools/v8_gypfiles/v8_base_without_compiler.target.mk:612: Release/obj.target/v8_base_without_compiler/deps/v8/src/heap/factory.o] Error 1
make[1]: *** Waiting for unfinished jobs....
rm d4fc3e5d46e994b35389acc5ed4f22d927639c74.intermediate 958227d98052f89b6c42a3a7e31c1b8df413dbf5.intermediate
make: *** [Makefile:101: node] Error 2
WARNING: exit code 1 from a shell command.

| i686-webos-linux-g++: fatal error: Killed signal terminated program cc1plus
| compilation terminated.
| [2/7431] CXX obj/v8/torque_generated_initializers/torque_generated_initializers_jumbo_4.o
| [3/7431] CXX obj/v8/torque_generated_initializers/torque_generated_initializers_jumbo_1.o
| [4/7431] CXX obj/v8/torque_generated_initializers/torque_generated_initializers_jumbo_3.o
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/jaychou/webos/build-webos/BUILD/work/qemux86-webos-linux/webruntime/79.0.3945.79-49-r36.3/temp/run.do_compile.509925' failed with exit code 1:
| ninja: Entering directory `/home/jaychou/webos/build-webos/BUILD/work/qemux86-webos-linux/webruntime/79.0.3945.79-49-r36.3/build/Release'
| [1/7431] CXX obj/v8/torque_generated_initializers/torque_generated_initializers_jumbo_2.o
| FAILED: obj/v8/torque_generated_initializers/torque_generated_initializers_jumbo_2.o

#1
cat mcf.status
#!/bin/sh

DO NOT MODIFY! This script is generated by ./mcf. Changes made
here will be lost. Source for this file can be found in
mcf-status.in.
Copyright (c) 2008-2014 LG Electronics, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Run this file to recreate the current configuration.
set -e

exec ./mcf
--enable-bb-number-threads=4
--enable-parallel-make=4
--disable-icecc
--enable-icecc-parallel-make=0
--enable-icecc-location=
--enable-icecc-user-package-blacklist=
--enable-icecc-user-class-blacklist=
--enable-icecc-user-package-whitelist=
--enable-icecc-env-exec=
--premirror=
--sstatemirror=
--enable-buildhistory
--enable-buildhistoryauthor=''
--enable-network
--disable-fetch-premirror-only
--disable-generate-mirror-tarballs
qemux86

#2
git log --name-status HEAD^..HEAD
commit e962bdf62d23d3be301e640bcd8496405a7ea567 (HEAD -> master, origin/master, origin/HEAD)
Author: Heegoo Han heegoo.han@lge.com
Date: Mon Apr 5 16:25:22 2021 +0900

daily
M webOS-Emulator-Tips.md

I am at a loss currently as to what should I do, any help would be appreciated,
Thank you in advance.

Hi @initialjie , welcome to the forum!

What is your value for mcf command? If the values are not 1, could you try with 1? Because high value for mcf command often cause build error when do_compile webruntime.

Thanks

Thanks for your reply.
I tried ./mcf -p 4 -b 4 qemux86 at very first(with VM machine memory 4GB) and it failed, then I tried value 2 but still not work, now I am trying increasing the VM machine memory to 8GB and it seems that the sisuation has been improved and the total builind progress has move forward a little more than before, let's see what will happen...

Hi, I have successfully build the NDK for qemux86, thank you!

1 Like