From patchwork Sat Sep 7 09:40:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1159309 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=none (p=none dis=none) header.from=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.b="mYP+5VL5"; 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 46QTvG5pG9z9sDB for ; Sat, 7 Sep 2019 19:40:58 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B6D6D86398; Sat, 7 Sep 2019 09:40:56 +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 O9uEwtAkyJ3S; Sat, 7 Sep 2019 09:40:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1C2BD86208; Sat, 7 Sep 2019 09:40:56 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id B5EDD1BF401 for ; Sat, 7 Sep 2019 09:40:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B20C586204 for ; Sat, 7 Sep 2019 09:40:49 +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 Y7i97Kb0YBgm for ; Sat, 7 Sep 2019 09:40:47 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 89EDD86203 for ; Sat, 7 Sep 2019 09:40:47 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id k2so8777514wmj.4 for ; Sat, 07 Sep 2019 02:40:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Gtz1N110jiyseyZgLv/PyBg6XNusxbGf+DJGACyepPY=; b=mYP+5VL5jOtwcKL29xi8xw7WYPvUtPacrZXcQTFbPkORxwLGJlYQIf3Z9fRI+h21aU 8BK5tHWzEI6LJDE1E8ot9VaHLibNVyWm4fHQUnLzNdpH06m8uOZ27o5VfGMpN6FQjLq9 ouwKlVhJheIo9S5aUqYWlVdn3Hc0/3qcUgFttxBp47kOeuoPZut3jbcP1pAPP6R/qA2v D6pK+kGxxIXUW5RjdIGKfb3Eis5iB4Vb9OeL9xDY10XraCzfp4YxopHPNb32pTs0cHnO BJMHQFNdtt30GWJT1y7ODfAH5J0UiROM8ZEimwo11VaCU+qGkaCQ4WqviOSdIuBS6O0R dKaw== 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=Gtz1N110jiyseyZgLv/PyBg6XNusxbGf+DJGACyepPY=; b=I99MC8oi0djd05Vus1EwIolZnQan2oVumY1MwDvy26tBDvGMlFMTFbffPoNERwTQuz Q1p9oYb3IW3P0cvmog/+tQ5/pmNzbwZRjr9VZi0Blzqf9Yt/ysUlDKXGgEKjpsNmyYFO Jg8cE0IX9Qe7KtU9ycFbsLj9rcJGyuBqoMOe8p3fltqp6Zydjyw/evd7H4vOI+cr8i60 Wlm8AFJ8IoWdAsKa0M7NpvyZ1R+dd1jYjmI2ULmpjOHsIY3ly2y7KXlk7AkrSfLmLWZJ sxC/+L60sqk3DGynqEgJo7lFlGGHx3ws94XcKXnUUiLDXiWROwU1BLgpLeeHRuQPYyJa FzwA== X-Gm-Message-State: APjAAAVAXD3xYb9e75X26lhpBdfhGdIOf++Dg8s0HfrPtLOHr5oI53/+ jxWMcPLSjAkqSdtkD1sMbcCP69Oy97s= X-Google-Smtp-Source: APXvYqxCbNLMSrPWAQW6c2n23PGqCUb27YX65ESB4FgcHD+4EPU3thSDM420QL/IpBsKoR+3Jbr6IQ== X-Received: by 2002:a1c:7003:: with SMTP id l3mr10250224wmc.0.1567849245931; Sat, 07 Sep 2019 02:40:45 -0700 (PDT) Received: from P-ASN-Evian.home (2a01cb0589880c00c543929d43aec786.ipv6.abo.wanadoo.fr. [2a01:cb05:8988:c00:c543:929d:43ae:c786]) by smtp.gmail.com with ESMTPSA id f13sm6384700wrq.3.2019.09.07.02.40.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Sep 2019 02:40:45 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sat, 7 Sep 2019 11:40:27 +0200 Message-Id: <20190907094027.9537-13-romain.naour@smile.fr> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190907094027.9537-1-romain.naour@smile.fr> References: <20190907094027.9537-1-romain.naour@smile.fr> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 12/12] linux: don't set -Wno-attribute-alias flag when Clang is used as cross-compiler 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 , Valentin Korenblit Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Clang stop the build due to -Werror and -Wunknown-warning-option: error: unknown warning option '-Wno-attribute-alias'; did you mean '-Wattributes'? [-Werror,-Wunknown-warning-option] Signed-off-by: Romain Naour Cc: Matt Weber Cc: Valentin Korenblit Tested-by: Matt Weber --- linux/linux.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux/linux.mk b/linux/linux.mk index d381c96d85..93d80d85e6 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -145,7 +145,8 @@ endif # abusing those aliases for system call entry points, in order to # sanitize the arguments passed from user space in registers. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82435 -ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_8),y) +# Clang doesn't support -Wno-attribute-alias +ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_8):$(BR2_USER_HOST_CLANG_AS_CROSS_COMPILER),y:) LINUX_MAKE_ENV += KCFLAGS=-Wno-attribute-alias endif