Build Failure, rpi4-64

Hi,

I am using Ubuntu 18.04.06 LTS attempting to build the raspberry pi 64 bit image.

I used these steps:

git clone GitHub - webosose/build-webos: webOS OSE build layer
cd build-webos/
sudo scripts/prerequisites.sh
cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l
cat /proc/cpuinfo | grep "cpu cores" | uniq
./mcf raspberrypi4-64
source oe-init-build-env
bitbake webos-image
cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l
cat /proc/cpuinfo | grep "cpu cores" | uniq
./mcf -p 1 -b 2 raspberrypi4-64
source oe-init-build-env
bitbake webos-image

I get this error:

[646/1812] /home/alex/build-webos/BUILD/work/raspberrypi4_64-webos-linux/qtbase/6.2.2-r0/recipe-sysroot-native/usr/bin/aarch64-webos-linux/aarch64-webos-linux-g++ -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_TESTCASE_BUILDDIR="/home/alex/build-webos/BUILD/work/raspberrypi4_64-webos-linux/qtbase/6.2.2-r0/build-ptest/tests/auto/corelib/itemmodels/qabstractitemmodel" -DQT_TESTCASE_SOURCEDIR="/home/alex/build-webos/BUILD/work/raspberrypi4_64-webos-linux/qtbase/6.2.2-r0/git/tests/auto/corelib/itemmodels/qabstractitemmodel" -DQT_TESTLIB_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -Itests/auto/corelib/itemmodels/qabstractitemmodel/tst_qabstractitemmodel_autogen/include -I/home/alex/build-webos/BUILD/work/raspberrypi4_64-webos-linux/qtbase/6.2.2-r0/git/tests/auto/corelib/itemmodels/qabstractitemmodel -Itests/auto/corelib/itemmodels/qabstractitemmodel -Iinclude -I/home/alex/build-webos/BUILD/work/raspberrypi4_64-webos-linux/qtbase/6.2.2-r0/git/tests/auto/corelib/itemmodels/qabstractitemmodel/../../../other/qabstractitemmodelutils -isystem /home/alex/build-webos/BUILD/work/raspberrypi4_64-webos-linux/qtbase/6.2.2-r0/image/usr/include/QtCore -isystem /home/alex/build-webos/BUILD/work/raspberrypi4_64-webos-linux/qtbase/6.2.2-r0/image/usr/include -isystem /home/alex/build-webos/BUILD/work/raspberrypi4_64-webos-linux/qtbase/6.2.2-r0/recipe-sysroot-native/usr/lib/mkspecs/linux-g++ -isystem /home/alex/build-webos/BUILD/work/raspberrypi4_64-webos-linux/qtbase/6.2.2-r0/recipe-sysroot-native/usr/include -isystem /home/alex/build-webos/BUILD/work/raspberrypi4_64-webos-linux/qtbase/6.2.2-r0/image/usr/include/QtTest -isystem /home/alex/build-webos/BUILD/work/raspberrypi4_64-webos-linux/qtbase/6.2.2-r0/image/usr/include/QtGui -mcpu=cortex-a72+crc+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=/home/alex/build-webos/BUILD/work/raspberrypi4_64-webos-linux/qtbase/6.2.2-r0/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/alex/build-webos/BUILD/work/raspberrypi4_64-webos-linux/qtbase/6.2.2-r0=/usr/src/debug/qtbase/6.2.2-r0 -fdebug-prefix-map=/home/alex/build-webos/BUILD/work/raspberrypi4_64-webos-linux/qtbase/6.2.2-r0=/usr/src/debug/qtbase/6.2.2-r0 -fdebug-prefix-map=/home/alex/build-webos/BUILD/work/raspberrypi4_64-webos-linux/qtbase/6.2.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/alex/build-webos/BUILD/work/raspberrypi4_64-webos-linux/qtbase/6.2.2-r0/recipe-sysroot-native= -D__WEBOS__ -D__WEBOS__ -DQFONTCACHE_MIN_COST=512 -fvisibility-inlines-hidden -mcpu=cortex-a72+crc+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=/home/alex/build-webos/BUILD/work/raspberrypi4_64-webos-linux/qtbase/6.2.2-r0/recipe-sysroot -DNDEBUG -O2 -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -pthread -std=gnu++17 -MD -MT tests/auto/corelib/itemmodels/qabstractitemmodel/CMakeFiles/tst_qabstractitemmodel.dir/tst_qabstractitemmodel.cpp.o -MF tests/auto/corelib/itemmodels/qabstractitemmodel/CMakeFiles/tst_qabstractitemmodel.dir/tst_qabstractitemmodel.cpp.o.d -o tests/auto/corelib/itemmodels/qabstractitemmodel/CMakeFiles/tst_qabstractitemmodel.dir/tst_qabstractitemmodel.cpp.o -c /home/alex/build-webos/BUILD/work/raspberrypi4_64-webos-linux/qtbase/6.2.2-r0/git/tests/auto/corelib/itemmodels/qabstractitemmodel/tst_qabstractitemmodel.cpp
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/alex/build-webos/BUILD/work/raspberrypi4_64-webos-linux/qtbase/6.2.2-r0/temp/run.do_install_ptest_base.10417' failed with exit code 1
ERROR: Task (/home/alex/build-webos/meta-qt6/recipes-qt/qt6/qtbase_git.bb:do_install_ptest_base) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2308 tasks of which 2136 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 2 seconds
NOTE: Build completion summary:
NOTE: do_populate_sysroot: 0.0% sstate reuse(0 setscene, 14 scratch)
NOTE: do_package: 0.0% sstate reuse(0 setscene, 16 scratch)
NOTE: do_packagedata: 0.0% sstate reuse(0 setscene, 18 scratch)

Summary: 1 task failed:
/home/alex/build-webos/meta-qt6/recipes-qt/qt6/qtbase_git.bb:do_install_ptest_base
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Any ideas on how to resolve this?

Alternately, are there any sources for premade images for the rpi4?

Thanks,

Alex

Hi @BrightRhino, welcome to the forum!

Could you delete all files, and build it again?
First mcf command, without -p and -b options, might cause the error.

Thanks!

Hi,

I deleted the folder, reran the git clone and other commands, this time with

./mcf -p 1 -b 2 raspberrypi4-64

it failed again with this error:

ERROR: Execution of '/home/alex/build-webos/BUILD/work/raspberrypi4_64-webos-linux/qtbase/6.2.2-r0/temp/run.do_install_ptest_base.23227' failed with exit code 1
ERROR: Task (/home/alex/build-webos/meta-qt6/recipes-qt/qt6/qtbase_git.bb:do_install_ptest_base) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1688 tasks of which 0 didn't need to be rerun and 1 failed.

Is there a way to run just this command to test? Also can I try a previous release to build and see if it works differently?

Is there some working build image of a recent release available somewhere to download?

Thanks,

Alex

Could you do the following tasks:

  1. Under the build-webos folder, create a webos-local.conf file.

  2. Write the following command in the file.

    PTEST_ENABLED_pn-qtbase = "0"