Closed pdp7 closed 7 months ago
Do you have googletest installed on your host? It's possible that it picks different version from there instead of the one in OE build.
If that's the case try to temporarily uninstall it and then compare luna-service2 WORKDIR to see what changed.
@shr-project Thank you! I removed googletest and luna-service2 built okay.
$ sudo apt remove googletest
Reading package lists... Done
Building dependency tree
Reading state information... Done
<snip>
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
googletest libgtest-dev
0 upgraded, 0 newly installed, 2 to remove and 41 not upgraded.
After this operation, 21.6 MB disk space will be freed.
Do you want to continue? [Y/n]
$ bitbake luna-service2
Loading cache: 100% |#################################################################################################################| Time: 0:00:00
Loaded 4568 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "x86_64-webos-linux"
MACHINE = "qemux86-64"
DISTRO = "webos"
DISTRO_VERSION = "2.25.0.g"
TUNE_FEATURES = "m64 core2"
TARGET_FPU = ""
WEBOS_DISTRO_RELEASE_CODENAME = "webos-master"
WEBOS_DISTRO_BUILD_ID = "unofficial"
WEBOS_DISTRO_TOPDIR_REVISION = "37dda3376afbd0dd428440547d7fe3364fd66bfa"
WEBOS_DISTRO_TOPDIR_DESCRIBE = "v2.25.0-1-g37dda33"
DATETIME = "20240207025302"
meta-security = "kirkstone:1a3e42cedbd94ca73be45800d0e902fec35d0f0f"
meta-webos-smack
meta-webos-virtualization
meta-webos-raspberrypi = "master:f81893d02a6232ca4b7bfe9d7e0c124e0617a4b4"
meta-raspberrypi = "kirkstone:59a6a1b5dd1e21189adec49c61eae04ed3e70338"
meta-webos
meta-webos-backports-5.0
meta-webos-backports-4.3
meta-webos-backports-4.2
meta-webos-backports-4.1 = "master:f81893d02a6232ca4b7bfe9d7e0c124e0617a4b4"
meta-qt6 = "6.6.0:6c474cfe4fcefda51155afdb3c1995a5c8a47760"
meta-virtualization = "kirkstone:88327090d26955a678c6f8bd2585aad4d802f6c4"
meta-clang = "kirkstone:1602c0ad2a0dc011a3fac94b178a5b9935d78b80"
meta-filesystems
meta-python
meta-networking
meta-multimedia
meta-oe = "kirkstone:402affcc073db39f782c1ebfd718edd5f11eed4c"
meta = "kirkstone:eea685e1caafd8e8121006d3f8b5d0b8a4f2a933"
Initialising tasks: 100% |############################################################################################################| Time: 0:00:00
Sstate summary: Wanted 8 Local 2 Mirrors 0 Missed 6 Current 475 (25% match, 98% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 1769 tasks of which 1750 didn't need to be rerun and all succeeded.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 4 seconds
NOTE: Build completion summary:
NOTE: do_populate_sysroot: 0.0% sstate reuse(0 setscene, 1 scratch)
NOTE: do_deploy_source_date_epoch: 100.0% sstate reuse(1 setscene, 0 scratch)
NOTE: do_package_qa: 0.0% sstate reuse(0 setscene, 1 scratch)
NOTE: do_package: 0.0% sstate reuse(0 setscene, 1 scratch)
NOTE: do_packagedata: 0.0% sstate reuse(0 setscene, 2 scratch)
NOTE: do_package_write_ipk: 0.0% sstate reuse(0 setscene, 1 scratch)
NOTE: do_populate_lic: 100.0% sstate reuse(1 setscene, 0 scratch)
Can you share log.do_configure files of these 2 builds, so that it can be fixed properly to always use the version from OE sysroot and not the one from host?
Here is the log from the successful build:
~/data/build-webos/BUILD/work/qemux86_64-webos-linux/luna-service2/3.21.2-37-r32$ cat ./temp/log.do_configure
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/data/dfustini/build-webos/meta-oe/meta-oe/recipes-test/googletest/googletest_git.bb:do_populate_sysroot', '/data/dfustini/build-webos/meta-webosose/meta-webos/recipes-webos/cmake-modules-webos/cmake-modules-webos-native.bb:do_populate_sysroot', '/data/dfustini/build-webos/meta-webosose/meta-webos/recipes-webos/libpbnjson/libpbnjson.bb:do_populate_sysroot', '/data/dfustini/build-webos/meta-webosose/meta-webos/recipes-webos/pmloglib/pmloglib.bb:do_populate_sysroot', '/data/dfustini/build-webos/oe-core/meta/recipes-core/glib-2.0/glib-2.0_2.72.3.bb:do_populate_sysroot', '/data/dfustini/build-webos/oe-core/meta/recipes-core/glibc/glibc_2.35.bb:do_populate_sysroot', '/data/dfustini/build-webos/oe-core/meta/recipes-core/systemd/systemd-systemctl-native.bb:do_populate_sysroot', '/data/dfustini/build-webos/oe-core/meta/recipes-core/systemd/systemd_250.5.bb:do_populate_sysroot', '/data/dfustini/build-webos/oe-core/meta/recipes-devtools/cmake/cmake-native_3.22.3.bb:do_populate_sysroot', '/data/dfustini/build-webos/oe-core/meta/recipes-devtools/gcc/gcc-cross_11.4.bb:do_populate_sysroot', '/data/dfustini/build-webos/oe-core/meta/recipes-devtools/gcc/gcc-runtime_11.4.bb:do_populate_sysroot', '/data/dfustini/build-webos/oe-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', 'virtual:native:/data/dfustini/build-webos/oe-core/meta/recipes-devtools/ccache/ccache_4.6.bb:do_populate_sysroot', 'virtual:native:/data/dfustini/build-webos/oe-core/meta/recipes-devtools/icecc-create-env/icecc-create-env_0.1.bb:do_populate_sysroot', 'virtual:native:/data/dfustini/build-webos/oe-core/meta/recipes-devtools/ninja/ninja_1.10.2.bb:do_populate_sysroot', 'virtual:native:/data/dfustini/build-webos/oe-core/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/data/dfustini/build-webos/oe-core/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', 'virtual:native:/data/dfustini/build-webos/oe-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot']
NOTE: Installed into sysroot: []
NOTE: Skipping as already exists in sysroot: ['googletest', 'cmake-modules-webos-native', 'libpbnjson', 'pmloglib', 'glib-2.0', 'glibc', 'systemd-systemctl-native', 'systemd', 'cmake-native', 'gcc-cross-x86_64', 'gcc-runtime', 'quilt-native', 'ccache-native', 'icecc-create-env-native', 'ninja-native', 'patch-native', 'pkgconfig-native', 'pseudo-native', 'libtool-native', 'libgcc', 'linux-libc-headers', 'libmpc-native', 'gnu-config-native', 'flex-native', 'texinfo-dummy-native', 'zstd-native', 'xz-native', 'zlib-native', 'mpfr-native', 'binutils-cross-x86_64', 'gmp-native', 're2c-native', 'curl-native', 'bzip2-native', 'ncurses-native', 'kmod', 'libcap', 'util-linux', 'opkg-utils', 'base-files', 'base-passwd', 'zstd', 'shadow-sysroot', 'elfutils', 'shadow-native', 'bash-completion', 'shadow', 'attr-native', 'yajl', 'boost', 'uriparser', 'gmp', 'libffi', 'libpcre', 'zlib', 'gettext-minimal-native', 'm4-native', 'openssl-native', 'xz', 'libcap-ng', 'libxcrypt', 'ncurses', 'util-linux-libuuid', 'libarchive', 'sqlite3', 'curl', 'libmicrohttpd', 'attr', 'bzip2', 'python3', 'icu', 'perl-native', 'lzo', 'openssl', 'libidn2', 'c-ares', 'libgcrypt', 'file', 'gnutls', 'libtirpc', 'libnsl2', 'gdbm', 'readline', 'autoconf-archive', 'make-native', 'gdbm-native', 'libunistring', 'libgpg-error', 'nettle']
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing shell function do_configure
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /data/dfustini/build-webos/BUILD/work/qemux86_64-webos-linux/luna-service2/3.21.2-37-r32/recipe-sysroot-native/usr/bin/x86_64-webos-linux/x86_64-webos-linux-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /data/dfustini/build-webos/BUILD/work/qemux86_64-webos-linux/luna-service2/3.21.2-37-r32/recipe-sysroot-native/usr/bin/x86_64-webos-linux/x86_64-webos-linux-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- cmake-modules-webos: authored for version 1.6.1; using version 1.6.3.
-- CMAKE_BUILD_TYPE: Release
-- ENV{PKG_CONFIG_PATH}: /data/dfustini/build-webos/BUILD/work/qemux86_64-webos-linux/luna-service2/3.21.2-37-r32/recipe-sysroot/usr/lib/pkgconfig:/data/dfustini/build-webos/BUILD/work/qemux86_64-webos-linux/luna-service2/3.21.2-37-r32/recipe-sysroot/usr/share/pkgconfig
-- WEBOS_PROJECT_SUMMARY: Open webOS Luna System Bus library, daemon, and utilities
-- WEBOS_INSTALL_ROOT: (empty => /)
-- WEBOS_COMPONENT_VERSION: 3.21.2
-- WEBOS_API_VERSION: 3.21.2
-- WEBOS_API_VERSION_MAJOR: 3
-- Found PkgConfig: /data/dfustini/build-webos/BUILD/work/qemux86_64-webos-linux/luna-service2/3.21.2-37-r32/recipe-sysroot-native/usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'glib-2.0>=2.32.1'
-- Found glib-2.0, version 2.72.3
-- Checking for module 'pbnjson_c>=2.13.0'
-- Found pbnjson_c, version 2.15.0
-- Checking for module 'pbnjson_cpp>=2.13.0'
-- Found pbnjson_cpp, version 2.15.0
-- Checking for module 'PmLogLib>=3.0.2'
-- Found PmLogLib, version 3.3.0
-- Adding -DWEBOS_TARGET_MACHINE_IMPL_EMULATOR
-- Found Python: /usr/bin/python3 (found version "3.8.10") found components: Interpreter
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Skipping document generation
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_EXPORT_NO_PACKAGE_REGISTRY
CMAKE_INSTALL_BINDIR
CMAKE_INSTALL_DATAROOTDIR
CMAKE_INSTALL_LIBDIR
CMAKE_INSTALL_LIBEXECDIR
CMAKE_INSTALL_LOCALSTATEDIR
CMAKE_INSTALL_SBINDIR
CMAKE_INSTALL_SHAREDSTATEDIR
CMAKE_INSTALL_SYSCONFDIR
FETCHCONTENT_FULLY_DISCONNECTED
Python3_EXECUTABLE
WEBOS_PPM_ENABLED
WEBOS_TARGET_CORE_OS
-- Build files have been written to: /data/dfustini/build-webos/BUILD/work/qemux86_64-webos-linux/luna-service2/3.21.2-37-r32/build
DEBUG: Shell function do_configure finished
DEBUG: Executing python function do_qa_configure
DEBUG: Python function do_qa_configure finished
I am having trouble reproducing the problem:
dfustini@server:~/data/build-webos$ source oe-init-build-env
Altered environment for qemux86-64@webos development
dfustini@server:~/data/build-webos$ bitbake luna-service2 -c clean
Loading cache: 100% |#################################################################################################################| Time: 0:00:00
Loaded 4568 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "x86_64-webos-linux"
MACHINE = "qemux86-64"
DISTRO = "webos"
DISTRO_VERSION = "2.25.0.g"
TUNE_FEATURES = "m64 core2"
TARGET_FPU = ""
WEBOS_DISTRO_RELEASE_CODENAME = "webos-master"
WEBOS_DISTRO_BUILD_ID = "unofficial"
WEBOS_DISTRO_TOPDIR_REVISION = "37dda3376afbd0dd428440547d7fe3364fd66bfa"
WEBOS_DISTRO_TOPDIR_DESCRIBE = "v2.25.0-1-g37dda33"
DATETIME = "20240208061256"
meta-security = "kirkstone:1a3e42cedbd94ca73be45800d0e902fec35d0f0f"
meta-webos-smack
meta-webos-virtualization
meta-webos-raspberrypi = "master:f81893d02a6232ca4b7bfe9d7e0c124e0617a4b4"
meta-raspberrypi = "kirkstone:59a6a1b5dd1e21189adec49c61eae04ed3e70338"
meta-webos
meta-webos-backports-5.0
meta-webos-backports-4.3
meta-webos-backports-4.2
meta-webos-backports-4.1 = "master:f81893d02a6232ca4b7bfe9d7e0c124e0617a4b4"
meta-qt6 = "6.6.0:6c474cfe4fcefda51155afdb3c1995a5c8a47760"
meta-virtualization = "kirkstone:88327090d26955a678c6f8bd2585aad4d802f6c4"
meta-clang = "kirkstone:1602c0ad2a0dc011a3fac94b178a5b9935d78b80"
meta-filesystems
meta-python
meta-networking
meta-multimedia
meta-oe = "kirkstone:402affcc073db39f782c1ebfd718edd5f11eed4c"
meta = "kirkstone:eea685e1caafd8e8121006d3f8b5d0b8a4f2a933"
Initialising tasks: 100% |############################################################################################################| Time: 0:00:00
Sstate summary: Wanted 0 Local 0 Mirrors 0 Missed 0 Current 0 (0% match, 0% complete)
NOTE: No setscene tasks
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 4 seconds
dfustini@server:~/data/build-webos$ s^C
dfustini@server:~/data/build-webos$ sudo apt install googletest
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
binutils-alpha-linux-gnu binutils-powerpc64-linux-gnu binutils-s390x-linux-gnu cpp-10-riscv64-linux-gnu cpp-9-alpha-linux-gnu
cpp-9-powerpc64-linux-gnu cpp-9-s390x-linux-gnu cpp-alpha-linux-gnu cpp-powerpc64-linux-gnu cpp-s390x-linux-gnu gcc-10-cross-base
gcc-10-riscv64-linux-gnu-base gcc-9-alpha-linux-gnu-base gcc-9-cross-base gcc-9-powerpc64-linux-gnu-base gcc-9-s390x-linux-gnu-base
libasan5-ppc64-cross libasan5-s390x-cross libatomic1-alpha-cross libatomic1-ppc64-cross libatomic1-s390x-cross libc6-ppc64-cross
libc6-s390x-cross libgcc-10-dev-riscv64-cross libgcc-9-dev-alpha-cross libgcc-9-dev-ppc64-cross libgcc-9-dev-s390x-cross libgcc-s1-alpha-cross
libgcc-s1-ppc64-cross libgcc-s1-s390x-cross libgomp1-alpha-cross libgomp1-ppc64-cross libgomp1-s390x-cross libitm1-alpha-cross
libitm1-ppc64-cross libitm1-s390x-cross liblsan0-ppc64-cross libstdc++-9-dev-riscv64-cross libstdc++6-ppc64-cross libstdc++6-riscv64-cross
libstdc++6-s390x-cross libtsan0-ppc64-cross libubsan1-ppc64-cross libubsan1-s390x-cross
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
googletest
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
Need to get 623 kB of archives.
After this operation, 4,418 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 googletest all 1.10.0-2 [623 kB]
Fetched 623 kB in 1s (619 kB/s)
Selecting previously unselected package googletest.
(Reading database ... 476562 files and directories currently installed.)
Preparing to unpack .../googletest_1.10.0-2_all.deb ...
Unpacking googletest (1.10.0-2) ...
Setting up googletest (1.10.0-2) ...
dfustini@server:~/data/build-webos$ bitbake luna-service2
Loading cache: 100% |#################################################################################################################| Time: 0:00:00
Loaded 4568 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "x86_64-webos-linux"
MACHINE = "qemux86-64"
DISTRO = "webos"
DISTRO_VERSION = "2.25.0.g"
TUNE_FEATURES = "m64 core2"
TARGET_FPU = ""
WEBOS_DISTRO_RELEASE_CODENAME = "webos-master"
WEBOS_DISTRO_BUILD_ID = "unofficial"
WEBOS_DISTRO_TOPDIR_REVISION = "37dda3376afbd0dd428440547d7fe3364fd66bfa"
WEBOS_DISTRO_TOPDIR_DESCRIBE = "v2.25.0-1-g37dda33"
DATETIME = "20240208061342"
meta-security = "kirkstone:1a3e42cedbd94ca73be45800d0e902fec35d0f0f"
meta-webos-smack
meta-webos-virtualization
meta-webos-raspberrypi = "master:f81893d02a6232ca4b7bfe9d7e0c124e0617a4b4"
meta-raspberrypi = "kirkstone:59a6a1b5dd1e21189adec49c61eae04ed3e70338"
meta-webos
meta-webos-backports-5.0
meta-webos-backports-4.3
meta-webos-backports-4.2
meta-webos-backports-4.1 = "master:f81893d02a6232ca4b7bfe9d7e0c124e0617a4b4"
meta-qt6 = "6.6.0:6c474cfe4fcefda51155afdb3c1995a5c8a47760"
meta-virtualization = "kirkstone:88327090d26955a678c6f8bd2585aad4d802f6c4"
meta-clang = "kirkstone:1602c0ad2a0dc011a3fac94b178a5b9935d78b80"
meta-filesystems
meta-python
meta-networking
meta-multimedia
meta-oe = "kirkstone:402affcc073db39f782c1ebfd718edd5f11eed4c"
meta = "kirkstone:eea685e1caafd8e8121006d3f8b5d0b8a4f2a933"
Initialising tasks: 100% |############################################################################################################| Time: 0:00:00
Sstate summary: Wanted 7 Local 7 Mirrors 0 Missed 0 Current 476 (100% match, 100% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 1769 tasks of which 1768 didn't need to be rerun and all succeeded.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 4 seconds
NOTE: Build completion summary:
NOTE: do_populate_sysroot: 100.0% sstate reuse(1 setscene, 0 scratch)
NOTE: do_package_qa: 100.0% sstate reuse(1 setscene, 0 scratch)
NOTE: do_packagedata: 100.0% sstate reuse(1 setscene, 0 scratch)
NOTE: do_package_write_ipk: 100.0% sstate reuse(1 setscene, 0 scratch)
NOTE: do_populate_lic: 100.0% sstate reuse(1 setscene, 0 scratch)
dfustini@server:~/data/build-webos$
I am following https://github.com/webosose/build-webos and using the master branch.
bitbake webos-image
encounters the following error:This seems to be the affected package:
The git log for meta-webos directory:
This error occurs multiple times in log.do_compile.3998572