From nobody Thu May 9 15:30:23 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1621103191; cv=none; d=zohomail.com; s=zohoarc; b=f6FPqApnukjC9Zy6EbYlkP0eqaUSss98XOefbE/SdURknoJwWHGN5AfyRjpHZEU+9dJ2f4uWbtW0Pwiqous2BtaLmnR9Mx9pIg6aFcIGWjfUqINosa5xzS9GTgTe2h0UZrs2bSCRZnQuOY3CDbiKxjEDoKJT9ixdkx/Wo8nNEtc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1621103191; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=cguvX0Bs0a+gcHalptEaNGReKgS9vyf9dyuK66dd3vU=; b=O977Wx0T1IoewsLX9NHvfwlweMf+92UTfcunvvU/5jKOIF6rXxt1eRzV6IQsEHV+y/cYDsftUpiJdkP9WY6EIZ3/yQhJ0jTDBPkaLWqpZeSRnlEPIDaqls/MqtqHrDlYoMe8d5Ho+mjiqD1YrUMqWV5Gq3wVxE0+fKWYoTRnggk= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1621103191796238.35855452323005; Sat, 15 May 2021 11:26:31 -0700 (PDT) Received: from localhost ([::1]:59120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhyze-0008J2-PU for importer@patchew.org; Sat, 15 May 2021 14:26:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhyyo-0007bh-PU for qemu-devel@nongnu.org; Sat, 15 May 2021 14:25:39 -0400 Received: from indium.canonical.com ([91.189.90.7]:57186) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhyyi-00027t-Kr for qemu-devel@nongnu.org; Sat, 15 May 2021 14:25:38 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.93 #5 (Debian)) id 1lhyyh-0000Ch-En for ; Sat, 15 May 2021 18:25:31 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 5AE7A2E8135 for ; Sat, 15 May 2021 18:25:31 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sat, 15 May 2021 18:17:07 -0000 From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <1914870@bugs.launchpad.net> To: qemu-devel@nongnu.org X-Launchpad-Notification-Type: bug X-Launchpad-Bug: product=qemu; status=Confirmed; importance=Undecided; assignee=None; X-Launchpad-Bug-Information-Type: Public X-Launchpad-Bug-Private: no X-Launchpad-Bug-Security-Vulnerability: no X-Launchpad-Bug-Commenters: philmd th-huth X-Launchpad-Bug-Reporter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9_=28philmd?= =?utf-8?q?=29?= X-Launchpad-Bug-Modifier: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9_=28philmd?= =?utf-8?q?=29?= References: <161262934089.14056.18327208796436481224.malonedeb@soybean.canonical.com> Message-Id: <162110262720.20719.15564812450430902270.malone@soybean.canonical.com> Subject: [Bug 1914870] Re: libvixl compilation failure on Debian unstable X-Launchpad-Message-Rationale: Subscriber (QEMU) @qemu-devel-ml X-Launchpad-Message-For: qemu-devel-ml Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="5321c3f40fa4d4b847f4e47fb766e7b95ed5036c"; Instance="production" X-Launchpad-Hash: b4568a6809ac9f67d7d25abb7534e8d4673097b8 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=91.189.90.7; envelope-from=bounces@canonical.com; helo=indium.canonical.com X-Spam_score_int: -65 X-Spam_score: -6.6 X-Spam_bar: ------ X-Spam_report: (-6.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bug 1914870 <1914870@bugs.launchpad.net> Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Looking at commit 875df03b221 logic ("osdep: protect qemu/osdep.h with exte= rn "C"") I tried this: -- >8 -- diff --git a/disas/libvixl/vixl/utils.h b/disas/libvixl/vixl/utils.h index 5ab134e240..fc28d7456c 100644 --- a/disas/libvixl/vixl/utils.h +++ b/disas/libvixl/vixl/utils.h @@ -27,8 +27,10 @@ #ifndef VIXL_UTILS_H #define VIXL_UTILS_H =20 -#include #include +extern "C" { +#include +} #include "vixl/globals.h" #include "vixl/compiler-intrinsics.h" --- which fixes the problem... --=20 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1914870 Title: libvixl compilation failure on Debian unstable Status in QEMU: Confirmed Bug description: As of commit 0e324626306: $ lsb_release -d Description: Debian GNU/Linux bullseye/sid Project version: 5.2.50 C compiler for the host machine: cc (gcc 10.2.1 "cc (Debian 10.2.1-6) 10.= 2.1 20210110") C linker for the host machine: cc ld.bfd 2.35.1 C++ compiler for the host machine: c++ (gcc 10.2.1 "c++ (Debian 10.2.1-6)= 10.2.1 20210110") C++ linker for the host machine: c++ ld.bfd 2.35.1 [6/79] Compiling C++ object libcommon.fa.p/disas_libvixl_vixl_utils.cc.o FAILED: libcommon.fa.p/disas_libvixl_vixl_utils.cc.o=20 c++ -Ilibcommon.fa.p -I. -I.. -Iqapi -Itrace -Iui/shader -I/usr/include/c= apstone -I/usr/include/glib-2.0 -I/usr/lib/hppa-linux-gnu/glib-2.0/include = -fdiagnostics-color=3Dauto -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -We= rror -std=3Dgnu++11 -O2 -g -isystem /home/philmd/qemu/linux-headers -isyste= m linux-headers -iquote . -iquote /home/philmd/qemu -iquote /home/philmd/qe= mu/include -iquote /home/philmd/qemu/disas/libvixl -iquote /home/philmd/qem= u/tcg/hppa -iquote /home/philmd/qemu/accel/tcg -pthread -D__STDC_LIMIT_MACR= OS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -U_FORTIFY_SOURCE -D_FOR= TIFY_SOURCE=3D2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE = -Wundef -Wwrite-strings -fno-strict-aliasing -fno-common -fwrapv -Wtype-lim= its -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty= -body -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=3D2 -Wno= -missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fPIE -MD -MQ li= bcommon.fa.p/disas_libvixl_vixl_utils.cc.o -MF libcommon.fa.p/disas_libvixl= _vixl_utils.cc.o.d -o libcommon.fa.p/disas_libvixl_vixl_utils.cc.o -c ../di= sas/libvixl/vixl/utils.cc In file included from /home/philmd/qemu/disas/libvixl/vixl/utils.h:30, from ../disas/libvixl/vixl/utils.cc:27: /usr/include/string.h:36:43: error: missing binary operator before token = "(" 36 | #if defined __cplusplus && (__GNUC_PREREQ (4, 4) \ | ^ /usr/include/string.h:53:62: error: missing binary operator before token = "(" 53 | #if defined __USE_MISC || defined __USE_XOPEN || __GLIBC_USE (ISO= C2X) | ^ /usr/include/string.h:165:21: error: missing binary operator before token= "(" 165 | || __GLIBC_USE (LIB_EXT2) || __GLIBC_USE (ISOC2X)) | ^ /usr/include/string.h:174:43: error: missing binary operator before token= "(" 174 | #if defined __USE_XOPEN2K8 || __GLIBC_USE (LIB_EXT2) || __GLIBC_U= SE (ISOC2X) | ^ /usr/include/string.h:492:19: error: missing binary operator before token= "(" 492 | #if __GNUC_PREREQ (3,4) | ^ In file included from /home/philmd/qemu/disas/libvixl/vixl/utils.h:30, from ../disas/libvixl/vixl/utils.cc:27: /usr/include/string.h:28:1: error: =E2=80=98__BEGIN_DECLS=E2=80=99 does n= ot name a type 28 | __BEGIN_DECLS | ^~~~~~~~~~~~~ In file included from /home/philmd/qemu/disas/libvixl/vixl/utils.h:30, from ../disas/libvixl/vixl/utils.cc:27: /usr/include/string.h:44:8: error: =E2=80=98size_t=E2=80=99 has not been = declared 44 | size_t __n) __THROW __nonnull ((1, 2)); | ^~~~~~ /usr/include/string.h:44:20: error: expected initializer before =E2=80=98= __THROW=E2=80=99 44 | size_t __n) __THROW __nonnull ((1, 2)); | ^~~~~~~ /usr/include/string.h:47:56: error: =E2=80=98size_t=E2=80=99 has not been= declared 47 | extern void *memmove (void *__dest, const void *__src, size_t __n) | ^~~~~~ /usr/include/string.h:48:6: error: expected initializer before =E2=80=98_= _THROW=E2=80=99 48 | __THROW __nonnull ((1, 2)); | ^~~~~~~ /usr/include/string.h:61:42: error: =E2=80=98size_t=E2=80=99 has not been= declared 61 | extern void *memset (void *__s, int __c, size_t __n) __THROW __no= nnull ((1)); | ^~~~~~ Is there a package dependency missing? To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1914870/+subscriptions