Skip to content

make -j$(nproc) check fails with exit code 2 in Ubuntu 22.04 Docker build - latest/stable branch #7480

@tym2k1

Description

@tym2k1

While building the Docker image for prerequisites on Ubuntu 22.04, I encountered a minor issue:
The last command in the build process, make -j$(nproc) check, fails with exit code 2.

Reproducibility

  1. mkdir tmp && cd tmp
  2. Make a new file Dockerfile and copy the contents of prerequisites on Ubuntu 22.04 into it
  3. Run docker build -t op-tee .
$ docker -v
Docker version 27.5.1, build v27.5.1

Additional Info

  • It doesn't appear to be a critical issue. Skipping it seems to allow development
@@ -62,4 +62,4 @@
 RUN repo init -u https://github.com/OP-TEE/manifest.git -m qemu_v8.xml && repo sync -j10
 WORKDIR /optee/build
 RUN make -j3 toolchains
-RUN make -j$(nproc) check
+RUN make -j$(nproc) check || true
  • I don't have time to dig into the root cause right now, but I wanted to report it in case it's helpful.
  • I didn’t see this mentioned in other issues or documentation.

Logs

Attached is a plain-text log file output.txt showing the full error trace. The relevant portion is also excerpted below

(...)23.49 qemu 10.0.0
23.49
23.49   Build environment
23.49     Build directory                 : /optee/qemu/build
23.49     Source path                     : /optee/qemu
23.49     Download dependencies           : YES
23.49
23.49   Directories
23.49     Build directory                 : /optee/qemu/build
23.49     Source path                     : /optee/qemu
23.49     Download dependencies           : YES
23.49     Install prefix                  : /usr/local
23.49     BIOS directory                  : share/qemu
23.49     firmware path                   : share/qemu-firmware
23.49     binary directory                : /usr/local/bin
23.49     library directory               : /usr/local/lib/x86_64-linux-gnu
23.49     module directory                : lib/x86_64-linux-gnu/qemu
23.49     libexec directory               : /usr/local/libexec
23.49     include directory               : /usr/local/include
23.49     config directory                : /usr/local/etc
23.49     local state directory           : /var/local
23.49     Manual directory                : /usr/local/share/man
23.49     Doc directory                   : /usr/local/share/doc
23.49
23.49   Host binaries
23.49     python                          : /optee/qemu/build/pyvenv/bin/python3 (version: 3.10)
23.49     sphinx-build                    : NO
23.49     gdb                             :
23.49     iasl                            : /usr/bin/iasl
23.49     genisoimage                     :
23.49     smbd                            : /usr/sbin/smbd
23.49
23.49   Configurable features
23.49     Documentation                   : NO
23.49     system-mode emulation           : YES
23.49     user-mode emulation             : NO
23.49     block layer                     : YES
23.49     Install blobs                   : YES
23.49     module support                  : NO
23.49     fuzzing support                 : NO
23.49     Audio drivers                   : oss
23.49     Trace backends                  : log
23.49     D-Bus display                   : YES
23.49     QOM debugging                   : YES
23.49     Relocatable install             : YES
23.49     vhost-kernel support            : YES
23.49     vhost-net support               : YES
23.49     vhost-user support              : YES
23.49     vhost-user-crypto support       : YES
23.49     vhost-user-blk server support   : YES
23.49     vhost-vdpa support              : YES
23.49     build guest agent               : YES
23.49
23.49   Compilation
23.49     host CPU                        : x86_64
23.49     host endianness                 : little
23.49     C compiler                      : /usr/bin/ccache gcc -m64
23.49     Host C compiler                 : /usr/bin/ccache gcc -m64
23.49     C++ compiler                    : NO
23.49     Objective-C compiler            : NO
23.49     Rust support                    : NO
23.49     CFLAGS                          : -Wno-error -g -O2
23.49     LDFLAGS                         : -Wno-error
23.49     QEMU_CFLAGS                     : -mcx16 -msse2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fno-common -fwrapv -fzero-call-used-regs=used-gpr -fstack-protector-strong
23.49     QEMU_LDFLAGS                    : -fstack-protector-strong -Wl,-z,relro -Wl,-z,now
23.49     link-time optimization (LTO)    : NO
23.49     PIE                             : YES
23.49     static build                    : NO
23.49     malloc trim support             : YES
23.49     membarrier                      : NO
23.49     debug graph lock                : NO
23.49     debug stack usage               : NO
23.49     mutex debugging                 : NO
23.49     memory allocator                : system
23.49     avx2 optimization               : YES
23.49     avx512bw optimization           : YES
23.49     gcov                            : NO
23.49     thread sanitizer                : NO
23.49     CFI support                     : NO
23.49     strip binaries                  : NO
23.49     sparse                          : NO
23.49     mingw32 support                 : NO
23.49
23.49   Targets and accelerators
23.49     KVM support                     : NO
23.49     HVF support                     : NO
23.49     WHPX support                    : NO
23.49     NVMM support                    : NO
23.49     Xen support                     : NO
23.49     Xen emulation                   : NO
23.49     TCG support                     : YES
23.49     TCG backend                     : native (x86_64)
23.49     TCG plugins                     : YES
23.49     TCG debug enabled               : NO
23.49     target list                     : aarch64-softmmu
23.49     default devices                 : YES
23.49     out of process emulation        : YES
23.49     vfio-user server                : NO
23.49
23.49   Block layer support
23.49     coroutine backend               : ucontext
23.49     coroutine pool                  : YES
23.49     Block whitelist (rw)            :
23.49     Block whitelist (ro)            :
23.49     Use block whitelist in tools    : NO
23.49     VirtFS (9P) support             : YES
23.49     replication support             : YES
23.49     bochs support                   : YES
23.49     cloop support                   : YES
23.49     dmg support                     : YES
23.49     qcow v1 support                 : YES
23.49     vdi support                     : YES
23.49     vhdx support                    : YES
23.49     vmdk support                    : YES
23.49     vpc support                     : YES
23.49     vvfat support                   : YES
23.49     qed support                     : YES
23.49     parallels support               : YES
23.49     FUSE exports                    : NO
23.49     VDUSE block exports             : YES
23.49
23.49   Crypto
23.49     TLS priority                    : NORMAL
23.49     GNUTLS support                  : NO
23.49     libgcrypt                       : NO
23.49     nettle                          : NO
23.49     SM4 ALG support                 : NO
23.49     SM3 ALG support                 : NO
23.49     AF_ALG support                  : NO
23.49     rng-none                        : NO
23.49     Linux keyring                   : YES
23.49     Linux keyutils                  : NO
23.49
23.49   User interface
23.49     SDL support                     : NO
23.49     SDL image support               : NO
23.49     GTK support                     : NO
23.49     pixman                          : YES 0.40.0
23.49     VTE support                     : NO
23.49     PNG support                     : NO
23.49     VNC support                     : YES
23.49     VNC SASL support                : NO
23.49     VNC JPEG support                : NO
23.49     spice protocol support          : NO
23.49     curses support                  : YES
23.49     brlapi support                  : NO
23.49
23.49   Graphics backends
23.49     VirGL support                   : NO
23.49     Rutabaga support                : NO
23.49
23.49   Audio backends
23.49     OSS support                     : YES
23.49     sndio support                   : NO
23.49     ALSA support                    : NO
23.49     PulseAudio support              : NO
23.49     PipeWire support                : NO
23.49     JACK support                    : NO
23.49
23.49   Network backends
23.49     AF_XDP support                  : NO
23.49     slirp support                   : YES 4.6.1
23.49     vde support                     : NO
23.49     netmap support                  : NO
23.49     l2tpv3 support                  : YES
23.49
23.49   Dependencies
23.49     libtasn1                        : NO
23.49     PAM                             : NO
23.49     iconv support                   : YES
23.49     blkio support                   : NO
23.49     curl support                    : NO
23.49     Multipath support               : NO
23.49     Linux AIO support               : NO
23.49     Linux io_uring support          : NO
23.49     ATTR/XATTR support              : YES
23.49     RDMA support                    : NO
23.49     fdt support                     : YES
23.49     libcap-ng support               : YES
23.49     bpf support                     : NO
23.49     rbd support                     : NO
23.49     smartcard support               : NO
23.49     U2F support                     : NO
23.49     libusb                          : YES 1.0.25
23.49     usb net redir                   : NO
23.49     OpenGL support (epoxy)          : NO
23.49     GBM                             : NO
23.49     libiscsi support                : NO
23.49     libnfs support                  : NO
23.49     seccomp support                 : NO
23.49     GlusterFS support               : NO
23.49     hv-balloon support              : YES
23.49     TPM support                     : YES
23.49     libssh support                  : NO
23.49     lzo support                     : NO
23.49     snappy support                  : NO
23.49     bzip2 support                   : NO
27.79     lzfse support                   : NO
27.79     zstd support                    : NO
27.79     Query Processing Library support: NO
27.79     UADK Library support            : NO
27.79     qatzip support                  : NO
27.79     NUMA host support               : NO
27.79     capstone                        : NO
27.79     libpmem support                 : NO
27.79     libdaxctl support               : NO
27.79     libcbor support                 : NO
27.79     libudev                         : NO
27.79     FUSE lseek                      : NO
27.79     selinux                         : YES 3.3
27.79     libdw                           : NO
27.79
27.79   Subprojects
27.79     berkeley-softfloat-3            : YES
27.79     berkeley-testfloat-3            : YES
27.79     keycodemapdb                    : YES
27.79     libvduse                        : YES
27.79     libvhost-user                   : YES
27.79
27.79   User defined options
27.79     Native files                    : config-meson.cross
27.79     docs                            : disabled
27.79     plugins                         : true
27.79     slirp                           : enabled
27.79
27.79 Found ninja-1.10.1 at /usr/bin/ninja
27.79 Running postconf script '/optee/qemu/build/pyvenv/bin/python3 /optee/qemu/scripts/symlink-install-tree.py'
------
Dockerfile:65
--------------------
  63 |     WORKDIR /optee/build
  64 |     RUN make -j3 toolchains
  65 | >>> RUN make -j$(nproc) check
  66 |
--------------------
ERROR: failed to solve: process "/bin/sh -c make -j$(nproc) check" did not complete successfully: exit code: 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions