G’day
Trying to get a quick balenaos build going - ran into the find error below, find works fine out of the Python process call.
My goal is to enable a few existing modules and flags in the base BalenaOS to get the NUC spin working for my device.
My main dev machine is Arch, not a directly supported Yocto host platform but that really should be fine. Before I re-do the whole thing in a Ubuntu container - is there a quick fix for the below ? Barring that, seems likely a balena build container already exists - are there any current docs on that ?
❯ ./balena-yocto-scripts/build/barys -m genericx86-64
Building JSON manifest...
audited 3 packages in 1.224s
found 0 vulnerabilities
test_append_and_override_1 (bb.tests.data.TestOverrides) ... ok
...Done
test_append_and_override_3 (bb.tests.data.TestOverrides) ... ok
  _           _                   ___  ____
 | |__   __ _| | ___ _ __   __ _ / _ \/ ___|
 | '_ \ / _` | |/ _ \ '_ \ / _` | | | \___ \
 | |_) | (_| | |  __/ | | | (_| | |_| |___) |
 |_.__/ \__,_|_|\___|_| |_|\__,_|\___/|____/
test_one_override (bb.tests.data.TestOverrides) ... ok
 -------------------------------------------- 
test_remove_with_override (bb.tests.data.TestOverrides) ... ok
Resin specific images available:
	resin-image-flasher
test_append (bb.tests.data.TestRemoteConcat) ... ok
Intel NUC                                : $ MACHINE=genericx86-64 bitbake resin-image-flasher
Microsoft Surface Go (NEW)               : $ MACHINE=surface-go bitbake resin-image-flasher
Microsoft Surface 6 (NEW)                : $ MACHINE=surface-pro-6 bitbake resin-image-flasher
[000000002][LOG]BalenaOS build initialized in directory: build.
[000000002][LOG]Run build for genericx86-64: MACHINE=genericx86-64 bitbake resin-image-flasher 
[000000002][LOG]This might take a while ...
WARNING: Host distribution "arch" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |###################################################################################################################################################################################################################################################################| Time: 0:00:00
Loaded 3341 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION           = "1.42.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "arch"
TARGET_SYS           = "x86_64-poky-linux"
MACHINE              = "genericx86-64"
DISTRO               = "balena-os"
DISTRO_VERSION       = "2.48.0"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""
meta                 
meta-poky            
meta-yocto-bsp       = "HEAD:b021992106c6b5ba02b825afa7dcc422b135b59b"
meta-oe              
meta-filesystems     
meta-networking      
meta-python          = "HEAD:6fa72d587aab8e9d56d67a2552eb9cfbe25c86d2"
meta-balena-common   
meta-balena-warrior  = "HEAD:19c838a3322f6b419a6c2a08fa33677016a2bac9"
meta-balena-genericx86 = "master:af1de5a1b7acf31cbf66476bda754a2ee951d4b1"
meta-rust            = "HEAD:c5ff05d1e99c1e80844c1673456e2368499918c7"
WARNING: Your host glibc verson (2.31) is newer than that in uninative (2.30). Disabling uninative so that sstate is not corrupted.
Initialising tasks: 100% |##############################################################################################################################################################################################################################################################| Time: 0:00:02
Sstate summary: Wanted 1407 Found 0 Missed 1407 Current 72 (0% match, 4% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: base-files-3.0.14-r89 do_package: Fatal errors occurred in subprocesses:
Command '['file', '-b', '/home/thys/balena/balena-intel/build/tmp/work/genericx86_64-poky-linux/base-files/3.0.14-r89/package/etc/skel/.profile']' died with <Signals.SIGSYS: 31>.: Traceback (most recent call last):
  File "/home/thys/balena/balena-intel/build/../layers/poky/meta/lib/oe/utils.py", line 276, in run
    ret = self._target(*self._args, **self._kwargs)
  File "/home/thys/balena/balena-intel/build/../layers/poky/meta/lib/oe/package.py", line 74, in is_elf
    result = subprocess.check_output(["file", "-b", path], stderr=subprocess.STDOUT).decode("utf-8")
  File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 512, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['file', '-b', '/home/thys/balena/balena-intel/build/tmp/work/genericx86_64-poky-linux/base-files/3.0.14-r89/package/etc/skel/.profile']' died with <Signals.SIGSYS: 31>.
Command '['file', '-b', '/home/thys/balena/balena-intel/build/tmp/work/genericx86_64-poky-linux/base-files/3.0.14-r89/package/etc/skel/.bashrc']' died with <Signals.SIGSYS: 31>.: Traceback (most recent call last):
  File "/home/thys/balena/balena-intel/build/../layers/poky/meta/lib/oe/utils.py", line 276, in run
    ret = self._target(*self._args, **self._kwargs)
  File "/home/thys/balena/balena-intel/build/../layers/poky/meta/lib/oe/package.py", line 74, in is_elf
    result = subprocess.check_output(["file", "-b", path], stderr=subprocess.STDOUT).decode("utf-8")
  File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 512, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['file', '-b', '/home/thys/balena/balena-intel/build/tmp/work/genericx86_64-poky-linux/base-files/3.0.14-r89/package/etc/skel/.bashrc']' died with <Signals.SIGSYS: 31>.
Test LogExecTTY event class ... ok
test_LogHandler (bb.tests.event.EventClassesTest)
ERROR: base-files-3.0.14-r89 do_package: 
ERROR: base-files-3.0.14-r89 do_package: Function failed: split_and_strip_files
ERROR: Logfile of failure stored in: /home/thys/balena/balena-intel/build/tmp/work/genericx86_64-poky-linux/base-files/3.0.14-r89/temp/log.do_package.2601353
ERROR: Task (/home/thys/balena/balena-intel/build/../layers/poky/meta/recipes-core/base-files/base-files_3.0.14.bb:do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 761 tasks of which 751 didn't need to be rerun and 1 failed.
test_MultipleProviders (bb.tests.event.EventClassesTest)
Summary: 1 task failed:
  /home/thys/balena/balena-intel/build/../layers/poky/meta/recipes-core/base-files/base-files_3.0.14.bb:do_package
Summary: There were 2 WARNING messages shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
[000000020][LOG]Build for genericx86-64 failed. Check failed log in build/tmp/log/cooker/genericx86-64 .
[000000020][LOG]If build for genericx86-64 succeeded, final image should have been generated here:
[000000020][LOG]   build/tmp/deploy/images/genericx86-64/resin-image-flasher-genericx86-64.resinos-img
[000000020][LOG]Done.
❯ file -b /home/thys/balena/balena-intel/build/tmp/work/genericx86_64-poky-linux/base-files/3.0.14-r89/package/etc/skel/.profile
ASCII text
❯ file -b /home/thys/balena/balena-intel/build/tmp/work/genericx86_64-poky-linux/base-files/3.0.14-r89/package/etc/skel/.profile
ASCII text
❯ less build/tmp/log/cooker/genericx86-64/console-latest.log
❯ file -b /home/thys/balena/balena-intel/build/tmp/work/genericx86_64-poky-linux/base-files/3.0.14-r89/package/etc/skel/.bashrc
ASCII text