From patchwork Sat Oct 5 09:30:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1172153 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="sQzHmBo9"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46lhLC3nS5z9sPq for ; Sat, 5 Oct 2019 19:30:27 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A4667864AB; Sat, 5 Oct 2019 09:30:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K6mEbdUvXGLF; Sat, 5 Oct 2019 09:30:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2998B8624A; Sat, 5 Oct 2019 09:30:21 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id CF5421BF5DB for ; Sat, 5 Oct 2019 09:30:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CC623203AE for ; Sat, 5 Oct 2019 09:30:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MDQFT7KfbUyX for ; Sat, 5 Oct 2019 09:30:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by silver.osuosl.org (Postfix) with ESMTPS id 03976203AA for ; Sat, 5 Oct 2019 09:30:18 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id p14so8878045wro.4 for ; Sat, 05 Oct 2019 02:30:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dDyiOM951O0kehJNpOF3uoU4lz5iAWCg+6DgpDU7lhI=; b=sQzHmBo9FZd7ueXtQCg65BJVGUXhaWlnSuKeFhtpIUnVCrmElI3Zl50QZGo+Tzbgdk CeG8YVUG3puLhQeg1F27brN+N2kU2xQ85ZPj3fkooHryzrQ4xKfl/WPsCA4mYYJZBiAL X1rK1uagth6L11jXN8fBiU4t1o0v5X8UBVCOgw8FPSIhc0UH/8oTwFPzA6kPYt3zy0tD qOIN+AlvhGagL1nYoyTPxwWU0l5NJktzRPX2Nf4zOiHSgZ40B2oXcIlBqIkzc1L8p1mz Dk1xXAt01g5S5HeRzZaDgiOAGQZICb+hwtM7J7hrGG9tchhXUX31c/4x+hHanIjxkJN9 qkcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dDyiOM951O0kehJNpOF3uoU4lz5iAWCg+6DgpDU7lhI=; b=C/wtmyHTA5Dr5DUIi+7vHDaGarqmbOf6qJH0tFKb2RlFC1H970BM+z4VGTkVP4kzuy 86fQZetDhLHnqW3CM8JMeY/bL1CvuhMmovdCPj0Z0TU/zRGUYctHPeIYu0bsOY5C0l6u J85sJ1bzKtmnD74DNB7q529nkK8KDlulHjUCKy2FfHqYSAJgHe395cSbzltu1gDyhnuo UIW3V26/RQ/LqcyqdjuumGcJMdngaGcran0wtvpdIOhJ/2v6Pt6UmHwbtxtwFrZImDIa xOESzsYDkucVLez9ifi6qTey9f/SFaJZ+E7gkLm5UotY8d9cgffKLbfhVvnGE+xCm+Ls TIkA== X-Gm-Message-State: APjAAAX7IPOSeGIKvUtnXJ4B57lq7fBwLTIcN2DxCYXWfk0ymYNpH0Uq ihBM7yAUG7De2C02qC82plAGg3cV X-Google-Smtp-Source: APXvYqxmeuNYNr9HvlfGAfiZzwHNIPjOdqMQb0IdHY9vH0mBhv2QBjpAD2bpEyigA8VJZfpi/QRucg== X-Received: by 2002:adf:f7ce:: with SMTP id a14mr1628161wrq.239.1570267816111; Sat, 05 Oct 2019 02:30:16 -0700 (PDT) Received: from localhost.localdomain (2a01cb0589880c00405dfcd6cc31e8fe.ipv6.abo.wanadoo.fr. [2a01:cb05:8988:c00:405d:fcd6:cc31:e8fe]) by smtp.gmail.com with ESMTPSA id y186sm14431623wmd.26.2019.10.05.02.30.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Oct 2019 02:30:15 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sat, 5 Oct 2019 11:30:07 +0200 Message-Id: <20191005093009.1020308-2-romain.naour@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191005093009.1020308-1-romain.naour@gmail.com> References: <20191005093009.1020308-1-romain.naour@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/4] package/mesa3d: enable llvm RTTI when needed X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" LLVM must be built with rtti (runtime type information) support to build the Gallium Nouveau driver or the Clover OpenCL state tracker when llvm support is enabled in mesa3d. Fixes the build when BR2_PACKAGE_MESA3D_OPENCL is set: "The Clover OpenCL state tracker requires rtti, you need to turn off clover or use an LLVM built with LLVM_ENABLE_RTTI." This check was added by mesa3d 19.1: https://cgit.freedesktop.org/mesa/mesa/commit/?id=29912f2ea486fb8ffbc98db347679cf542422efe Fixes the build when BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU and BR2_PACKAGE_MESA3D_LLVM are set "The Nouveau driver requires rtti. You either need to turn off nouveau or use an LLVM built with LLVM_ENABLE_RTTI." This check was added by mesa3d 19.0: https://cgit.freedesktop.org/mesa/mesa/commit/?id=a2596450ac7330c8965c819491038fb1ad454333 Signed-off-by: Romain Naour --- package/mesa3d/Config.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in index de5ab4935a..6757e4911c 100644 --- a/package/mesa3d/Config.in +++ b/package/mesa3d/Config.in @@ -49,6 +49,7 @@ config BR2_PACKAGE_MESA3D_OPENCL depends on BR2_PACKAGE_MESA3D_LLVM depends on BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600 || \ BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI + select BR2_PACKAGE_LLVM_RTTI select BR2_PACKAGE_CLANG select BR2_PACKAGE_LIBCLC select BR2_PACKAGE_HAS_LIBOPENCL @@ -122,6 +123,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER select BR2_PACKAGE_LIBDRM_NOUVEAU select BR2_PACKAGE_MESA3D_NEEDS_XA + select BR2_PACKAGE_LLVM_RTTI if BR2_PACKAGE_MESA3D_LLVM help Supports all Nvidia GPUs.