==> Synchronizing chroot copy [/home/leming/armv7/root] -> [leming]...done
==> Making package: nsjail 3.4-20 (Thu Sep 25 14:48:59 2025)
==> Retrieving sources...
-> Found nsjail-3.4.tar.gz
-> Cloning kafel git repo...
Cloning into bare repository '/home/leming/work/nsjail/kafel'...
-> Found protobuf-23.patch
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
nsjail-3.4.tar.gz ... Passed
kafel ... Skipped
protobuf-23.patch ... Passed
==> Making package: nsjail 3.4-20 (Thu Sep 25 14:49:21 2025)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[?25lresolving dependencies...
looking for conflicting packages...
Packages (4) abseil-cpp-20250814.1-1 gtest-1.17.0-1 libnl-3.11.0-1
protobuf-32.1-1
Total Download Size: 0.33 MiB
Total Installed Size: 25.59 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
libnl-3.11.0-1-armv7h downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing gtest...
Optional dependencies for gtest
python: gmock generator [installed]
installing abseil-cpp...
installing protobuf...
installing libnl...
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
[?25h==> Checking buildtime dependencies...
==> Installing missing dependencies...
[?25lresolving dependencies...
looking for conflicting packages...
Packages (5) perl-error-0.17030-2 perl-mailtools-2.22-2 perl-timedate-2.33-8
zlib-ng-2.2.5-1 git-2.51.0-1
Total Installed Size: 40.29 MiB
:: Proceed with installation? [Y/n]
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing perl-error...
installing perl-timedate...
installing perl-mailtools...
installing zlib-ng...
installing git...
Optional dependencies for git
git-zsh-completion: upstream zsh completion
tk: gitk and git gui
openssh: ssh transport and crypto
man: show help with `git command --help`
perl-libwww: git svn
perl-term-readkey: git svn and interactive.singlekey setting
perl-io-socket-ssl: git send-email TLS support
perl-authen-sasl: git send-email TLS support
perl-mediawiki-api: git mediawiki support
perl-datetime-format-iso8601: git mediawiki support
perl-lwp-protocol-https: git mediawiki https support
perl-cgi: gitweb (web interface) support
python: git svn & git p4 [installed]
subversion: git svn
org.freedesktop.secrets: keyring credential helper
libsecret: libsecret credential helper [installed]
less: the default pager for git [installed]
:: Running post-transaction hooks...
(1/4) Creating system user accounts...
Creating group 'git' with GID 970.
Creating user 'git' (git daemon user) with UID 970 and GID 970.
(2/4) Reloading system manager configuration...
Skipped: Current root is not booted.
(3/4) Arming ConditionNeedsUpdate...
(4/4) Checking for old perl modules...
[?25h==> Retrieving sources...
-> Found nsjail-3.4.tar.gz
-> Found protobuf-23.patch
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
-> Extracting nsjail-3.4.tar.gz with bsdtar
-> Creating working copy of kafel git repo...
Cloning into 'kafel'...
done.
Switched to a new branch 'makepkg'
==> Starting prepare()...
patching file config.cc
patch: setting attribute security.SMACK64 for security.SMACK64: Operation not permitted
==> Starting build()...
make: Entering directory '/build/nsjail/src/nsjail-3.4'
LDFLAGS="" CFLAGS=-fPIE make -C kafel
make[1]: Entering directory '/build/nsjail/src/nsjail-3.4/kafel'
Makefile:27: warning: overriding recipe for target 'test'
build/Makefile.mk:41: warning: ignoring old recipe for target 'test'
make -C src PROJECT_ROOT=../
make[2]: Entering directory '/build/nsjail/src/nsjail-3.4/kafel/src'
flex lexer.l
bison parser.y
cc -fPIE -std=gnu11 -Iinclude -Wall -Wextra -Werror -O2 -fPIC -fvisibility=hidden -std=gnu11 -I../include -Wall -Wextra -Werror -O2 -c -o context.o context.c
cc -fPIE -std=gnu11 -Iinclude -Wall -Wextra -Werror -O2 -fPIC -fvisibility=hidden -std=gnu11 -I../include -Wall -Wextra -Werror -O2 -c -o codegen.o codegen.c
cc -fPIE -std=gnu11 -Iinclude -Wall -Wextra -Werror -O2 -fPIC -fvisibility=hidden -std=gnu11 -I../include -Wall -Wextra -Werror -O2 -c -o expression.o expression.c
cc -fPIE -std=gnu11 -Iinclude -Wall -Wextra -Werror -O2 -fPIC -fvisibility=hidden -std=gnu11 -I../include -Wall -Wextra -Werror -O2 -c -o includes.o includes.c
distcc[1077] ERROR: compile expression.c on 10.3.0.16:3732/8 failed
distcc[1077] (dcc_build_somewhere) Warning: remote compilation of 'expression.c' failed, retrying locally
distcc[1077] Warning: failed to distribute expression.c to 10.3.0.16:3732/8, running locally instead
cc -fPIE -std=gnu11 -Iinclude -Wall -Wextra -Werror -O2 -fPIC -fvisibility=hidden -std=gnu11 -I../include -Wall -Wextra -Werror -O2 -c -o parser_types.o parser_types.c
cc -fPIE -std=gnu11 -Iinclude -Wall -Wextra -Werror -O2 -fPIC -fvisibility=hidden -std=gnu11 -I../include -Wall -Wextra -Werror -O2 -c -o policy.o policy.c
cc -fPIE -std=gnu11 -Iinclude -Wall -Wextra -Werror -O2 -fPIC -fvisibility=hidden -std=gnu11 -I../include -Wall -Wextra -Werror -O2 -c -o range_rules.o range_rules.c
distcc[1076] ERROR: compile codegen.c on 10.3.0.15:3732/8 failed
distcc[1076] (dcc_build_somewhere) Warning: remote compilation of 'codegen.c' failed, retrying locally
distcc[1076] Warning: failed to distribute codegen.c to 10.3.0.15:3732/8, running locally instead
cc -fPIE -std=gnu11 -Iinclude -Wall -Wextra -Werror -O2 -fPIC -fvisibility=hidden -std=gnu11 -I../include -Wall -Wextra -Werror -O2 -c -o syscall.o syscall.c
cc -fPIE -std=gnu11 -Iinclude -Wall -Wextra -Werror -O2 -fPIC -fvisibility=hidden -std=gnu11 -I../include -Wall -Wextra -Werror -O2 -Wno-error -c -o lexer.o lexer.c
cc -fPIE -std=gnu11 -Iinclude -Wall -Wextra -Werror -O2 -fPIC -fvisibility=hidden -std=gnu11 -I../include -Wall -Wextra -Werror -O2 -Wno-error -c -o parser.o parser.c
cc -fPIE -std=gnu11 -Iinclude -Wall -Wextra -Werror -O2 -fPIC -fvisibility=hidden -std=gnu11 -I../include -Wall -Wextra -Werror -O2 -c -o syscalls/amd64_syscalls.o syscalls/amd64_syscalls.c
distcc[1077] (dcc_please_send_email_after_investigation) Warning: remote compilation of 'expression.c' failed, retried locally and got a different result.
cc -fPIE -std=gnu11 -Iinclude -Wall -Wextra -Werror -O2 -fPIC -fvisibility=hidden -std=gnu11 -I../include -Wall -Wextra -Werror -O2 -c -o syscalls/i386_syscalls.o syscalls/i386_syscalls.c
cc -fPIE -std=gnu11 -Iinclude -Wall -Wextra -Werror -O2 -fPIC -fvisibility=hidden -std=gnu11 -I../include -Wall -Wextra -Werror -O2 -c -o syscalls/aarch64_syscalls.o syscalls/aarch64_syscalls.c
cc -fPIE -std=gnu11 -Iinclude -Wall -Wextra -Werror -O2 -fPIC -fvisibility=hidden -std=gnu11 -I../include -Wall -Wextra -Werror -O2 -c -o syscalls/mipso32_syscalls.o syscalls/mipso32_syscalls.c
cc -fPIE -std=gnu11 -Iinclude -Wall -Wextra -Werror -O2 -fPIC -fvisibility=hidden -std=gnu11 -I../include -Wall -Wextra -Werror -O2 -c -o syscalls/mips64_syscalls.o syscalls/mips64_syscalls.c
cc -fPIE -std=gnu11 -Iinclude -Wall -Wextra -Werror -O2 -fPIC -fvisibility=hidden -std=gnu11 -I../include -Wall -Wextra -Werror -O2 -c -o syscalls/riscv64_syscalls.o syscalls/riscv64_syscalls.c
cc -fPIE -std=gnu11 -Iinclude -Wall -Wextra -Werror -O2 -fPIC -fvisibility=hidden -std=gnu11 -I../include -Wall -Wextra -Werror -O2 -c -o syscalls/arm_syscalls.o syscalls/arm_syscalls.c
cc -fPIE -std=gnu11 -Iinclude -Wall -Wextra -Werror -O2 -fPIC -fvisibility=hidden -std=gnu11 -I../include -Wall -Wextra -Werror -O2 -c -o kafel.o kafel.c
g++ -march=armv7-a -mfloat-abi=hard -mfpu=neon -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Ikafel/include -DPROTOBUF_USE_DLLS -DNOMINMAX -std=c++17 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 -c -o caps.o caps.cc
distcc[1076] (dcc_please_send_email_after_investigation) Warning: remote compilation of 'codegen.c' failed, retried locally and got a different result.
cc -fPIE -std=gnu11 -Iinclude -Wall -Wextra -Werror -O2 -fPIC -fvisibility=hidden -std=gnu11 -I../include -Wall -Wextra -Werror -O2 -Wl,-soname,../libkafel.so.1 -shared kafel.o context.o codegen.o expression.o includes.o parser_types.o policy.o range_rules.o syscall.o lexer.o parser.o syscalls/amd64_syscalls.o syscalls/i386_syscalls.o syscalls/aarch64_syscalls.o syscalls/mipso32_syscalls.o syscalls/mips64_syscalls.o syscalls/riscv64_syscalls.o syscalls/arm_syscalls.o -o ../libkafel.so
ld -r kafel.o context.o codegen.o expression.o includes.o parser_types.o policy.o range_rules.o syscall.o lexer.o parser.o syscalls/amd64_syscalls.o syscalls/i386_syscalls.o syscalls/aarch64_syscalls.o syscalls/mipso32_syscalls.o syscalls/mips64_syscalls.o syscalls/riscv64_syscalls.o syscalls/arm_syscalls.o -o libkafel_r.o
# Fix x86 PIC symbols
objdump -t libkafel_r.o | grep '.hidden' | grep -v 'get_pc_thunk' | sed -e 's/^.*\.hidden //' > libkafel.localize_symbols
objcopy -w --localize-symbols=libkafel.localize_symbols libkafel_r.o libkafel.o
rm -f libkafel.localize_symbols
rm -f libkafel_r.o
ar rcs ../libkafel.a libkafel.o
rm -f libkafel.o
g++ -march=armv7-a -mfloat-abi=hard -mfpu=neon -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Ikafel/include -DPROTOBUF_USE_DLLS -DNOMINMAX -std=c++17 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 -c -o cgroup.o cgroup.cc
make[2]: Leaving directory '/build/nsjail/src/nsjail-3.4/kafel/src'
make[1]: Leaving directory '/build/nsjail/src/nsjail-3.4/kafel'
g++ -march=armv7-a -mfloat-abi=hard -mfpu=neon -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Ikafel/include -DPROTOBUF_USE_DLLS -DNOMINMAX -std=c++17 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 -c -o cgroup2.o cgroup2.cc
g++ -march=armv7-a -mfloat-abi=hard -mfpu=neon -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Ikafel/include -DPROTOBUF_USE_DLLS -DNOMINMAX -std=c++17 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 -c -o cmdline.o cmdline.cc
protoc --cpp_out=. config.proto
g++ -march=armv7-a -mfloat-abi=hard -mfpu=neon -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Ikafel/include -DPROTOBUF_USE_DLLS -DNOMINMAX -std=c++17 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 -c -o contain.o contain.cc
g++ -march=armv7-a -mfloat-abi=hard -mfpu=neon -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Ikafel/include -DPROTOBUF_USE_DLLS -DNOMINMAX -std=c++17 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 -c -o cpu.o cpu.cc
g++ -march=armv7-a -mfloat-abi=hard -mfpu=neon -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Ikafel/include -DPROTOBUF_USE_DLLS -DNOMINMAX -std=c++17 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 -c -o logs.o logs.cc
g++ -march=armv7-a -mfloat-abi=hard -mfpu=neon -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Ikafel/include -DPROTOBUF_USE_DLLS -DNOMINMAX -std=c++17 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 -c -o mnt.o mnt.cc
g++ -march=armv7-a -mfloat-abi=hard -mfpu=neon -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Ikafel/include -DPROTOBUF_USE_DLLS -DNOMINMAX -std=c++17 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 -c -o net.o net.cc
distcc[1334] ERROR: compile mnt.cc on 10.3.0.15:3732/8 failed
distcc[1334] (dcc_build_somewhere) Warning: remote compilation of 'mnt.cc' failed, retrying locally
distcc[1334] Warning: failed to distribute mnt.cc to 10.3.0.15:3732/8, running locally instead
g++ -march=armv7-a -mfloat-abi=hard -mfpu=neon -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Ikafel/include -DPROTOBUF_USE_DLLS -DNOMINMAX -std=c++17 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 -c -o nsjail.o nsjail.cc
g++ -march=armv7-a -mfloat-abi=hard -mfpu=neon -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Ikafel/include -DPROTOBUF_USE_DLLS -DNOMINMAX -std=c++17 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 -c -o pid.o pid.cc
In file included from mnt.cc:46:
mnt.cc: In function ‘const std::string mnt::flagsToStr(long unsigned int)’:
macros.h:42:11: error: narrowing conversion of ‘18446744071562067968’ from ‘uint64_t’ {aka ‘long long unsigned int’} to ‘long unsigned int’ [-Wnarrowing]
42 | { (uint64_t) x, #x }
mnt.cc:91:13: note: in expansion of macro ‘NS_VALSTR_STRUCT’
91 | NS_VALSTR_STRUCT(MS_NOUSER),
| ^~~~~~~~~~~~~~~~
g++ -march=armv7-a -mfloat-abi=hard -mfpu=neon -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Ikafel/include -DPROTOBUF_USE_DLLS -DNOMINMAX -std=c++17 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 -c -o sandbox.o sandbox.cc
distcc[1334] ERROR: compile mnt.cc on localhost failed
make: *** [<builtin>: mnt.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory '/build/nsjail/src/nsjail-3.4'
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Build failed, check /home/leming/armv7/leming/build