• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • CentOS Stream 10
    • crun
    • None
    • None
    • Moderate
    • 13
    • rhel-sst-container-tools
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • RUN 253, RUN 254, RUN 255, RUN 256, RUN 257, RUN 258, RUN 259, RUN 260, RUN 261, RUN 262, RUN 263, RUN 265, RUN 266
    • All
    • None

      build crun with a static version of libyajl so that the library is not needed as an external dependency.

      The crun configuration script already has support to link libyajl statically:

      ./configure --enable-embedded-yajl

      It should be the default on RHEL 10

            [RHEL-35583] link libyajl statically

            Alex Jia added a comment -

            Verified on crun-1.15-3.el10 - https://issues.redhat.com/browse/CONTOOLSQE-3901

            Alex Jia added a comment - Verified on crun-1.15-3.el10 - https://issues.redhat.com/browse/CONTOOLSQE-3901

            it must be created as part of the bundle.

            Newer versions of crun will have that symlink in the distributed tarball, but if you are backporting the patch, you also need to create it manually.

            Giuseppe Scrivano added a comment - it must be created as part of the bundle. Newer versions of crun will have that symlink in the distributed tarball, but if you are backporting the patch, you also need to create it manually.

            Yes, it is there in the patch but it doesn't create the symlink for some reason.

            Jindrich Novy added a comment - Yes, it is there in the patch but it doesn't create the symlink for some reason.

            do you have this symlink in the crun source directory?

            $ readlink ~/crun/libocispec/src/yajl
            ../yajl/src/api/

            It is added by https://github.com/containers/libocispec/commit/b633f89d68b49e8d974c64b29e7e9d75fd346c5b

            Giuseppe Scrivano added a comment - do you have this symlink in the crun source directory? $ readlink ~/crun/libocispec/src/yajl ../yajl/src/api/ It is added by https://github.com/containers/libocispec/commit/b633f89d68b49e8d974c64b29e7e9d75fd346c5b

            The blake3 error is gone now but there seems to be still something wrong with the embedded yajl path:

            https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=61113256

            Jindrich Novy added a comment - The blake3 error is gone now but there seems to be still something wrong with the embedded yajl path: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=61113256

            that warning will be fixed by https://github.com/containers/crun/pull/1465

            Giuseppe Scrivano added a comment - that warning will be fixed by https://github.com/containers/crun/pull/1465

            Thanks, now the second part of the build issue please:

            gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/blake3/libcrun_testing_a-blake3.o -MD -MP -MF src/libcrun/blake3/.deps/libcrun_testing_a-blake3.Tpo -c -o src/libcrun/blake3/libcrun_testing_a-blake3.o `test -f 'src/libcrun/blake3/blake3.c' || echo './'`src/libcrun/blake3/blake3.c
            In function ‘compress_chunks_parallel’,
                inlined from ‘blake3_compress_subtree_wide’ at src/libcrun/blake3/blake3.c:274:12:
            src/libcrun/blake3/blake3.c:186:3: warning: ‘chunks_array’ may be used uninitialized [-Wmaybe-uninitialized]
              186 |   blake3_hash_many(chunks_array, chunks_array_len,
                  |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              187 |                    BLAKE3_CHUNK_LEN / BLAKE3_BLOCK_LEN, key, chunk_counter,
                  |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              188 |                    true, flags, CHUNK_START, CHUNK_END, out);
                  |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            In file included from src/libcrun/blake3/blake3.c:6:
            src/libcrun/blake3/blake3_impl.h: In function ‘blake3_compress_subtree_wide’:
            src/libcrun/blake3/blake3_impl.h:17:35: note: by argument 1 of type ‘const uint8_t * const *’ to ‘blake3_hash_many’ declared here
               17 | #define blake3_hash_many_portable blake3_hash_many
                  |                                   ^~~~~~~~~~~~~~~~
            src/libcrun/blake3/blake3.c:177:18: note: ‘chunks_array’ declared here
              177 |   const uint8_t *chunks_array[MAX_SIMD_DEGREE];
                  |                  ^~~~~~~~~~~~
            mv -f src/libcrun/blake3/.deps/libcrun_testing_a-blake3.Tpo src/libcrun/blake3/.deps/libcrun_testing_a-blake3.Po
            make[2]: Leaving directory '/tmp/centos/crun/c10s/crun-1.15'
            make[1]: *** [Makefile:2804: all-recursive] Error 1
            make: *** [Makefile:1049: all] Error 2
            error: Bad exit status from /var/tmp/rpm-tmp.nMOzjB (%build)

            Jindrich Novy added a comment - Thanks, now the second part of the build issue please: gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/blake3/libcrun_testing_a-blake3.o -MD -MP -MF src/libcrun/blake3/.deps/libcrun_testing_a-blake3.Tpo -c -o src/libcrun/blake3/libcrun_testing_a-blake3.o `test -f 'src/libcrun/blake3/blake3.c' || echo './'`src/libcrun/blake3/blake3.c In function ‘compress_chunks_parallel’,     inlined from ‘blake3_compress_subtree_wide’ at src/libcrun/blake3/blake3.c:274:12: src/libcrun/blake3/blake3.c:186:3: warning: ‘chunks_array’ may be used uninitialized [-Wmaybe-uninitialized]   186 |   blake3_hash_many(chunks_array, chunks_array_len,       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   187 |                    BLAKE3_CHUNK_LEN / BLAKE3_BLOCK_LEN, key, chunk_counter,       |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   188 |                    true, flags, CHUNK_START, CHUNK_END, out);       |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/libcrun/blake3/blake3.c:6: src/libcrun/blake3/blake3_impl.h: In function ‘blake3_compress_subtree_wide’: src/libcrun/blake3/blake3_impl.h:17:35: note: by argument 1 of type ‘const uint8_t * const *’ to ‘blake3_hash_many’ declared here    17 | #define blake3_hash_many_portable blake3_hash_many       |                                   ^~~~~~~~~~~~~~~~ src/libcrun/blake3/blake3.c:177:18: note: ‘chunks_array’ declared here   177 |   const uint8_t *chunks_array [MAX_SIMD_DEGREE] ;       |                  ^~~~~~~~~~~~ mv -f src/libcrun/blake3/.deps/libcrun_testing_a-blake3.Tpo src/libcrun/blake3/.deps/libcrun_testing_a-blake3.Po make [2] : Leaving directory '/tmp/centos/crun/c10s/crun-1.15' make [1] : *** [Makefile:2804: all-recursive] Error 1 make: *** [Makefile:1049: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.nMOzjB (%build)

            Giuseppe Scrivano added a comment - opened a PR for libocispec: https://github.com/containers/libocispec/pull/134

            Hi gscrivan@redhat.com - after applying:

            diff --git a/crun.spec b/crun.spec
            index f8f06c4..90bd97c 100644
            --- a/crun.spec
            +++ b/crun.spec
            @@ -60,7 +60,6 @@ BuildRequires: libcap-devel
             BuildRequires: libkrun-devel
             %endif
             BuildRequires: systemd-devel
            -BuildRequires: yajl-devel
             BuildRequires: libseccomp-devel
             BuildRequires: python3-libmount
             BuildRequires: libtool
            @@ -113,7 +112,7 @@ Recommends: wasmedge
             
             %build
             ./autogen.sh
            -./configure --disable-silent-rules %{krun_opts} %{wasmedge_opts} %{wasmtime_opts}
            +./configure --disable-silent-rules --enable-embedded-yajl %{krun_opts} %{wasmedge_opts} %{wasmtime_opts}
             %make_build
             

            I see:

            gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/libcrun_testing_a-cgroup-cgroupfs.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup-cgroupfs.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup-cgroupfs.o `test -f 'src/libcrun/cgroup-cgroupfs.c' || echo './'`src/libcrun/cgroup-cgroupfs.c
            In file included from /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7,
                             from src/libcrun/container.h:23,
                             from src/libcrun/cgroup.h:21,
                             from src/libcrun/cgroup-cgroupfs.c:22:
            /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/json_common.h:9:10: fatal error: yajl/yajl_tree.h: No such file or directory
                9 | #include <yajl/yajl_tree.h>
                  |          ^~~~~~~~~~~~~~~~~~
            compilation terminated.
            make[2]: *** [Makefile:1769: src/libcrun/libcrun_testing_a-cgroup-cgroupfs.o] Error 1
            make[2]: Leaving directory '/tmp/centos/crun/c10s/crun-1.15'
            make[2]: *** Waiting for unfinished jobs....
            make[2]: Entering directory '/tmp/centos/crun/c10s/crun-1.15'
            gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/libcrun_testing_a-cgroup-systemd.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup-systemd.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup-systemd.o `test -f 'src/libcrun/cgroup-systemd.c' || echo './'`src/libcrun/cgroup-systemd.c
            In file included from /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7,
                             from src/libcrun/container.h:23,
                             from src/libcrun/cgroup.h:21,
                             from src/libcrun/cgroup-systemd.c:22:
            /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/json_common.h:9:10: fatal error: yajl/yajl_tree.h: No such file or directory
                9 | #include <yajl/yajl_tree.h>
                  |          ^~~~~~~~~~~~~~~~~~
            compilation terminated.
            make[2]: *** [Makefile:1811: src/libcrun/libcrun_testing_a-cgroup-systemd.o] Error 1
            make[2]: Leaving directory '/tmp/centos/crun/c10s/crun-1.15'
            make[2]: Entering directory '/tmp/centos/crun/c10s/crun-1.15'
            gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/libcrun_testing_a-cgroup-utils.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup-utils.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup-utils.o `test -f 'src/libcrun/cgroup-utils.c' || echo './'`src/libcrun/cgroup-utils.c
            In file included from /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7,
                             from src/libcrun/container.h:23,
                             from src/libcrun/cgroup.h:21,
                             from src/libcrun/cgroup-utils.c:22:
            /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/json_common.h:9:10: fatal error: yajl/yajl_tree.h: No such file or directory
                9 | #include <yajl/yajl_tree.h>
                  |          ^~~~~~~~~~~~~~~~~~
            compilation terminated.
            make[2]: *** [Makefile:1825: src/libcrun/libcrun_testing_a-cgroup-utils.o] Error 1
            make[2]: Leaving directory '/tmp/centos/crun/c10s/crun-1.15'
            make[2]: Entering directory '/tmp/centos/crun/c10s/crun-1.15'
            gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/libcrun_testing_a-cgroup-setup.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup-setup.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup-setup.o `test -f 'src/libcrun/cgroup-setup.c' || echo './'`src/libcrun/cgroup-setup.c
            In file included from /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7,
                             from src/libcrun/container.h:23,
                             from src/libcrun/cgroup.h:21,
                             from src/libcrun/cgroup-setup.c:22:
            /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/json_common.h:9:10: fatal error: yajl/yajl_tree.h: No such file or directory
                9 | #include <yajl/yajl_tree.h>
                  |          ^~~~~~~~~~~~~~~~~~
            compilation terminated.
            make[2]: *** [Makefile:1797: src/libcrun/libcrun_testing_a-cgroup-setup.o] Error 1
            make[2]: Leaving directory '/tmp/centos/crun/c10s/crun-1.15'
            make[2]: Entering directory '/tmp/centos/crun/c10s/crun-1.15'
            gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/libcrun_testing_a-cgroup.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup.o `test -f 'src/libcrun/cgroup.c' || echo './'`src/libcrun/cgroup.c
            In file included from /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7,
                             from src/libcrun/container.h:23,
                             from src/libcrun/cgroup.h:21,
                             from src/libcrun/cgroup.c:22:
            /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/json_common.h:9:10: fatal error: yajl/yajl_tree.h: No such file or directory
                9 | #include <yajl/yajl_tree.h>
                  |          ^~~~~~~~~~~~~~~~~~
            compilation terminated.
            make[2]: *** [Makefile:1839: src/libcrun/libcrun_testing_a-cgroup.o] Error 1
            make[2]: Leaving directory '/tmp/centos/crun/c10s/crun-1.15'
            make[2]: Entering directory '/tmp/centos/crun/c10s/crun-1.15'
            gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/libcrun_testing_a-container.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-container.Tpo -c -o src/libcrun/libcrun_testing_a-container.o `test -f 'src/libcrun/container.c' || echo './'`src/libcrun/container.c
            In file included from /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7,
                             from src/libcrun/container.c:21:
            /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/json_common.h:9:10: fatal error: yajl/yajl_tree.h: No such file or directory
                9 | #include <yajl/yajl_tree.h>
                  |          ^~~~~~~~~~~~~~~~~~
            compilation terminated.
            make[2]: *** [Makefile:1881: src/libcrun/libcrun_testing_a-container.o] Error 1
            make[2]: Leaving directory '/tmp/centos/crun/c10s/crun-1.15'
            make[2]: Entering directory '/tmp/centos/crun/c10s/crun-1.15'
            gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/libcrun_testing_a-cgroup-resources.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup-resources.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup-resources.o `test -f 'src/libcrun/cgroup-resources.c' || echo './'`src/libcrun/cgroup-resources.c
            In file included from /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7,
                             from src/libcrun/container.h:23,
                             from src/libcrun/cgroup.h:21,
                             from src/libcrun/cgroup-resources.c:22:
            /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/json_common.h:9:10: fatal error: yajl/yajl_tree.h: No such file or directory
                9 | #include <yajl/yajl_tree.h>
                  |          ^~~~~~~~~~~~~~~~~~
            compilation terminated.
            make[2]: *** [Makefile:1783: src/libcrun/libcrun_testing_a-cgroup-resources.o] Error 1
            make[2]: Leaving directory '/tmp/centos/crun/c10s/crun-1.15'
            make[2]: Entering directory '/tmp/centos/crun/c10s/crun-1.15'
            gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/libcrun_testing_a-utils.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-utils.Tpo -c -o src/libcrun/libcrun_testing_a-utils.o `test -f 'src/libcrun/utils.c' || echo './'`src/libcrun/utils.c
            In file included from /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7,
                             from src/libcrun/utils.h:30,
                             from src/libcrun/utils.c:21:
            /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/json_common.h:9:10: fatal error: yajl/yajl_tree.h: No such file or directory
                9 | #include <yajl/yajl_tree.h>
                  |          ^~~~~~~~~~~~~~~~~~
            compilation terminated.
            make[2]: *** [Makefile:1727: src/libcrun/libcrun_testing_a-utils.o] Error 1
            make[2]: Leaving directory '/tmp/centos/crun/c10s/crun-1.15'
            make[2]: Entering directory '/tmp/centos/crun/c10s/crun-1.15'
            gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/libcrun_testing_a-cloned_binary.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cloned_binary.Tpo -c -o src/libcrun/libcrun_testing_a-cloned_binary.o `test -f 'src/libcrun/cloned_binary.c' || echo './'`src/libcrun/cloned_binary.c
            In file included from /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7,
                             from src/libcrun/utils.h:30,
                             from src/libcrun/cloned_binary.c:61:
            /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/json_common.h:9:10: fatal error: yajl/yajl_tree.h: No such file or directory
                9 | #include <yajl/yajl_tree.h>
                  |          ^~~~~~~~~~~~~~~~~~
            compilation terminated.
            make[2]: *** [Makefile:1867: src/libcrun/libcrun_testing_a-cloned_binary.o] Error 1
            make[2]: Leaving directory '/tmp/centos/crun/c10s/crun-1.15'
            make[2]: Entering directory '/tmp/centos/crun/c10s/crun-1.15'
            gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/libcrun_testing_a-chroot_realpath.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-chroot_realpath.Tpo -c -o src/libcrun/libcrun_testing_a-chroot_realpath.o `test -f 'src/libcrun/chroot_realpath.c' || echo './'`src/libcrun/chroot_realpath.c
            mv -f src/libcrun/.deps/libcrun_testing_a-chroot_realpath.Tpo src/libcrun/.deps/libcrun_testing_a-chroot_realpath.Po
            make[2]: Leaving directory '/tmp/centos/crun/c10s/crun-1.15'
            make[2]: Entering directory '/tmp/centos/crun/c10s/crun-1.15'
            gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/blake3/libcrun_testing_a-blake3_portable.o -MD -MP -MF src/libcrun/blake3/.deps/libcrun_testing_a-blake3_portable.Tpo -c -o src/libcrun/blake3/libcrun_testing_a-blake3_portable.o `test -f 'src/libcrun/blake3/blake3_portable.c' || echo './'`src/libcrun/blake3/blake3_portable.c
            mv -f src/libcrun/blake3/.deps/libcrun_testing_a-blake3_portable.Tpo src/libcrun/blake3/.deps/libcrun_testing_a-blake3_portable.Po
            make[2]: Leaving directory '/tmp/centos/crun/c10s/crun-1.15'
            make[2]: Entering directory '/tmp/centos/crun/c10s/crun-1.15'
            gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/blake3/libcrun_testing_a-blake3.o -MD -MP -MF src/libcrun/blake3/.deps/libcrun_testing_a-blake3.Tpo -c -o src/libcrun/blake3/libcrun_testing_a-blake3.o `test -f 'src/libcrun/blake3/blake3.c' || echo './'`src/libcrun/blake3/blake3.c
            In function ‘compress_chunks_parallel’,
                inlined from ‘blake3_compress_subtree_wide’ at src/libcrun/blake3/blake3.c:274:12:
            src/libcrun/blake3/blake3.c:186:3: warning: ‘chunks_array’ may be used uninitialized [-Wmaybe-uninitialized]
              186 |   blake3_hash_many(chunks_array, chunks_array_len,
                  |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              187 |                    BLAKE3_CHUNK_LEN / BLAKE3_BLOCK_LEN, key, chunk_counter,
                  |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              188 |                    true, flags, CHUNK_START, CHUNK_END, out);
                  |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            In file included from src/libcrun/blake3/blake3.c:6:
            src/libcrun/blake3/blake3_impl.h: In function ‘blake3_compress_subtree_wide’:
            src/libcrun/blake3/blake3_impl.h:17:35: note: by argument 1 of type ‘const uint8_t * const *’ to ‘blake3_hash_many’ declared here
               17 | #define blake3_hash_many_portable blake3_hash_many
                  |                                   ^~~~~~~~~~~~~~~~
            src/libcrun/blake3/blake3.c:177:18: note: ‘chunks_array’ declared here
              177 |   const uint8_t *chunks_array[MAX_SIMD_DEGREE];
                  |                  ^~~~~~~~~~~~
            mv -f src/libcrun/blake3/.deps/libcrun_testing_a-blake3.Tpo src/libcrun/blake3/.deps/libcrun_testing_a-blake3.Po
            make[2]: Leaving directory '/tmp/centos/crun/c10s/crun-1.15'
            make[1]: *** [Makefile:2804: all-recursive] Error 1
            make: *** [Makefile:1049: all] Error 2
            error: Bad exit status from /var/tmp/rpm-tmp.i6YhXI (%build)

            RPM build errors:
                Bad exit status from /var/tmp/rpm-tmp.i6YhXI (%build)

            Jindrich Novy added a comment - Hi gscrivan@redhat.com - after applying: diff --git a/crun.spec b/crun.spec index f8f06c4..90bd97c 100644 --- a/crun.spec +++ b/crun.spec @@ -60,7 +60,6 @@ BuildRequires: libcap-devel  BuildRequires: libkrun-devel  %endif  BuildRequires: systemd-devel -BuildRequires: yajl-devel  BuildRequires: libseccomp-devel  BuildRequires: python3-libmount  BuildRequires: libtool @@ -113,7 +112,7 @@ Recommends: wasmedge    %build  ./autogen.sh -./configure --disable-silent-rules %{krun_opts} %{wasmedge_opts} %{wasmtime_opts } +./configure --disable-silent-rules --enable-embedded-yajl %{krun_opts} %{wasmedge_opts} %{wasmtime_opts }  %make_build   I see: gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/libcrun_testing_a-cgroup-cgroupfs.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup-cgroupfs.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup-cgroupfs.o `test -f 'src/libcrun/cgroup-cgroupfs.c' || echo './'`src/libcrun/cgroup-cgroupfs.c In file included from /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7,                  from src/libcrun/container.h:23,                  from src/libcrun/cgroup.h:21,                  from src/libcrun/cgroup-cgroupfs.c:22: /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/json_common.h:9:10: fatal error: yajl/yajl_tree.h: No such file or directory     9 | #include <yajl/yajl_tree.h>       |          ^~~~~~~~~~~~~~~~~~ compilation terminated. make [2] : *** [Makefile:1769: src/libcrun/libcrun_testing_a-cgroup-cgroupfs.o] Error 1 make [2] : Leaving directory '/tmp/centos/crun/c10s/crun-1.15' make [2] : *** Waiting for unfinished jobs.... make [2] : Entering directory '/tmp/centos/crun/c10s/crun-1.15' gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/libcrun_testing_a-cgroup-systemd.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup-systemd.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup-systemd.o `test -f 'src/libcrun/cgroup-systemd.c' || echo './'`src/libcrun/cgroup-systemd.c In file included from /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7,                  from src/libcrun/container.h:23,                  from src/libcrun/cgroup.h:21,                  from src/libcrun/cgroup-systemd.c:22: /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/json_common.h:9:10: fatal error: yajl/yajl_tree.h: No such file or directory     9 | #include <yajl/yajl_tree.h>       |          ^~~~~~~~~~~~~~~~~~ compilation terminated. make [2] : *** [Makefile:1811: src/libcrun/libcrun_testing_a-cgroup-systemd.o] Error 1 make [2] : Leaving directory '/tmp/centos/crun/c10s/crun-1.15' make [2] : Entering directory '/tmp/centos/crun/c10s/crun-1.15' gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/libcrun_testing_a-cgroup-utils.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup-utils.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup-utils.o `test -f 'src/libcrun/cgroup-utils.c' || echo './'`src/libcrun/cgroup-utils.c In file included from /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7,                  from src/libcrun/container.h:23,                  from src/libcrun/cgroup.h:21,                  from src/libcrun/cgroup-utils.c:22: /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/json_common.h:9:10: fatal error: yajl/yajl_tree.h: No such file or directory     9 | #include <yajl/yajl_tree.h>       |          ^~~~~~~~~~~~~~~~~~ compilation terminated. make [2] : *** [Makefile:1825: src/libcrun/libcrun_testing_a-cgroup-utils.o] Error 1 make [2] : Leaving directory '/tmp/centos/crun/c10s/crun-1.15' make [2] : Entering directory '/tmp/centos/crun/c10s/crun-1.15' gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/libcrun_testing_a-cgroup-setup.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup-setup.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup-setup.o `test -f 'src/libcrun/cgroup-setup.c' || echo './'`src/libcrun/cgroup-setup.c In file included from /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7,                  from src/libcrun/container.h:23,                  from src/libcrun/cgroup.h:21,                  from src/libcrun/cgroup-setup.c:22: /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/json_common.h:9:10: fatal error: yajl/yajl_tree.h: No such file or directory     9 | #include <yajl/yajl_tree.h>       |          ^~~~~~~~~~~~~~~~~~ compilation terminated. make [2] : *** [Makefile:1797: src/libcrun/libcrun_testing_a-cgroup-setup.o] Error 1 make [2] : Leaving directory '/tmp/centos/crun/c10s/crun-1.15' make [2] : Entering directory '/tmp/centos/crun/c10s/crun-1.15' gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/libcrun_testing_a-cgroup.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup.o `test -f 'src/libcrun/cgroup.c' || echo './'`src/libcrun/cgroup.c In file included from /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7,                  from src/libcrun/container.h:23,                  from src/libcrun/cgroup.h:21,                  from src/libcrun/cgroup.c:22: /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/json_common.h:9:10: fatal error: yajl/yajl_tree.h: No such file or directory     9 | #include <yajl/yajl_tree.h>       |          ^~~~~~~~~~~~~~~~~~ compilation terminated. make [2] : *** [Makefile:1839: src/libcrun/libcrun_testing_a-cgroup.o] Error 1 make [2] : Leaving directory '/tmp/centos/crun/c10s/crun-1.15' make [2] : Entering directory '/tmp/centos/crun/c10s/crun-1.15' gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/libcrun_testing_a-container.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-container.Tpo -c -o src/libcrun/libcrun_testing_a-container.o `test -f 'src/libcrun/container.c' || echo './'`src/libcrun/container.c In file included from /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7,                  from src/libcrun/container.c:21: /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/json_common.h:9:10: fatal error: yajl/yajl_tree.h: No such file or directory     9 | #include <yajl/yajl_tree.h>       |          ^~~~~~~~~~~~~~~~~~ compilation terminated. make [2] : *** [Makefile:1881: src/libcrun/libcrun_testing_a-container.o] Error 1 make [2] : Leaving directory '/tmp/centos/crun/c10s/crun-1.15' make [2] : Entering directory '/tmp/centos/crun/c10s/crun-1.15' gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/libcrun_testing_a-cgroup-resources.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup-resources.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup-resources.o `test -f 'src/libcrun/cgroup-resources.c' || echo './'`src/libcrun/cgroup-resources.c In file included from /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7,                  from src/libcrun/container.h:23,                  from src/libcrun/cgroup.h:21,                  from src/libcrun/cgroup-resources.c:22: /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/json_common.h:9:10: fatal error: yajl/yajl_tree.h: No such file or directory     9 | #include <yajl/yajl_tree.h>       |          ^~~~~~~~~~~~~~~~~~ compilation terminated. make [2] : *** [Makefile:1783: src/libcrun/libcrun_testing_a-cgroup-resources.o] Error 1 make [2] : Leaving directory '/tmp/centos/crun/c10s/crun-1.15' make [2] : Entering directory '/tmp/centos/crun/c10s/crun-1.15' gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/libcrun_testing_a-utils.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-utils.Tpo -c -o src/libcrun/libcrun_testing_a-utils.o `test -f 'src/libcrun/utils.c' || echo './'`src/libcrun/utils.c In file included from /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7,                  from src/libcrun/utils.h:30,                  from src/libcrun/utils.c:21: /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/json_common.h:9:10: fatal error: yajl/yajl_tree.h: No such file or directory     9 | #include <yajl/yajl_tree.h>       |          ^~~~~~~~~~~~~~~~~~ compilation terminated. make [2] : *** [Makefile:1727: src/libcrun/libcrun_testing_a-utils.o] Error 1 make [2] : Leaving directory '/tmp/centos/crun/c10s/crun-1.15' make [2] : Entering directory '/tmp/centos/crun/c10s/crun-1.15' gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/libcrun_testing_a-cloned_binary.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cloned_binary.Tpo -c -o src/libcrun/libcrun_testing_a-cloned_binary.o `test -f 'src/libcrun/cloned_binary.c' || echo './'`src/libcrun/cloned_binary.c In file included from /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7,                  from src/libcrun/utils.h:30,                  from src/libcrun/cloned_binary.c:61: /tmp/centos/crun/c10s/crun-1.15/libocispec/src/ocispec/json_common.h:9:10: fatal error: yajl/yajl_tree.h: No such file or directory     9 | #include <yajl/yajl_tree.h>       |          ^~~~~~~~~~~~~~~~~~ compilation terminated. make [2] : *** [Makefile:1867: src/libcrun/libcrun_testing_a-cloned_binary.o] Error 1 make [2] : Leaving directory '/tmp/centos/crun/c10s/crun-1.15' make [2] : Entering directory '/tmp/centos/crun/c10s/crun-1.15' gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/libcrun_testing_a-chroot_realpath.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-chroot_realpath.Tpo -c -o src/libcrun/libcrun_testing_a-chroot_realpath.o `test -f 'src/libcrun/chroot_realpath.c' || echo './'`src/libcrun/chroot_realpath.c mv -f src/libcrun/.deps/libcrun_testing_a-chroot_realpath.Tpo src/libcrun/.deps/libcrun_testing_a-chroot_realpath.Po make [2] : Leaving directory '/tmp/centos/crun/c10s/crun-1.15' make [2] : Entering directory '/tmp/centos/crun/c10s/crun-1.15' gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/blake3/libcrun_testing_a-blake3_portable.o -MD -MP -MF src/libcrun/blake3/.deps/libcrun_testing_a-blake3_portable.Tpo -c -o src/libcrun/blake3/libcrun_testing_a-blake3_portable.o `test -f 'src/libcrun/blake3/blake3_portable.c' || echo './'`src/libcrun/blake3/blake3_portable.c mv -f src/libcrun/blake3/.deps/libcrun_testing_a-blake3_portable.Tpo src/libcrun/blake3/.deps/libcrun_testing_a-blake3_portable.Po make [2] : Leaving directory '/tmp/centos/crun/c10s/crun-1.15' make [2] : Entering directory '/tmp/centos/crun/c10s/crun-1.15' gcc -DHAVE_CONFIG_H -I.    -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -I /tmp/centos/crun/c10s/crun-1.15/libocispec/src -fvisibility=default -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  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection    -MT src/libcrun/blake3/libcrun_testing_a-blake3.o -MD -MP -MF src/libcrun/blake3/.deps/libcrun_testing_a-blake3.Tpo -c -o src/libcrun/blake3/libcrun_testing_a-blake3.o `test -f 'src/libcrun/blake3/blake3.c' || echo './'`src/libcrun/blake3/blake3.c In function ‘compress_chunks_parallel’,     inlined from ‘blake3_compress_subtree_wide’ at src/libcrun/blake3/blake3.c:274:12: src/libcrun/blake3/blake3.c:186:3: warning: ‘chunks_array’ may be used uninitialized [-Wmaybe-uninitialized]   186 |   blake3_hash_many(chunks_array, chunks_array_len,       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   187 |                    BLAKE3_CHUNK_LEN / BLAKE3_BLOCK_LEN, key, chunk_counter,       |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   188 |                    true, flags, CHUNK_START, CHUNK_END, out);       |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/libcrun/blake3/blake3.c:6: src/libcrun/blake3/blake3_impl.h: In function ‘blake3_compress_subtree_wide’: src/libcrun/blake3/blake3_impl.h:17:35: note: by argument 1 of type ‘const uint8_t * const *’ to ‘blake3_hash_many’ declared here    17 | #define blake3_hash_many_portable blake3_hash_many       |                                   ^~~~~~~~~~~~~~~~ src/libcrun/blake3/blake3.c:177:18: note: ‘chunks_array’ declared here   177 |   const uint8_t *chunks_array [MAX_SIMD_DEGREE] ;       |                  ^~~~~~~~~~~~ mv -f src/libcrun/blake3/.deps/libcrun_testing_a-blake3.Tpo src/libcrun/blake3/.deps/libcrun_testing_a-blake3.Po make [2] : Leaving directory '/tmp/centos/crun/c10s/crun-1.15' make [1] : *** [Makefile:2804: all-recursive] Error 1 make: *** [Makefile:1049: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.i6YhXI (%build) RPM build errors:     Bad exit status from /var/tmp/rpm-tmp.i6YhXI (%build)

              container-runtime-eng Container Runtime Eng Bot
              gscrivan@redhat.com Giuseppe Scrivano
              Container Runtime Eng Bot Container Runtime Eng Bot
              Alex Jia Alex Jia
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: