Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp809984ybv; Wed, 19 Feb 2020 09:39:38 -0800 (PST) X-Google-Smtp-Source: APXvYqxQzUO46WD6GofjLNjyLOiqRD+p7eF/Rj/bB/EjXjGSwdvFBQOQ/2QTq9ThYGpPvByh9prK X-Received: by 2002:aca:bc0a:: with SMTP id m10mr5381560oif.77.1582133978439; Wed, 19 Feb 2020 09:39:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582133978; cv=none; d=google.com; s=arc-20160816; b=PhD5WFEJ3JyCaDLmWMHAvHbtS0qd6abIWmGDQjGw1LSPPLvix79a2/H3piAniGO6Am 9P1jRdu11Bl9TevWOC8Qn8gJjpmfCdOdyUy/rKTJFmXkHPA81THPw/c0KuhFJmlMkUPN G82xBLYTM9WqnnLF6CU3uTC45Tc2JaeO0tTeQnbOTvvTs4pYDXJNxYsWJDDkC43OWwOZ aMcdIemfywzUC2hVRKuwke1hGtrQSPN5cuXrorSWNLWfx8WvihNZgGk2XhEq34wP/v8/ 3ej/z38pJlFIL/tMzkZLhL8vdUxMePxmK+TzlVtGM5ZmagUbEBsBqraBcY49wylPk/XW AkcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=NqZqDn5bC3qrX9T7zgEhb8g+GU/FvR/stsrD4iObuZQ=; b=OhbBBW49TGYj+7dZXXC10a4pZLXCBq1Fz91tF4Oo2t5rkfiddighdgiNTIv6jbPda6 zL4JPj7cFu+tG3x30xAJzPY/uctjv5yGkeyhF4Pag+n5uXixgFkAbwLp2Gf/uVvewlem zdb3zv3NXnYLosg2WthJ8WH6TnMz5NnbJGIUK8HCMdNWwcc268Dumelheqki9KeiOfSx H86bTP5APUHQ9PIfIedxip70TraXn1GUQuYVwc1G1roVMyg+A4/rREMR3Da5vxG8amiu YBLKL+AJXvZyH2nP+A1M63kxjRDO0iOdLrYESLhzXh8vd8/UjarrlSZwhBbykMNRcQNt vOBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X9zvwLC9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w77si9943164oif.216.2020.02.19.09.39.26; Wed, 19 Feb 2020 09:39:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X9zvwLC9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727103AbgBSRjD (ORCPT + 99 others); Wed, 19 Feb 2020 12:39:03 -0500 Received: from mail-io1-f47.google.com ([209.85.166.47]:41986 "EHLO mail-io1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726518AbgBSRjC (ORCPT ); Wed, 19 Feb 2020 12:39:02 -0500 Received: by mail-io1-f47.google.com with SMTP id z1so1459162iom.9; Wed, 19 Feb 2020 09:39:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NqZqDn5bC3qrX9T7zgEhb8g+GU/FvR/stsrD4iObuZQ=; b=X9zvwLC9CcZHqgPIQ1bcvQT+Km6yEWdhEDcrdQxe+fm3rt5ZsyxEfnT7+2R40qx4XU w4QZZdzt/Y2xlQG/WVC3oTtpWVEM1eOhepq/dcqB31fwn2TvXd5so/U4wOlSY8gX20cw g2t35KwR7X6qEobOD/tUn+1PmV7lSp768CAY/ojMmEMQft6TYneX+a8x+Oy63XE356UQ xe0XV7fn8G6EtubUBLCj+79p2bKp3GKYlhEdkbPMVrmW17rFEWCeccB6CY6hj1edXlLx VbQaK/3yzdm9Je3omJDBxKMYNHu9E2dNfmhxJ+qNzm1xnSONUGlQtAWaB+dJ34+diT87 oeDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NqZqDn5bC3qrX9T7zgEhb8g+GU/FvR/stsrD4iObuZQ=; b=f1cUiy2nQlQS2zVbzxjNYqmtu4LyWej+jq7ZCSLEqqL9JPuF5USLDLagRd+F7QYGQK P5MfS3lTf2vVPlTq0STU048jMp4j6Mq55Pr4TyQQHzrA/PwuhfFaUoBetuNP3E6YsTkl 01saCz1XFflPP70SHmIe8G3FVFy2qJ63x/TteRAR7IMTOenevTZ10YWi69l0AZAf0w7K 7ym/HDYjsg65VVvGVUul60DxZSFNhgGAfbdaheo/UA5JRiedQR4oifwFN0iwVpHbeQub rAfldTdrKOVh5bQ9XOTU/q2+nUxyZcIbSxOESTc8soG1k/Tp+5SyeXGhncruH2IscnOD LGjA== X-Gm-Message-State: APjAAAUu2ORnuOwCPHLlPgjykZZGNo6Nh828EjbomrTR4tKR+/UT+J3V WpFhfiTKOML4sqKhR+08GAbsep7zxN/eUccML8s= X-Received: by 2002:a02:81cc:: with SMTP id r12mr21169261jag.93.1582133941816; Wed, 19 Feb 2020 09:39:01 -0800 (PST) MIME-Version: 1.0 References: <20200219133012.7cb6ac9e@carbon> <20200219180348.40393e28@carbon> In-Reply-To: <20200219180348.40393e28@carbon> From: Andrii Nakryiko Date: Wed, 19 Feb 2020 09:38:50 -0800 Message-ID: Subject: Re: Kernel 5.5.4 build fail for BPF-selftests with latest LLVM To: Jesper Dangaard Brouer Cc: Alexei Starovoitov , Andrii Nakryiko , "netdev@vger.kernel.org" , BPF-dev-list , Daniel Borkmann , David Miller , LKML , Greg Kroah-Hartman , Anders Roxell , =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 19, 2020 at 9:04 AM Jesper Dangaard Brouer wrote: > > On Wed, 19 Feb 2020 08:41:27 -0800 > Alexei Starovoitov wrote: > > > On Wed, Feb 19, 2020 at 4:30 AM Jesper Dangaard Brouer > > wrote: > > > > > > I'm willing to help out, such that we can do either version or feature > > > detection, to either skip compiling specific test programs or at least > > > give users a proper warning of they are using a too "old" LLVM version. > > ... > > > progs/test_core_reloc_bitfields_probed.c:47:13: error: use of unknown builtin '__builtin_preserve_field_info' [-Wimplicit-function-declaration] > > > out->ub1 = BPF_CORE_READ_BITFIELD_PROBED(in, ub1); > > > > imo this is proper warning message already. > > This is an error, not a warning. The build breaks as the make process stops. > Latest Clang was a requirement for building and running all selftests for a long time now. There were few previous discussions on mailing list about this and each time the conclusion was the same: latest Clang is a requirement for BPF selftests. > -- > Best regards, > Jesper Dangaard Brouer > MSc.CS, Principal Kernel Engineer at Red Hat > LinkedIn: http://www.linkedin.com/in/brouer >