[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue with submodules on macOS & meson

From: Marc-André Lureau
Subject: Re: Issue with submodules on macOS & meson
Date: Wed, 26 Aug 2020 17:50:10 +0400


On Wed, Aug 26, 2020 at 5:40 PM Emmanuel Blot <eblot.com@gmail.com> wrote:

Using current master 78dca230 w/ Meson/ninja, build fails with capstone

* ../configure --target-list=riscv64-softmmu && ninja

You need to run 'make' (at least once - but still by preference for now). Submodule handling is done by Makefile.

   fails because capstone is automatically enabled @ configure stage,
but capstone is not installed on the host, and the local capstone/
submodule is not automatically populated:

cc -Ilibqemu-riscv64-softmmu.fa.p -I. -I.. -Itarget/riscv
-I../target/riscv -Iqapi -Itrace -Iui -Iui/shader
-I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.44/include
-Xclang -fcolor-diagnostics -pipe -Wall -Winvalid-pch -std=gnu99 -O2 -g
-m64 -mcx16 -DOS_OBJECT_USE_OBJC=0 -arch x86_64 -D_GNU_SOURCE
-Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes
-fno-strict-aliasing -fno-common -fwrapv -Wold-style-definition
-Wtype-limits -Wformat-security -Wformat-y2k -Winit-self
-Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels
-Wexpansion-to-defined -Wno-initializer-overrides
-Wno-missing-include-dirs -Wno-shift-negative-value -Wno-string-plus-int
-Wno-typedef-redefinition -Wno-tautological-type-limit-compare
-fstack-protector-strong -iquote
/Users/eblot/Sources/Git/github.com/QEMU/upstream/tcg/i386 -iquote .
-iquote /Users/eblot/Sources/Git/github.com/QEMU/upstream -iquote
/Users/eblot/Sources/Git/github.com/QEMU/upstream/accel/tcg -iquote
/Users/eblot/Sources/Git/github.com/QEMU/upstream/include -iquote
-DNEED_CPU_H '-DCONFIG_TARGET="riscv64-softmmu-config-target.h"'
'-DCONFIG_DEVICES="riscv64-softmmu-config-devices.h"' -MD -MQ
libqemu-riscv64-softmmu.fa.p/disas.c.o -MF
libqemu-riscv64-softmmu.fa.p/disas.c.o.d -o
libqemu-riscv64-softmmu.fa.p/disas.c.o -c ../disas.c
In file included from ../disas.c:9:
error: 'capstone.h' file not found with <angled> include; use "quotes"
#include <capstone.h>

* ../configure --target-list=riscv64-softmmu —enable-capstone=git &&
   fails for the same reason (git submodule is not pulled)

* git submodule init && git submodule update capstone && ../configure
--target-list=riscv64-softmmu && ninja
   fails because capstone.h is now found, but the library is not built:

     ld: library not found for -lcapstone
     clang: error: linker command failed with exit code 1 (use -v to see

    build/capstone is created but stays empty.

* ../configure --target-list=riscv64-softmmu —disable-capstone
    seems ok

A similar issue arises with slirp: slirp is automatically selected while
not installed on the host and not pulled as a submodule. If the
submodule is manually pulled, slirp is not built and QEMU fails to build
because libslirp-version.h is not generated.

fatal error: 'libslirp-version.h' file not found

Am I missing something obvious?

I cannot reproduce those issues with v.5.1.0


Marc-André Lureau

reply via email to

[Prev in Thread] Current Thread [Next in Thread]