poudriere-devel bulk -a python-related www/chromium build failures (aarch64 context)

From: Mark Millard via freebsd-ports <freebsd-ports_at_freebsd.org>
Date: Thu, 23 Sep 2021 22:07:09 UTC
So far my attempts at an aarch64 native bulk -a have had
www/chromium fail with:

. . .
python3 ../../build/util/python2_action.py ../../third_party/blink/renderer/bindings/scripts/generate_bindings.py --web_idl_database gen/third_party/blink/renderer/bindings/web_idl_database.pickle --r
oot_src_dir ../../ --root_gen_dir gen --output_core_reldir third_party/blink/renderer/bindings/core/v8/ --output_modules_reldir third_party/blink/renderer/bindings/modules/v8/ enumeration callback_fun
ction callback_interface interface namespace typedef union
Traceback (most recent call last):
  File "/wrkdirs/usr/ports/www/chromium/work/chromium-92.0.4515.159/buildtools/freebsd/clang-format", line 34, in <module>
    stdout, stderr = proc.communicate(input=contents)
  File "/usr/local/lib/python3.8/subprocess.py", line 1028, in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
  File "/usr/local/lib/python3.8/subprocess.py", line 1848, in _communicate
    input_view = memoryview(self._input)
TypeError: memoryview: a bytes-like object is required, not 'str'
Traceback (most recent call last):
  File "/wrkdirs/usr/ports/www/chromium/work/chromium-92.0.4515.159/buildtools/freebsd/clang-format", line 34, in <module>
    stdout, stderr = proc.communicate(input=contents)
  File "/usr/local/lib/python3.8/subprocess.py", line 1028, in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
  File "/usr/local/lib/python3.8/subprocess.py", line 1848, in _communicate
    input_view = memoryview(self._input)
TypeError: memoryview: a bytes-like object is required, not 'str'
. . . (more such tracebacks) . . .

I do not see such a failure in the likes of:

http://ampere2.nyi.freebsd.org/data/main-arm64-default/p5f5c0fe00a09_s3fcbde5e88/logs/chromium-92.0.4515.159_2.log

I've yet to figure out why my build attempts are different.

For reference:

The deafult lvm is llvm12.

# pwd
/usr/ports
# ~/fbsd-based-on-what-commit.sh 
branch: main
merge-base: a59b4fa83271ce1a7610973b2a5f3f0362e4bfba
merge-base: CommitDate: 2021-09-21 01:12:16 +0000
a59b4fa83271 (HEAD -> main, freebsd/main, freebsd/HEAD) security/py-scramp: Update to 1.4.1
n558469 (--first-parent --count for merge-base)

# uname -apKU
FreeBSD CA72_16Gp_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #12 main-n249019-0637070b5bca-dirty: Tue Aug 31 02:24:20 PDT 2021     root@CA72_16Gp_ZFS:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch64/sys/GENERIC-NODBG-CA72  arm64 aarch64 1400032 1400032

I do not normally build chromium or do bulk -a runs.
My activity is exploratory to see what problems I'd
run into and if I'd need adjustments to do bulk -a
runs successfully. (It has lead to the (root) file
system being made larger, for example. I also disabled
lang/ratfor because the port does not deal with
platforms that have char as unsigned but the port is
coded requiring a form of signed char. This avoided
unbounded looping and a timeout.)

===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)