Own BSP: Cannot build: systemd errors

Hi!

As i already mentioned in another thread i am trying to build balenaOs with a custom bsp for Asus tinkerboard s (just learning purposes). I don’t use the balena tinkerboard layer intentionally.

So whats the problem:
I managed to setup an environment, added all layers corresponding to the yocto release (thud) and tried the build via barys:

./barys
Building JSON manifest...
audited 3 packages in 0.567s
found 0 vulnerabilities

...Done

  _____           _        _____   ____  
 |  __ \         (_)      /  _  \ / ___| 
 | |__) |___  ___ _ _ __  | | | || (___  
 |  _  // _ \/ __| | '_ \ | | | | \___ \ 
 | | \ \  __/\__ \ | | | || |_| |  ___) |
 |_|  \_\___||___/_|_| |_|\_____/ |____/ 
                                         
 ---------------------------------------- 

Resin specific images available:
	resin-image

Asus Tinkerboard S                       : $ MACHINE=tinkerboard bitbake resin-image

[000000001][LOG]BalenaOS build initialized in directory: build.
[000000001][LOG]Run build for tinkerboard: MACHINE=tinkerboard bitbake resin-image 
[000000001][LOG]This might take a while ...
WARNING: Layer balena-rockchip should set LAYERSERIES_COMPAT_balena-rockchip in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer balena-rockchip should set LAYERSERIES_COMPAT_balena-rockchip in its conf/layer.conf file to list the core layer names it is compatible with.
Loading cache: 100% |##########################################################################################################################| Time: 0:00:00
Loaded 3152 entries from dependency cache.
Parsing recipes: 100% |########################################################################################################################| Time: 0:00:01
Parsing of 2178 .bb files complete (2176 cached, 2 parsed). 3154 targets, 313 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.40.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "tinkerboard"
DISTRO               = "balena-os"
DISTRO_VERSION       = "2.37.0"
TUNE_FEATURES        = "arm armv7ve vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta                 
meta-poky            = "master:1cab405d88149fd63322a867c6adb4a80ba68db3"
meta-oe              
meta-filesystems     
meta-networking      
meta-python          = "master:4cd3a39f22a2712bfa8fc657d09fe2c7765a4005"
meta-rockchip        = "master:386fbc0b2121548a4988c6cab5e2909d31a020d8"
meta-resin-common    
meta-balena-thud     = "master:bd321e17f1775a581bc8d34ce6e27f040deb799f"
meta-balena-rockchip = "master:3c67d609b3c52de09b3086bb2cdaee23577b4f20"
meta-rust            = "master:84710b341be53cc2af13ecc8ae87773cf84687bf"

