Date: Thu, 15 Jul 2021 22:05:33 GMT From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 64a800d83df2 - main - emulators/qemu: fix build on powerpc Message-ID: <202107152205.16FM5X0Z007450@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=64a800d83df28391a75317302ea47f1210bb5596 commit 64a800d83df28391a75317302ea47f1210bb5596 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2021-07-15 22:02:27 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2021-07-15 22:02:27 +0000 emulators/qemu: fix build on powerpc Define _CALL_SYSV to fix error: In file included from /wrkdirs/usr/ports/emulators/qemu/work/qemu-5.0.1/tcg/tcg.c:344: /wrkdirs/usr/ports/emulators/qemu/work/qemu-5.0.1/tcg/ppc/tcg-target.inc.c:2290:3: error: "Unhandled abi" Use gcc because clang hangs. --- emulators/qemu/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/emulators/qemu/Makefile b/emulators/qemu/Makefile index 17edfbdc8b39..4c341e7a33f0 100644 --- a/emulators/qemu/Makefile +++ b/emulators/qemu/Makefile @@ -123,7 +123,8 @@ PORTDOCS?= docs index.html interop/.buildinfo interop/* qemu-ga-ref.html qemu-ga WITHOUT_CPU_CFLAGS=yes #to avoid problems with register allocation CFLAGS:= ${CFLAGS:C/-fno-tree-vrp//} -CFLAGS_amd64+= -fPIC +CFLAGS_amd64= -fPIC +CFLAGS_powerpc= -D_CALL_SYSV CONFIGURE_ARGS?=--localstatedir=/var \ --extra-ldflags=-L${LOCALBASE}/lib --disable-libssh \ --prefix=${PREFIX} --cc=${CC} --enable-netmap --disable-kvm \ @@ -143,6 +144,7 @@ MAKE_ARGS+= ARCH=x86_64 .if ${ARCH} == "powerpc" MAKE_ARGS+= ARCH=ppc +USE_GCC= yes .endif .if ${ARCH} == "powerpc64"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107152205.16FM5X0Z007450>