Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.

  Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.

  Snippets are delimited with '================'.

  Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.

  Explanation of the issue, and recommended solution, should take a handful of sentences.

  Snippets:

  [error: Bad exit status from /var/tmp/rpm-tmp.4JLmug (%build)
    Bad exit status from /var/tmp/rpm-tmp.4JLmug (%build)
RPM build errors:
Child return code was: 1
]: [The build failed during %build phase.]
=============
[seccomp_control_open.c: In function ‘install_filter’:
seccomp_control_open.c:88:3: error: #error Unknown architecture
   88 | # error Unknown architecture
      |   ^~~~~
make[1]: *** [<builtin>: seccomp_control_open] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Entering directory '/builddir/build/BUILD/tlpi-241221-build/tlpi-dist/seccomp'
gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection  -std=c99 -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE -g -I../lib -pedantic -Wall -W -Wmissing-prototypes -Wno-sign-compare -Wimplicit-fallthrough -Wno-unused-parameter  -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes   seccomp_deny_open.c ../libtlpi.a   -o seccomp_deny_open
make[1]: Leaving directory '/builddir/build/BUILD/tlpi-241221-build/tlpi-dist/seccomp'
seccomp_deny_open.c: In function ‘install_filter’:
seccomp_deny_open.c:87:3: error: #error Unknown architecture
   87 | # error Unknown architecture
      |   ^~~~~
make[1]: *** [<builtin>: seccomp_deny_open] Error 1
make[1]: Entering directory '/builddir/build/BUILD/tlpi-241221-build/tlpi-dist/seccomp'
gcc -o libseccomp_demo libseccomp_demo.c -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection  -std=c99 -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE -g -I../lib -pedantic -Wall -W -Wmissing-prototypes -Wno-sign-compare -Wimplicit-fallthrough -Wno-unused-parameter -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  ../libtlpi.a -lseccomp
make[1]: Leaving directory '/builddir/build/BUILD/tlpi-241221-build/tlpi-dist/seccomp'
make[1]: Entering directory '/builddir/build/BUILD/tlpi-241221-build/tlpi-dist/seccomp'
gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection  -std=c99 -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE -g -I../lib -pedantic -Wall -W -Wmissing-prototypes -Wno-sign-compare -Wimplicit-fallthrough -Wno-unused-parameter  -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes   seccomp_arg64.c ../libtlpi.a   -o seccomp_arg64
make[1]: Leaving directory '/builddir/build/BUILD/tlpi-241221-build/tlpi-dist/seccomp'
seccomp_arg64.c: In function ‘main’:
seccomp_arg64.c:144:19: warning: overflow in conversion from ‘long long int’ to ‘off_t’ {aka ‘long int’} changes value from ‘4294967297’ to ‘1’ [-Woverflow]
  144 |     seek_test(fd, 0x100000001);
      |                   ^~~~~~~~~~~
make[1]: Entering directory '/builddir/build/BUILD/tlpi-241221-build/tlpi-dist/seccomp'
gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection  -std=c99 -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE -g -I../lib -pedantic -Wall -W -Wmissing-prototypes -Wno-sign-compare -Wimplicit-fallthrough -Wno-unused-parameter  -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes   seccomp_bench.c ../libtlpi.a   -o seccomp_bench
make[1]: Leaving directory '/builddir/build/BUILD/tlpi-241221-build/tlpi-dist/seccomp'
make[1]: Entering directory '/builddir/build/BUILD/tlpi-241221-build/tlpi-dist/seccomp'
gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection  -std=c99 -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE -g -I../lib -pedantic -Wall -W -Wmissing-prototypes -Wno-sign-compare -Wimplicit-fallthrough -Wno-unused-parameter  -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes   dump_seccomp_filter.c ../libtlpi.a   -o dump_seccomp_filter
make[1]: Leaving directory '/builddir/build/BUILD/tlpi-241221-build/tlpi-dist/seccomp'
make: *** [Makefile:47: all] Error 2]: [You are trying to use seccomp_control_open on architecture where it does not exists.]

Issue: seccomp_control/deny_open only builds on x86_64 and aarch64 only. Everywhere else the build fails.
Resolution: Add to the SPEC file in %build section:

%ifnarch x86_64 aarch64
sed --in-place /seccomp_control_open/d seccomp/Makefile
%endif 