| Message ID | 20260110115148.9069-1-f_l_k@t-online.de |
|---|---|
| State | Accepted |
| Headers | show |
| Series | [meta-oe] btop: update 1.4.5 -> 1.4.6 | expand |
adding native gtest dep is causing build problems with clang/lld as it now
finds the native version instead of target version.
| riscv64-yoe-linux-ld.lld: error:
/mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/btop/1.4.6/recipe-sysroot-native/usr/lib/libgtest_main.a(gtest_main.cc.o)
is incompatible with elf64-littleriscv
| riscv64-yoe-linux-ld.lld: error:
/mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/btop/1.4.6/recipe-sysroot-native/usr/lib/libgtest.a(gtest-all.cc.o)
is incompatible with elf64-littleriscv
| riscv64-yoe-linux-clang++: error: linker command failed with exit code 1
(use -v to see invocation)
| ninja: build stopped: subcommand failed.
| WARNING:
/mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/btop/1.4.6/temp/run.do_compile.1934:154
exit 1 from 'eval ${DESTDIR:+DESTDIR=${DESTDIR} } cmake --build
'/mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/btop/1.4.6/build'
"$@" -- ${EXTRA_OECMAKE_BUILD}'
| WARNING: Backtrace (BB generated script):
| #1: cmake_runcmake_build,
/mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/btop/1.4.6/temp/run.do_compile.1934,
line 154
| #2: cmake_do_compile,
/mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/btop/1.4.6/temp/run.do_compile.1934,
line 148
| #3: do_compile,
/mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/btop/1.4.6/temp/run.do_compile.1934,
line 143
| #4: main,
/mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/btop/1.4.6/temp/run.do_compile.1934,
line 167
On Sat, Jan 10, 2026 at 3:51 AM Markus Volk via lists.openembedded.org
<f_l_k=t-online.de@lists.openembedded.org> wrote:
> Add 'googletest-native' dependency to fix:
> | CMake Warning at
> /home/flk/bitbake-builds/poky/build/tmp/work/corei7-64-poky-linux/btop/1.4.6/recipe-sysroot-native/usr/share/cmake-4.2/Modules/FetchContent.cmake:2121
> (message):
> | FETCHCONTENT_FULLY_DISCONNECTED is set to true, which requires the
> source
> | directory for dependency googletest to already be populated. This
> | generally means it must not be set to true the first time CMake is run
> in a
> | build directory. The following source directory should already be
> | populated, but it doesn't exist:
> |
> |
> /home/flk/bitbake-builds/poky/build/tmp/work/corei7-64-poky-linux/btop/1.4.6/build/_deps/googletest-src
> |
> | Policy CMP0170 controls enforcement of this requirement.
> | Call Stack (most recent call first):
> |
> /home/flk/bitbake-builds/poky/build/tmp/work/corei7-64-poky-linux/btop/1.4.6/recipe-sysroot-native/usr/share/cmake-4.2/Modules/FetchContent.cmake:2394
> (__FetchContent_Populate)
> | tests/CMakeLists.txt:10 (FetchContent_MakeAvailable)
> |
> |
> | -- Configuring done (1.0s)
> | CMake Error at tests/CMakeLists.txt:14 (target_link_libraries):
> | Target "libbtop_test" links to:
> |
> | GTest::gtest_main
> |
> | but the target was not found. Possible reasons include:
> |
> | * There is a typo in the target name.
> | * A find_package call is missing for an IMPORTED target.
> | * An ALIAS target is missing.
>
> v1.4.6
>
> References | Description | Author(s)
> --- | --- | ---
> 1272 | Skip 'H' and 'HX' suffix in AMD cpu name trimming | @ramdomPTM
> 1268 | feature: add process renice functionality | @goddamnparticle
> 1285 | Revert "Use /sys/dev/block/MAJOR:MINOR instead of /sys/block/NAME
> for disk I/O" #1270 | @deckstose
> 1277 | feat: Introduce cpu frequency display modes | @emiliopedrollo
> 1282 | Fix CPU frequency detection for LoongArch CPUs | @Twopic2
> 1275 | fix arrow keys that send 'O' instead of '[' | @vandabbin
> 1251 | OpenBSD: battery: add support for watthour and watts sensors |
> @shtrophic
> 1208 | Add Gotham theme | @jrebs
> 1291 | Fix macOS deadlocks and race conditions in collector threads #1292
> | @kuzmeech
> 1296 | fix: btop crash on arm cpu | @emiliopedrollo @zenofile
> 984 | Added ability to set which gpu vendors to enable | @thedustinmiller
> 1274 | added tree toggle of expand/collapse for children of process |
> @irabrine
> 1300 | Use right key codes to match f1 and f2 keys | @vandabbin
> 1305 | Handle missing SMC gracefully on macOS | @achille
> 1309 | Fix redraw in proc list when changing sort order | @vandabbin
> 1304 | Fix load average and GPU watts leaking past box border | @vandabbin
> 1220 | feat: respect effective cpus from cgroup | @deckstose
> 1218 | feat: display container engine | @deckstose
> 1315 | feat: raise cpp standard to c++23 | @deckstose
> d0cbaf7 | Add configuration toggle for terminal synchronization |
> @aristocratos
> 1306 | Implement feat Process list pausing | @vandabbin
> 1322 | flip name, command, and user sorting | @vandabbin
> 1334 | fix tty theme for pause banner | @vandabbin
> 1325 | test: add test harness with ctest | @deckstose
> 1339 | fix: skip first argument of argv | @AlvaroParker
> 1357 | feat: add --themes-dir flag | @adeci
> 1359 | fix: don't over-/underflow when parsing --update argument |
> @yinghao-w
> 1362 | fix segfault on musl systems | @v1cont
> 1363 | Pass only static duration strings to Config::set in
> Config::apply_preset | @yinghao-w
> 1366 | fix: cpu per-thread totals not reaching 100% | @Tom94
> 1367 | Fix: Align boxes when Cpu bottom and Gpu on | @yinghao-w
> 1372 | Minor fixes and improvements for NetBSD | @fraggerfox
> 1377 | Fixed GPU rendering | @TheSovietPancakes
> 1379 | Fix: Always collect GPU data when cpu_graph_lower = "Auto" |
> @yinghao-w
> 1393 | Fix: humanized units shortening | @yinghao-w
> 1401 | Feat: add mouse dragging of scrollbar | @yinghao-w
> 1399 | feat: add cli option to dump default config | @deckstose
> e969f43 | Added "save_config_on_exit" option to configuration |
> @aristocratos
>
> Signed-off-by: Markus Volk <f_l_k@t-online.de>
> ---
> meta-oe/recipes-support/btop/{btop_1.4.5.bb => btop_1.4.6.bb} | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
> rename meta-oe/recipes-support/btop/{btop_1.4.5.bb => btop_1.4.6.bb}
> (90%)
>
> diff --git a/meta-oe/recipes-support/btop/btop_1.4.5.bb
> b/meta-oe/recipes-support/btop/btop_1.4.6.bb
> similarity index 90%
> rename from meta-oe/recipes-support/btop/btop_1.4.5.bb
> rename to meta-oe/recipes-support/btop/btop_1.4.6.bb
> index 0455da384b..eb2b69dba9 100644
> --- a/meta-oe/recipes-support/btop/btop_1.4.5.bb
> +++ b/meta-oe/recipes-support/btop/btop_1.4.6.bb
> @@ -6,8 +6,9 @@ SECTION = "console/utils"
>
> SRC_URI = "git://
> github.com/aristocratos/btop.git;protocol=https;branch=main;tag=v${PV}
> <http://github.com/aristocratos/btop.git;protocol=https;branch=main;tag=v$%7BPV%7D>
> \
> "
> -SRCREV = "a1099d075fa914452366b28c67ff171e21a1f02e"
> +SRCREV = "975e3951daa7d3114112d2cd4ee689cf5ee38745"
>
> +DEPENDS = "googletest-native"
>
> inherit cmake
>
> --
> 2.52.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#123325):
> https://lists.openembedded.org/g/openembedded-devel/message/123325
> Mute This Topic: https://lists.openembedded.org/mt/117189895/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
On Mon, Jan 12 2026 at 10:23:19 -08:00:00, Khem Raj via lists.openembedded.org <raj.khem=gmail.com@lists.openembedded.org> wrote: > adding native gtest dep is causing build problems with clang/lld as > it now finds the native version instead of target version. My mistake. I thought it would require native googletest for testing but it actually wants to link for target. Did some testing and either DEPENDS = "googletest" or EXTRA_OECMAKE += "-DBUILD_TESTING=OFF" would fix the issue as well. Maybe the latter would be the better fix since tests are not being installed and run on target?
On Mon, Jan 12, 2026 at 11:00 AM Markus Volk via lists.openembedded.org <f_l_k=t-online.de@lists.openembedded.org> wrote: > On Mon, Jan 12 2026 at 10:23:19 -08:00:00, Khem Raj via > lists.openembedded.org <raj.khem=gmail.com@lists.openembedded.org> wrote: > > adding native gtest dep is causing build problems with clang/lld as it now > finds the native version instead of target version. > > > My mistake. I thought it would require native googletest for testing but > it actually wants to link for target. > > Did some testing and either > > DEPENDS = "googletest" > or > EXTRA_OECMAKE += "-DBUILD_TESTING=OFF" > yeah maybe turn it off for now. > > would fix the issue as well. > > Maybe the latter would be the better fix since tests are not being > installed and run on target? > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#123389): > https://lists.openembedded.org/g/openembedded-devel/message/123389 > Mute This Topic: https://lists.openembedded.org/mt/117189895/1997914 > Group Owner: openembedded-devel+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ > raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- > >
diff --git a/meta-oe/recipes-support/btop/btop_1.4.5.bb b/meta-oe/recipes-support/btop/btop_1.4.6.bb similarity index 90% rename from meta-oe/recipes-support/btop/btop_1.4.5.bb rename to meta-oe/recipes-support/btop/btop_1.4.6.bb index 0455da384b..eb2b69dba9 100644 --- a/meta-oe/recipes-support/btop/btop_1.4.5.bb +++ b/meta-oe/recipes-support/btop/btop_1.4.6.bb @@ -6,8 +6,9 @@ SECTION = "console/utils" SRC_URI = "git://github.com/aristocratos/btop.git;protocol=https;branch=main;tag=v${PV} \ " -SRCREV = "a1099d075fa914452366b28c67ff171e21a1f02e" +SRCREV = "975e3951daa7d3114112d2cd4ee689cf5ee38745" +DEPENDS = "googletest-native" inherit cmake
Add 'googletest-native' dependency to fix: | CMake Warning at /home/flk/bitbake-builds/poky/build/tmp/work/corei7-64-poky-linux/btop/1.4.6/recipe-sysroot-native/usr/share/cmake-4.2/Modules/FetchContent.cmake:2121 (message): | FETCHCONTENT_FULLY_DISCONNECTED is set to true, which requires the source | directory for dependency googletest to already be populated. This | generally means it must not be set to true the first time CMake is run in a | build directory. The following source directory should already be | populated, but it doesn't exist: | | /home/flk/bitbake-builds/poky/build/tmp/work/corei7-64-poky-linux/btop/1.4.6/build/_deps/googletest-src | | Policy CMP0170 controls enforcement of this requirement. | Call Stack (most recent call first): | /home/flk/bitbake-builds/poky/build/tmp/work/corei7-64-poky-linux/btop/1.4.6/recipe-sysroot-native/usr/share/cmake-4.2/Modules/FetchContent.cmake:2394 (__FetchContent_Populate) | tests/CMakeLists.txt:10 (FetchContent_MakeAvailable) | | | -- Configuring done (1.0s) | CMake Error at tests/CMakeLists.txt:14 (target_link_libraries): | Target "libbtop_test" links to: | | GTest::gtest_main | | but the target was not found. Possible reasons include: | | * There is a typo in the target name. | * A find_package call is missing for an IMPORTED target. | * An ALIAS target is missing. v1.4.6 References | Description | Author(s) --- | --- | --- 1272 | Skip 'H' and 'HX' suffix in AMD cpu name trimming | @ramdomPTM 1268 | feature: add process renice functionality | @goddamnparticle 1285 | Revert "Use /sys/dev/block/MAJOR:MINOR instead of /sys/block/NAME for disk I/O" #1270 | @deckstose 1277 | feat: Introduce cpu frequency display modes | @emiliopedrollo 1282 | Fix CPU frequency detection for LoongArch CPUs | @Twopic2 1275 | fix arrow keys that send 'O' instead of '[' | @vandabbin 1251 | OpenBSD: battery: add support for watthour and watts sensors | @shtrophic 1208 | Add Gotham theme | @jrebs 1291 | Fix macOS deadlocks and race conditions in collector threads #1292 | @kuzmeech 1296 | fix: btop crash on arm cpu | @emiliopedrollo @zenofile 984 | Added ability to set which gpu vendors to enable | @thedustinmiller 1274 | added tree toggle of expand/collapse for children of process | @irabrine 1300 | Use right key codes to match f1 and f2 keys | @vandabbin 1305 | Handle missing SMC gracefully on macOS | @achille 1309 | Fix redraw in proc list when changing sort order | @vandabbin 1304 | Fix load average and GPU watts leaking past box border | @vandabbin 1220 | feat: respect effective cpus from cgroup | @deckstose 1218 | feat: display container engine | @deckstose 1315 | feat: raise cpp standard to c++23 | @deckstose d0cbaf7 | Add configuration toggle for terminal synchronization | @aristocratos 1306 | Implement feat Process list pausing | @vandabbin 1322 | flip name, command, and user sorting | @vandabbin 1334 | fix tty theme for pause banner | @vandabbin 1325 | test: add test harness with ctest | @deckstose 1339 | fix: skip first argument of argv | @AlvaroParker 1357 | feat: add --themes-dir flag | @adeci 1359 | fix: don't over-/underflow when parsing --update argument | @yinghao-w 1362 | fix segfault on musl systems | @v1cont 1363 | Pass only static duration strings to Config::set in Config::apply_preset | @yinghao-w 1366 | fix: cpu per-thread totals not reaching 100% | @Tom94 1367 | Fix: Align boxes when Cpu bottom and Gpu on | @yinghao-w 1372 | Minor fixes and improvements for NetBSD | @fraggerfox 1377 | Fixed GPU rendering | @TheSovietPancakes 1379 | Fix: Always collect GPU data when cpu_graph_lower = "Auto" | @yinghao-w 1393 | Fix: humanized units shortening | @yinghao-w 1401 | Feat: add mouse dragging of scrollbar | @yinghao-w 1399 | feat: add cli option to dump default config | @deckstose e969f43 | Added "save_config_on_exit" option to configuration | @aristocratos Signed-off-by: Markus Volk <f_l_k@t-online.de> --- meta-oe/recipes-support/btop/{btop_1.4.5.bb => btop_1.4.6.bb} | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename meta-oe/recipes-support/btop/{btop_1.4.5.bb => btop_1.4.6.bb} (90%)