Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp857449ybv; Wed, 19 Feb 2020 10:40:26 -0800 (PST) X-Google-Smtp-Source: APXvYqzsldjKZ8pUuQ3mxvvQ29RwdJbworhLu9PZ0jeNG0I27qAotwi6jA7O7ytT5Jo2iETAga/b X-Received: by 2002:aca:f305:: with SMTP id r5mr5696087oih.174.1582137625892; Wed, 19 Feb 2020 10:40:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582137625; cv=none; d=google.com; s=arc-20160816; b=HdLWDREASdsb49D3PtkGgcTRFVgWl8qMxzjprNlN31LhAzJIWRv9fecQfltLKsk8XI 65US0Uke1X29jY+A7ymIFo5WEc78ymzHkpLVyyxpZQf6zz9X7bL+C6b+Vjz1A29lGbVd JjTUxoGFAbIq8/WbnQvggJ1E4oHtTcktEOlkmiW2T73QVWhCWRyUR59w1TFFltLuiUUc HDeMu+y0wHCHwCMDeYZuxh5bQiH7txr+B06rO//yPBrPoYvnJ/YfAFaRqlMAfkrpBp3t kVOMihokpVM9W33asx8sJlB6Cc2BC0la8MnPoKLIH49Wy1An4zIw3Dh7yD55+ilvAlkB P60g== 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=9rFtbpEK/pv7MaVuCRPS0QnaNP+BWE7+SWRKkiX4Bc0=; b=EItJePkXYCIs34PiuSzrJnEY6PPfZNMwDJASGaAsCanga1jAGnUC9y2cI1S9Cx11XQ Y445h9HYJZa3vD4cBr8UfORwSAjiACGIYm2E4G7/XsqgC9vIfqSXiDmXBMlXmeBSfIV4 m623wh677ooEU7jv4oMVgn2ygcRSHwtRiyuc1XB3uQkgCVtZ03HWRYEGhrlxG3xiKZsW q7AP0r93tWbuhar/LV5SZ4fcJIIXP5uE/+ekQIYBKXkY4PqxQjdu64LB3w0LC5Rk3wp8 4nVULC3jUXuV+1wDfDQIJ+ELQBiEkXhy2QiUKnQVzepNGzvNbQRFg1eA69zAL0SvrzI+ qz6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ruvoWZhP; 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 d197si9459990oig.115.2020.02.19.10.40.12; Wed, 19 Feb 2020 10:40:25 -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=ruvoWZhP; 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 S1726734AbgBSSi5 (ORCPT + 99 others); Wed, 19 Feb 2020 13:38:57 -0500 Received: from mail-qv1-f65.google.com ([209.85.219.65]:43524 "EHLO mail-qv1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726671AbgBSSi5 (ORCPT ); Wed, 19 Feb 2020 13:38:57 -0500 Received: by mail-qv1-f65.google.com with SMTP id p2so644011qvo.10; Wed, 19 Feb 2020 10:38:56 -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=9rFtbpEK/pv7MaVuCRPS0QnaNP+BWE7+SWRKkiX4Bc0=; b=ruvoWZhP4w3GP/DQ2XHfLqzoOGPI1EjC0rZp2A9jnitdHOD7/gaAKvEmiCSMr0nsvY 1EPYQq41qknMI2uxrV/YYWGZYB66RQR5QM4wzPZ0YZRuGOQsUSh+SKF9dIkNJ/5LfqzR Rjk7ckhw+NB+qvaJ9c/yDzYF7PxmiRNGTD7dDU2qdSy+d7U+mvBqSAKHbyfuoxUN7bQa vvePBRTk2zyLNJdRghuA6e7IGMB3tMuFu4Y/IqGiytiM0G4hK7np7otgwlxk2qKNwxN7 DrjArR6RMrU3MnahQ/uzmxhHwSrrxIWu/4vW3pu37RNB59D9swbxHBIH3GQH00tls7rZ pxqw== 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=9rFtbpEK/pv7MaVuCRPS0QnaNP+BWE7+SWRKkiX4Bc0=; b=sGctTknFFMeSHVweeqZCG3fU1ge7ukpA1hMu0v+1UHzG+YSBMpl3cRejQ5Ndk614Rn FNGYN/InZ7mVYUnfK2v/f5la4ySPV48nktG7kbpJ/NOg4ggcCUzbIIoxzHXoDTtqyyat d1rIC9HreZ+hT025GKnjypKLdPOknGMrU8y15Nr25j2E67ifpBut0W7t5/AL8AGFwnTC lztwlDt1i8OjyvtRT2rf2pPpgFJoqHDjOm21AkJyY7wHlmgTPo8rFL/yluUUTpTNZ8Hc DYrkzZ+MvV2WJeWzsTs3o1mvKxddLpV8mfP0UBlke3fHo3zbD287d83mkYQmryfVIdb+ RPkQ== X-Gm-Message-State: APjAAAVyORNkavGqteosbuKzSFPcqW5G3cqUEuQ/eY4GPC/A5T2ZTuWX aHDSIM+sIh/L0gY4mTW35gtKkMOqtiRC2rn0Wj8= X-Received: by 2002:ad4:514e:: with SMTP id g14mr22238350qvq.196.1582137536138; Wed, 19 Feb 2020 10:38:56 -0800 (PST) MIME-Version: 1.0 References: <20200219133012.7cb6ac9e@carbon> <20200219180348.40393e28@carbon> <20200219192854.6b05b807@carbon> In-Reply-To: <20200219192854.6b05b807@carbon> From: Andrii Nakryiko Date: Wed, 19 Feb 2020 10:38:45 -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 10:29 AM Jesper Dangaard Brouer wrote: > > On Wed, 19 Feb 2020 09:38:50 -0800 > Andrii Nakryiko wrote: > > > 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. > > The latest Clang is 9.0.1, and it doesn't build with that. Latest as in "latest built from sources". > > -- > Best regards, > Jesper Dangaard Brouer > MSc.CS, Principal Kernel Engineer at Red Hat > LinkedIn: http://www.linkedin.com/in/brouer >