Initialising tasks: 100% |#####################################################################################################################| Time: 0:00:01
Sstate summary: Wanted 1266 Found 0 Missed 1266 Current 8 (0% match, 0% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: freetype-2.9.1-r0 do_fetch: Failed to fetch URL http://downloads.sourceforge.net/freetype/freetype-2.9.1.tar.bz2, attempting MIRRORS if available
WARNING: libusb1-1.0.22-r0 do_fetch: Failed to fetch URL http://downloads.sourceforge.net/libusb/libusb-1.0.22.tar.bz2, attempting MIRRORS if available
WARNING: healthdog-0.1.0.AUTOINC+a10155844f-r0 do_fetch: Failed to fetch URL git://git@github.com/resin-os/healthdog-rs.git;protocol=ssh, attempting MIRRORS if available
WARNING: bindmount-0.0.1.AUTOINC+f597fb0266-r0 do_fetch: Failed to fetch URL git://git@github.com/resin-os/resinos-bindmount.git;protocol=ssh, attempting MIRRORS if available
WARNING: os-config-1.1.1-r0 do_fetch: Failed to fetch URL git://git@github.com/resin-os/os-config.git;protocol=ssh, attempting MIRRORS if available
ERROR: systemd-1_239-r0 do_compile: Function failed: do_compile (log file is located at /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/temp/log.do_compile.17400)
ERROR: Logfile of failure stored in: /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/temp/log.do_compile.17400
Log data follows:
| DEBUG: Executing shell function do_compile
| [1/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_sed_c1880a46e0849d97cfafcc4a19692db93015c65d.dat
| [2/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_sed_d0a271f4dafe58330e63863670240bcd627b60fe.dat
| [3/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_sed_318e648848373633a1bb3e9dbfa75923584176be.dat
| [4/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_sed_0a1592fe8988a038ab2a3926fbf0e51f0b8979e0.dat
| [5/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_sed_6a6049a5c6f363140b4cc895f1b5d077d593635b.dat
| [6/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_sed_6269fccd817c8cb2ad27273b5e8ef95fae3c332e.dat
| [7/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_sed_c54b295118be8cc5aca6bd8a761d76d3d9ef9082.dat
| [8/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_sed_5b72534a40f0c0c6f36d9432b148b6f802dfa198.dat
| [9/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_sed_21f315f694d5bb0b8676e2d92793274498da7f83.dat
| [10/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_sed_021966d26fb490434fc380059fc27ee3fd876f11.dat
| [11/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_sed_a1177570f6139ba07031ea8d6853be64baae800d.dat
| [12/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_sed_2016e17b0100c54d88fd6fd76843d890246dfc45.dat
| [13/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_generate-af-list.sh_918a954463b1c30cef688fea8151d49cff52f1d2.dat
| [14/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_generate-arphrd-list.sh_12f788fedfd2858f3d4d668a0c57edd560e55039.dat
| [15/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_generate-errno-list.sh_da84fb29972ea5be046eb40e04e0acd60b1163a4.dat
| [16/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_generate-cap-list.sh_afb32641e5cc2b25ef63cdcfc1675cee31e57acd.dat
| [17/1079] arm-poky-linux-gnueabi-gcc -march=armv7ve -mthumb -mfpu=neon -mfloat-abi=hard -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot -Isrc/libsystemd/src@libsystemd@@systemd_static@sta -Isrc/libsystemd -I../git/src/libsystemd -Isrc/basic -I../git/src/basic -Isrc/shared -I../git/src/shared -Isrc/systemd -I../git/src/systemd -Isrc/journal -I../git/src/journal -Isrc/journal-remote -I../git/src/journal-remote -Isrc/nspawn -I../git/src/nspawn -Isrc/resolve -I../git/src/resolve -Isrc/timesync -I../git/src/timesync -I../git/src/time-wait-sync -Isrc/login -I../git/src/login -Isrc/udev -I../git/src/udev -Isrc/libudev -I../git/src/libudev -Isrc/core -I../git/src/core -I../git/src/libsystemd/sd-bus -I../git/src/libsystemd/sd-device -I../git/src/libsystemd/sd-hwdb -I../git/src/libsystemd/sd-id128 -I../git/src/libsystemd/sd-netlink -I../git/src/libsystemd/sd-network -Isrc/libsystemd-network -I../git/src/libsystemd-network -I. -I../git/ -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=gnu99 -Wextra -Werror=undef -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wfloat-equal -Wsuggest-attribute=noreturn -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=missing-declarations -Werror=return-type -Werror=incompatible-pointer-types -Werror=format=2 -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wimplicit-fallthrough=5 -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Werror=overflow -Werror=shift-count-overflow -Werror=shift-overflow=2 -Wdate-time -Wnested-externs -ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -fstack-protector -fstack-protector-strong --param=ssp-buffer-size=4 -fPIE -ffunction-sections -fdata-sections -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wno-format-signedness -Wno-error=nonnull -Werror=shadow -include config.h -fPIC -pthread -fvisibility=default -march=armv7ve -mthumb -mfpu=neon -mfloat-abi=hard -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0=/usr/src/debug/systemd/1_239-r0 -fdebug-prefix-map=/opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot= -fdebug-prefix-map=/opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native= -MD -MQ 'src/libsystemd/src@libsystemd@@systemd_static@sta/sd-utf8_sd-utf8.c.o' -MF 'src/libsystemd/src@libsystemd@@systemd_static@sta/sd-utf8_sd-utf8.c.o.d' -o 'src/libsystemd/src@libsystemd@@systemd_static@sta/sd-utf8_sd-utf8.c.o' -c ../git/src/libsystemd/sd-utf8/sd-utf8.c
| FAILED: src/libsystemd/src@libsystemd@@systemd_static@sta/sd-utf8_sd-utf8.c.o
| arm-poky-linux-gnueabi-gcc -march=armv7ve -mthumb -mfpu=neon -mfloat-abi=hard -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot -Isrc/libsystemd/src@libsystemd@@systemd_static@sta -Isrc/libsystemd -I../git/src/libsystemd -Isrc/basic -I../git/src/basic -Isrc/shared -I../git/src/shared -Isrc/systemd -I../git/src/systemd -Isrc/journal -I../git/src/journal -Isrc/journal-remote -I../git/src/journal-remote -Isrc/nspawn -I../git/src/nspawn -Isrc/resolve -I../git/src/resolve -Isrc/timesync -I../git/src/timesync -I../git/src/time-wait-sync -Isrc/login -I../git/src/login -Isrc/udev -I../git/src/udev -Isrc/libudev -I../git/src/libudev -Isrc/core -I../git/src/core -I../git/src/libsystemd/sd-bus -I../git/src/libsystemd/sd-device -I../git/src/libsystemd/sd-hwdb -I../git/src/libsystemd/sd-id128 -I../git/src/libsystemd/sd-netlink -I../git/src/libsystemd/sd-network -Isrc/libsystemd-network -I../git/src/libsystemd-network -I. -I../git/ -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=gnu99 -Wextra -Werror=undef -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wfloat-equal -Wsuggest-attribute=noreturn -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=missing-declarations -Werror=return-type -Werror=incompatible-pointer-types -Werror=format=2 -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wimplicit-fallthrough=5 -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Werror=overflow -Werror=shift-count-overflow -Werror=shift-overflow=2 -Wdate-time -Wnested-externs -ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -fstack-protector -fstack-protector-strong --param=ssp-buffer-size=4 -fPIE -ffunction-sections -fdata-sections -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wno-format-signedness -Wno-error=nonnull -Werror=shadow -include config.h -fPIC -pthread -fvisibility=default -march=armv7ve -mthumb -mfpu=neon -mfloat-abi=hard -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0=/usr/src/debug/systemd/1_239-r0 -fdebug-prefix-map=/opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot= -fdebug-prefix-map=/opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native= -MD -MQ 'src/libsystemd/src@libsystemd@@systemd_static@sta/sd-utf8_sd-utf8.c.o' -MF 'src/libsystemd/src@libsystemd@@systemd_static@sta/sd-utf8_sd-utf8.c.o.d' -o 'src/libsystemd/src@libsystemd@@systemd_static@sta/sd-utf8_sd-utf8.c.o' -c ../git/src/libsystemd/sd-utf8/sd-utf8.c
| In file included from ../git/src/basic/utf8.h:10,
|                  from ../git/src/libsystemd/sd-utf8/sd-utf8.c:7:
| ../git/src/basic/missing.h:1409:8: error: redefinition of 'struct statx_timestamp'
|  struct statx_timestamp {
|         ^~~~~~~~~~~~~~~
| In file included from /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot/usr/include/sys/stat.h:446,
|                  from ../git/src/basic/missing.h:22,
|                  from ../git/src/basic/utf8.h:10,
|                  from ../git/src/libsystemd/sd-utf8/sd-utf8.c:7:
| /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot/usr/include/bits/statx.h:25:8: note: originally defined here
|  struct statx_timestamp
|         ^~~~~~~~~~~~~~~
| In file included from ../git/src/basic/utf8.h:10,
|                  from ../git/src/libsystemd/sd-utf8/sd-utf8.c:7:
| ../git/src/basic/missing.h:1414:8: error: redefinition of 'struct statx'
|  struct statx {
|         ^~~~~
| In file included from /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot/usr/include/sys/stat.h:446,
|                  from ../git/src/basic/missing.h:22,
|                  from ../git/src/basic/utf8.h:10,
|                  from ../git/src/libsystemd/sd-utf8/sd-utf8.c:7:
| /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot/usr/include/bits/statx.h:36:8: note: originally defined here
|  struct statx
|         ^~~~~
| [18/1079] arm-poky-linux-gnueabi-gcc -march=armv7ve -mthumb -mfpu=neon ......... -MQ 'src/libsystemd/src@libsystemd@@systemd_static@sta/sd-path_sd-path.c.o' -MF 'src/libsystemd/src@libsystemd@@systemd_static@sta/sd-path_sd-path.c.o.d' -o 'src/libsystemd/src@libsystemd@@systemd_static@sta/sd-path_sd-path.c.o' -c ../git/src/libsystemd/sd-path/sd-path.c
| FAILED: src/libsystemd/src@libsystemd@@systemd_static@sta/sd-path_sd-path.c.o
| arm-poky-linux-gnueabi-gcc -march=armv7ve -mthumb -mfpu=neon ............... -MQ 'src/libsystemd/src@libsystemd@@systemd_static@sta/sd-path_sd-path.c.o' -MF 'src/libsystemd/src@libsystemd@@systemd_static@sta/sd-path_sd-path.c.o.d' -o 'src/libsystemd/src@libsystemd@@systemd_static@sta/sd-path_sd-path.c.o' -c ../git/src/libsystemd/sd-path/sd-path.c
| In file included from ../git/src/basic/util.h:28,
|                  from ../git/src/basic/architecture.h:7,
|                  from ../git/src/libsystemd/sd-path/sd-path.c:8:
| ../git/src/basic/missing.h:1409:8: error: redefinition of 'struct statx_timestamp'
|  struct statx_timestamp {
|         ^~~~~~~~~~~~~~~
| In file included from /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot/usr/include/sys/stat.h:446,
|                  from ../git/src/basic/util.h:19,
|                  from ../git/src/basic/architecture.h:7,
|                  from ../git/src/libsystemd/sd-path/sd-path.c:8:
| /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot/usr/include/bits/statx.h:25:8: note: originally defined here
|  struct statx_timestamp
|         ^~~~~~~~~~~~~~~
| In file included from ../git/src/basic/util.h:28,
|                  from ../git/src/basic/architecture.h:7,
|                  from ../git/src/libsystemd/sd-path/sd-path.c:8:
| ../git/src/basic/missing.h:1414:8: error: redefinition of 'struct statx'
|  struct statx {
|         ^~~~~
| In file included from /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot/usr/include/sys/stat.h:446,
|                  from ../git/src/basic/util.h:19,
|                  from ../git/src/basic/architecture.h:7,
|                  from ../git/src/libsystemd/sd-path/sd-path.c:8:
| /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot/usr/include/bits/statx.h:36:8: note: originally defined here
|  struct statx
|         ^~~~~
| [19/1079] arm-poky-linux-gnueabi-gcc -march=armv7ve -mthumb -mfpu=neon ............... -MQ 'src/libsystemd/src@libsystemd@@systemd_static@sta/sd-resolve_sd-resolve.c.o' -MF 'src/libsystemd/src@libsystemd@@systemd_static@sta/sd-resolve_sd-resolve.c.o.d' -o 'src/libsystemd/src@libsystemd@@systemd_static@sta/sd-resolve_sd-resolve.c.o' -c ../git/src/libsystemd/sd-resolve/sd-resolve.c
| FAILED: src/libsystemd/src@libsystemd@@systemd_static@sta/sd-resolve_sd-resolve.c.o
| arm-poky-linux-gnueabi-gcc -march=armv7ve -mthumb -mfpu=neon ........... -MQ 'src/libsystemd/src@libsystemd@@systemd_static@sta/sd-resolve_sd-resolve.c.o' -MF 'src/libsystemd/src@libsystemd@@systemd_static@sta/sd-resolve_sd-resolve.c.o.d' -o 'src/libsystemd/src@libsystemd@@systemd_static@sta/sd-resolve_sd-resolve.c.o' -c ../git/src/libsystemd/sd-resolve/sd-resolve.c
| In file included from ../git/src/basic/util.h:28,
|                  from ../git/src/basic/hashmap.h:11,
|                  from ../git/src/shared/dns-domain.h:12,
|                  from ../git/src/libsystemd/sd-resolve/sd-resolve.c:20:
| ../git/src/basic/missing.h:1409:8: error: redefinition of 'struct statx_timestamp'
|  struct statx_timestamp {
|         ^~~~~~~~~~~~~~~
| In file included from /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot/usr/include/sys/stat.h:446,
|                  from ../git/src/basic/util.h:19,
|                  from ../git/src/basic/hashmap.h:11,
|                  from ../git/src/shared/dns-domain.h:12,
|                  from ../git/src/libsystemd/sd-resolve/sd-resolve.c:20:
| /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot/usr/include/bits/statx.h:25:8: note: originally defined here
|  struct statx_timestamp
|         ^~~~~~~~~~~~~~~
| In file included from ../git/src/basic/util.h:28,
|                  from ../git/src/basic/hashmap.h:11,
|                  from ../git/src/shared/dns-domain.h:12,
|                  from ../git/src/libsystemd/sd-resolve/sd-resolve.c:20:
| ../git/src/basic/missing.h:1414:8: error: redefinition of 'struct statx'
|  struct statx {
|         ^~~~~
| In file included from /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot/usr/include/sys/stat.h:446,
|                  from ../git/src/basic/util.h:19,
|                  from ../git/src/basic/hashmap.h:11,
|                  from ../git/src/shared/dns-domain.h:12,
|                  from ../git/src/libsystemd/sd-resolve/sd-resolve.c:20:
| /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot/usr/include/bits/statx.h:36:8: note: originally defined here
|  struct statx
|         ^~~~~
| [20/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_generate-socket-protocol-list.sh_34f65f6b12a1d228b06db5feeb9c492b7084d0d5.dat
| [21/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_generate-gperfs.py_1eb171f771434164d6c476f1afd8e84af9012e8a.dat
| [22/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_awk_158ec46288f13f6060ee6df999e60238aff7ee45.dat
| [23/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_generate-gperfs.py_9a79163508550ff8b5d0dcd37951b9cfc9814b17.dat
| [24/1079] /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/recipe-sysroot-native/usr/bin/meson --internal exe /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/build/meson-private/meson_exe_awk_5c54e497186597ac3597516525042ff20afea55e.dat
| ninja: build stopped: subcommand failed.
| WARNING: /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/temp/run.do_compile.17400:1 exit 1 from 'ninja -v -j 8'
| ERROR: Function failed: do_compile (log file is located at /opt/projects/marblerun/tinkerboard-commits-test/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/systemd/1_239-r0/temp/log.do_compile.17400)
ERROR: Task (/opt/projects/marblerun/tinkerboard-commits-test/build/../layers/poky/meta/recipes-core/systemd/systemd_239.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2516 tasks of which 131 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /opt/projects/marblerun/tinkerboard-commits-test/build/../layers/poky/meta/recipes-core/systemd/systemd_239.bb:do_compile
Summary: There were 7 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
[000005534][LOG]Build for tinkerboard failed. Check failed log in build/tmp/log/cooker/tinkerboard .
[000005534][LOG]If build for tinkerboard succeeded, final image should have been generated here:
[000005534][LOG]   build/tmp/deploy/images/tinkerboard/resin-image-tinkerboard.resinos-img
[000005534][LOG]Done.
Time: 1h:32m:15s

Note: i shortened the output above a little bit...

At first i tried the upstream ‘thud’ branches of the submodules. Got the error above.
Then i tried to pin down the submodules to the same commits the balena-raspberry project uses. My submodules have the following commits:

meta-balena @ bd321e1
meta-openembedded @ 4cd3a39
meta-rust @ 84710b3
poky @ 1cab405

Still i get the errors. I didn’t find any bbappend layers within meta-raspberry or meta-balena-raspberry for systemd that cope with that error.
Still i wonder how you did build the raspberry pi images with exactly those commits for your submodules. Didn’t you have the same issues there?

Hi there,

Our current new BSP documentation is currently located at https://github.com/balena-os/meta-balena/blob/master/contributing-device-support.md in case you haven’t seen it (I suspect you have). Our OS engineers suspect this may be a little out of date, and are looking to update this in the near future.

We do indeed use the currently pinned submodules for each device type being built, so it sounds like this does work for the RPi variants.

For the moment, I can only suggest that it might be worth tracking down the conflicts, as it working for our other device types does seem to suggest that the redefinition may be in the BSP being imported.

Best regards, Heds