From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:42304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJH7k-0002yw-S5 for qemu-devel@nongnu.org; Wed, 24 Apr 2019 08:35:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJH7i-00013Z-TA for qemu-devel@nongnu.org; Wed, 24 Apr 2019 08:35:40 -0400 Received: from indium.canonical.com ([91.189.90.7]:33084) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hJH7i-0000xA-G7 for qemu-devel@nongnu.org; Wed, 24 Apr 2019 08:35:38 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.86_2 #2 (Debian)) id 1hJH7Z-0004RW-AY for ; Wed, 24 Apr 2019 12:35:29 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 2D35F2E80CC for ; Wed, 24 Apr 2019 12:35:29 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 24 Apr 2019 12:25:50 -0000 From: Peter Maydell Reply-To: Bug 1826175 <1826175@bugs.launchpad.net> Sender: bounces@canonical.com References: <155609955691.16667.3366200166619949036.malonedeb@soybean.canonical.com> Message-Id: <155610875051.6812.7712055768616458458.malone@chaenomeles.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1826175] Re: Compilation on MSYS2/MinGW-w64 fails with error: "No rule to make target capstone.lib" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org https://github.com/aquynh/capstone/issues/1464 is the upstream bug -- thanks for reporting it there. ** Bug watch added: github.com/aquynh/capstone/issues #1464 https://github.com/aquynh/capstone/issues/1464 -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1826175 Title: Compilation on MSYS2/MinGW-w64 fails with error: "No rule to make target capstone.lib" Status in QEMU: New Bug description: I submitted this bug to Capstone directly but I figured it'd be useful to post it here too. The IS_MINGW check in the Makefile for Capstone fails under MSYS2 MinGW-w64 because cc --version doesn't have mingw in the output anymore: $ whereis cc cc: /mingw64/bin/cc.exe $ cc --version cc.exe (Rev2, Built by MSYS2 project) 8.3.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOS= E. Really simple patch: diff --git "a/Makefile" "b/Makefile" index 063f50db..1d9f042e 100644 --- "a/Makefile" +++ "b/Makefile" @@ -288,7 +288,7 @@ CFLAGS :=3D $(CFLAGS:-fPIC=3D) # On Windows we need the shared library to be executable else # mingw? -IS_MINGW :=3D $(shell $(CC) --version | grep -i mingw | wc -l) +IS_MINGW :=3D $(shell $(CC) --version | grep -i msys2 | wc -l) ifeq ($(IS_MINGW),1) EXT =3D dll AR_EXT =3D lib To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1826175/+subscriptions