All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: "Paolo Bonzini" <pbonzini@redhat.com>,
	"Daniel P . Berrange" <berrange@redhat.com>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Alex Bennée" <alex.bennee@linaro.org>,
	"Richard Henderson" <richard.henderson@linaro.org>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: check-unit: GLib-ERROR **: 20:40:27.-147: GLib requires working CLOCK_MONOTONIC
Date: Mon, 22 Mar 2021 11:14:23 +0100	[thread overview]
Message-ID: <042a65c0-6345-5a86-aac9-fac4d87ba789@redhat.com> (raw)
In-Reply-To: <1428497d-5ee4-50c0-9f06-d490458338b4@redhat.com>

+Linaro folks

On 3/19/21 2:12 PM, Philippe Mathieu-Daudé wrote:
> Hi,
> 
> I'm seeing an odd "GLib-FATAL-ERROR: GLib requires working
> CLOCK_MONOTONIC" error in the cross-i386-user job...
> 
> The runner console output is:
> 
> Running with gitlab-runner 13.9.0 (2ebc4dc4)
> Using Docker executor with image
> registry.gitlab.com/philmd/qemu2/qemu/fedora-i386-cross:latest ...
> Authenticating with credentials from job payload (GitLab Registry)
> Pulling docker image
> registry.gitlab.com/philmd/qemu2/qemu/fedora-i386-cross:latest ...
> Using docker image
> sha256:b835431485e9c7a1522d04a653f4ca068fcc53af73f997d6aab9b9bfaf4a252a
> for registry.gitlab.com/philmd/qemu2/qemu/fedora-i386-cross:latest with
> digest
> registry.gitlab.com/philmd/qemu2/qemu/fedora-i386-cross@sha256:9e5c3c5c352bb83d89858991855115542d47fa091f9895755471ea7d122b2555
> ...
> $ mkdir build
> $ cd build
> $ PKG_CONFIG_PATH=$PKG_CONFIG_PATH ../configure --enable-werror
> $QEMU_CONFIGURE_OPTS --disable-system
> No C++ compiler available; disabling C++ specific optional code
> The Meson build system
> Version: 0.55.3
> Source dir: /builds/philmd/qemu2
> Build dir: /builds/philmd/qemu2/build
> Build type: native build
> Using 'PKG_CONFIG_PATH' from environment with value: '/usr/lib/pkgconfig'
> Using 'PKG_CONFIG_PATH' from environment with value: '/usr/lib/pkgconfig'
> Project name: qemu
> Project version: 5.2.50
> C compiler for the host machine: cc (gcc 10.2.1 "cc (GCC) 10.2.1
> 20201125 (Red Hat 10.2.1-9)")
> C linker for the host machine: cc ld.bfd 2.35-18
> Host machine cpu family: x86_64
> Host machine cpu: x86_64
> ../meson.build:10: WARNING: Module unstable-keyval has no backwards or
> forwards compatibility and might not exist in future releases.
> Program sh found: YES
> Program python3 found: YES (/usr/bin/python3)
> Program bzip2 found: YES
> Program cgcc found: NO
> Library m found: YES
> Library util found: YES
> Run-time dependency appleframeworks found: NO (tried framework)
> Library aio found: NO
> Found pkg-config: /usr/bin/pkg-config (1.7.3)
> Using 'PKG_CONFIG_PATH' from environment with value: '/usr/lib/pkgconfig'
> Run-time dependency zlib found: YES 1.2.11
> Run-time dependency appleframeworks found: NO (tried framework)
> Library rt found: YES
> Run-time dependency libpng found: NO (tried pkgconfig)
> Run-time dependency libjpeg found: NO (tried pkgconfig)
> Has header "sasl/sasl.h" : NO
> Run-time dependency libkeyutils found: NO (tried pkgconfig)
> Checking for function "gettid" : YES
> Run-time dependency fuse3 found: NO (tried pkgconfig)
> Has header "linux/btrfs.h" : YES
> Has header "libdrm/drm.h" : NO
> Has header "pty.h" : YES
> Has header "sys/ioccom.h" : NO
> Has header "sys/kcov.h" : NO
> Checking for function "system" : YES
> Checking for function "preadv" : YES
> Program scripts/minikconf.py found: YES
> Configuring aarch64-linux-user-config-target.h using configuration
> Configuring aarch64_be-linux-user-config-target.h using configuration
> Configuring alpha-linux-user-config-target.h using configuration
> Configuring arm-linux-user-config-target.h using configuration
> Configuring armeb-linux-user-config-target.h using configuration
> Configuring cris-linux-user-config-target.h using configuration
> Configuring hexagon-linux-user-config-target.h using configuration
> Configuring hppa-linux-user-config-target.h using configuration
> Configuring i386-linux-user-config-target.h using configuration
> Configuring m68k-linux-user-config-target.h using configuration
> Configuring microblaze-linux-user-config-target.h using configuration
> Configuring microblazeel-linux-user-config-target.h using configuration
> Configuring mips-linux-user-config-target.h using configuration
> Configuring mips64-linux-user-config-target.h using configuration
> Configuring mips64el-linux-user-config-target.h using configuration
> Configuring mipsel-linux-user-config-target.h using configuration
> Configuring mipsn32-linux-user-config-target.h using configuration
> Configuring mipsn32el-linux-user-config-target.h using configuration
> Configuring nios2-linux-user-config-target.h using configuration
> Configuring or1k-linux-user-config-target.h using configuration
> Configuring ppc-linux-user-config-target.h using configuration
> Configuring ppc64-linux-user-config-target.h using configuration
> Configuring ppc64le-linux-user-config-target.h using configuration
> Configuring riscv32-linux-user-config-target.h using configuration
> Configuring riscv64-linux-user-config-target.h using configuration
> Configuring s390x-linux-user-config-target.h using configuration
> Configuring sh4-linux-user-config-target.h using configuration
> Configuring sh4eb-linux-user-config-target.h using configuration
> Configuring sparc-linux-user-config-target.h using configuration
> Configuring sparc32plus-linux-user-config-target.h using configuration
> Configuring sparc64-linux-user-config-target.h using configuration
> Configuring x86_64-linux-user-config-target.h using configuration
> Configuring xtensa-linux-user-config-target.h using configuration
> Configuring xtensaeb-linux-user-config-target.h using configuration
> Run-time dependency capstone found: NO (tried pkgconfig)
> Configuring capstone-defs.h using configuration
> Configuring config-host.h using configuration
> Program scripts/hxtool found: YES
> Program scripts/shaderinclude.pl found: YES
> Program scripts/qapi-gen.py found: YES
> Program scripts/qemu-version.sh found: YES
> Run-time dependency threads found: YES
> Program keycodemapdb/tools/keymap-gen found: YES
> Program scripts/decodetree.py found: YES
> Program nm found: YES
> Program scripts/undefsym.py found: YES
> Program scripts/feature_to_c.sh found: YES
> Program qemu-keymap found: NO
> Program sphinx-build-3 sphinx-build found: NO
> Program python3 found: YES (/usr/bin/python3)
> Program diff found: YES
> Program dbus-daemon found: NO
> Program initrd-stress.sh found: YES
> Build targets in project: 246
> qemu 5.2.50
>   Directories
>                    Install prefix: /usr/local
>                    BIOS directory: share/qemu
>                     firmware path: /usr/local/share/qemu-firmware
>                  binary directory: bin
>                 library directory: lib
>                  module directory: lib/qemu
>                 libexec directory: libexec
>                 include directory: include
>                  config directory: /usr/local/etc
>             local state directory: /usr/local/var
>                  Manual directory: share/man
>                     Doc directory: /usr/local/share/doc
>                   Build directory: /builds/philmd/qemu2/build
>                       Source path: /builds/philmd/qemu2
>                    GIT submodules: ui/keycodemapdb
> tests/fp/berkeley-testfloat-3 tests/fp/berkeley-softfloat-3 dtc capstone
> slirp
>   Host binaries
>                               git: git
>                              make: make
>                            python: /usr/bin/python3 (version: 3.9)
>                      sphinx-build: NO
>                       genisoimage:
>   Configurable features
>                     Documentation: NO
>             system-mode emulation: NO
>               user-mode emulation: YES
>                       block layer: NO
>                     Install blobs: YES
>                    module support: NO
>                    plugin support: NO
>                   fuzzing support: NO
>                    Trace backends: log
>                     QOM debugging: YES
>              vhost-kernel support: YES
>                 vhost-net support: YES
>              vhost-crypto support: NO
>                vhost-scsi support: YES
>               vhost-vsock support: YES
>                vhost-user support: NO
>     vhost-user-blk server support: NO
>             vhost-user-fs support: NO
>                vhost-vdpa support: YES
>                 build guest agent: NO
>   Compilation
>                          host CPU: x86_64
>                   host endianness: little
>                        C compiler: cc
>                   Host C compiler: cc
>                      C++ compiler: NO
>                           ARFLAGS: rv
>                            CFLAGS: -O2 -g
>                       QEMU_CFLAGS: -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
> -m32 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings
> -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv  -m32
> -Wold-style-declaration -Wold-style-definition -Wtype-limits
> -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers
> -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined
> -Wimplicit-fallthrough=2 -Wno-missing-include-dirs
> -Wno-shift-negative-value -Wno-psabi -fstack-protector-strong
>                      QEMU_LDFLAGS: -Wl,--warn-common -Wl,-z,relro
> -Wl,-z,now -m32  -m32 -fstack-protector-strong
>                          profiler: NO
>      link-time optimization (LTO): NO
>                               PIE: YES
>                      static build: NO
>               malloc trim support: YES
>                        membarrier: NO
>                    preadv support: YES
>                         fdatasync: YES
>                           madvise: YES
>                     posix_madvise: YES
>                    posix_memalign: YES
>                 debug stack usage: NO
>                   mutex debugging: NO
>                  memory allocator: system
>                 avx2 optimization: YES
>              avx512f optimization: NO
>                     gprof enabled: NO
>                              gcov: NO
>                  thread sanitizer: NO
>                       CFI support: NO
>                    strip binaries: YES
>                            sparse: NO
>                   mingw32 support: NO
>                        i386 tests: cc
>                      x86_64 tests: cc
>   Targets and accelerators
>                       TCG support: YES
>                       TCG backend: native (x86_64)
>                 TCG debug enabled: NO
>                       target list: aarch64-linux-user
> aarch64_be-linux-user alpha-linux-user arm-linux-user armeb-linux-user
> cris-linux-user hexagon-linux-user hppa-linux-user i386-linux-user
> m68k-linux-user microblaze-linux-user microblazeel-linux-user
> mips-linux-user mips64-linux-user mips64el-linux-user mipsel-linux-user
> mipsn32-linux-user mipsn32el-linux-user nios2-linux-user or1k-linux-user
> ppc-linux-user ppc64-linux-user ppc64le-linux-user riscv32-linux-user
> riscv64-linux-user s390x-linux-user sh4-linux-user sh4eb-linux-user
> sparc-linux-user sparc32plus-linux-user sparc64-linux-user
> x86_64-linux-user xtensa-linux-user xtensaeb-linux-user
>   Block layer support
>                 coroutine backend: ucontext
>                    coroutine pool: YES
>   Crypto
>                      TLS priority: "NORMAL"
>                    GNUTLS support: YES
>                         libgcrypt: NO
>                            nettle: YES
>                               XTS: YES
>                      crypto afalg: NO
>                          rng-none: NO
>                     Linux keyring: YES
>   Dependencies
>                       SDL support: NO
>                 SDL image support: NO
>                       GTK support: NO
>                            pixman: NO
>                       VTE support: NO
>                     slirp support: NO
>                          libtasn1: YES
>                               PAM: NO
>                     iconv support: NO
>                    curses support: NO
>                     virgl support: NO
>                      curl support: NO
>                 Multipath support: NO
>                       VNC support: YES
>                  VNC SASL support: NO
>                  VNC JPEG support: NO
>                   VNC PNG support: NO
>                    brlapi support: NO
>                       vde support: NO
>                    netmap support: NO
>                 Linux AIO support: NO
>            Linux io_uring support: NO
>                ATTR/XATTR support: YES
>                      RDMA support: NO
>                    PVRDMA support: NO
>                       fdt support: auto
>                 libcap-ng support: NO
>                     spice support: NO
>                       rbd support: NO
>                    xfsctl support: NO
>                 smartcard support: NO
>                       U2F support: NO
>                            libusb: NO
>                     usb net redir: NO
>                    OpenGL support: NO
>                               GBM: NO
>                  libiscsi support: NO
>                    libnfs support: NO
>                   seccomp support: NO
>                 GlusterFS support: NO
>                       TPM support: YES
>                    libssh support: NO
>                       lzo support: NO
>                    snappy support: NO
>                     bzip2 support: NO
>                     lzfse support: NO
>                      zstd support: NO
>                 NUMA host support: NO
>                           libxml2: NO
>                          capstone: internal
>                   libpmem support: NO
>                 libdaxctl support: NO
>                           libudev: NO
>                        FUSE lseek: NO
> Found ninja-1.10.2 at /usr/bin/ninja
> $ make -j$(expr $(nproc) + 1) all check-build $MAKE_CHECK_ARGS
>   GIT     ui/keycodemapdb tests/fp/berkeley-testfloat-3
> tests/fp/berkeley-softfloat-3 dtc capstone slirp
> /usr/bin/ninja  build.ninja && touch build.ninja.stamp
> ninja: no work to do.
> /usr/bin/meson introspect --targets --tests --benchmarks |
> /usr/bin/python3 -B scripts/mtest2make.py > Makefile.mtest
>   GIT     ui/keycodemapdb tests/fp/berkeley-testfloat-3
> tests/fp/berkeley-softfloat-3 dtc capstone slirp
> [1/2962] Compiling C object libcapstone.a.p/capstone_MCInstrDesc.c.o
> [2/2962] Compiling C object libcapstone.a.p/capstone_MCRegisterInfo.c.o
> [3/2962] Compiling C object libcapstone.a.p/capstone_MCInst.c.o
> [4/2962] Compiling C object libcapstone.a.p/capstone_SStream.c.o
> [5/2962] Compiling C object libcapstone.a.p/capstone_utils.c.o
> ...
> [2959/2962] Compiling C object
> tests/unit/ptimer-test.p/_builds_philmd_qemu2_hw_core_ptimer.c.o
> [2960/2962] Linking target tests/fp/fp-bench
> [2961/2962] Linking target tests/unit/ptimer-test
> [2962/2962] Linking target tests/fp/fp-test
> make: Nothing to be done for 'check-build'.
> Running test check-block-qdict
> (tests/unit/check-block-qdict:12531): GLib-ERROR **: 08:30:50.-401: GLib
> requires working CLOCK_MONOTONIC

Could that error come from a missing runner capability?
Or something odd on the host kernel?

If so, should we add a check in ./configure to warn about this
problem when building? (We can build but we can not run QEMU).



      reply	other threads:[~2021-03-22 10:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-19 13:12 check-unit: GLib-ERROR **: 20:40:27.-147: GLib requires working CLOCK_MONOTONIC Philippe Mathieu-Daudé
2021-03-22 10:14 ` Philippe Mathieu-Daudé [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=042a65c0-6345-5a86-aac9-fac4d87ba789@redhat.com \
    --to=philmd@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=berrange@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.