Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp927104ybv; Wed, 19 Feb 2020 12:06:54 -0800 (PST) X-Google-Smtp-Source: APXvYqzF6RnztDnrKYsO/6r2VQgf7/8YVAG9qyDdH0chDZt7EiELRw7rjkYNeLuiQq7zjhON3BC7 X-Received: by 2002:a05:6830:18ce:: with SMTP id v14mr20274889ote.36.1582142814161; Wed, 19 Feb 2020 12:06:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582142814; cv=none; d=google.com; s=arc-20160816; b=WlKQSou1upy7rxSVPnDPbwKoWslo72+oey/Vv65fCpMVuJIzQW3g3uTkDCC7PCyKMf 7iy6v9jXflFTnfpUjCkH4zdgPGNoCK78D/Nc9w4PuhPWLGJazQ4b6DM+mHRNOOACDIaI PSBqO7oOxX4PipX5qjJy2BU8eJNGGC02M4Gk7p80GV4/kNc5LR5B6oiF7pBOuaeBgXjr /T7vtQWF8biBeFGevm1sal+RivJmXVyx/6EGAjgL7j9MQhS38KxmrGvfBuDxTt9P5WlM nv4aZ8TPDMFh6ipjDudW50181Zl27hS1TlFdVTBEL7yYYgUzAEYgpK21NPHxdQmcPuS0 c45Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=rSgZmzP4k8CmOEp7jZmOsNnNYRQvUnS1sXvQgXw+mZI=; b=cQ/GtqLUfShHDadyI3cJZYRJZYjg6m5pvY8jNSwjwFIkPACS9HE7rgspPyQDKkRyoY pCduir38tiuRiysPS2WG3jzw+Fya21qEVYhKNI2fJ6y8mHcnbj4SffW26J5UOC87mtRZ W+5btXiDdxPAA1gvt28pAqJcDK2eublFWp2jHkWq26HXNylyBHoElZp/UpNkBm+OUvZo c8BfMCrFbAJ+g51eqkFj3VB3YNN2tSSQdfjAHh1b/q4eXFGjPwJPmWbSCeqIvem+gMFA IpusVBWGwkvH/h9vmmqjNpA2l35DOrVwvfjTPiojzJMS/86MDVxfx1y05h4g+e82H8B/ 5oMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MnocYY4u; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t127si10442323oih.45.2020.02.19.12.06.41; Wed, 19 Feb 2020 12:06:54 -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=@redhat.com header.s=mimecast20190719 header.b=MnocYY4u; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726634AbgBSUGc (ORCPT + 99 others); Wed, 19 Feb 2020 15:06:32 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:37041 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726651AbgBSUGb (ORCPT ); Wed, 19 Feb 2020 15:06:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582142790; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rSgZmzP4k8CmOEp7jZmOsNnNYRQvUnS1sXvQgXw+mZI=; b=MnocYY4uPVq3trk3OSaRbDPiexbfFYBwKcj6D+oy3hf0M0XQwJY/CR9zmJwoJ9T0foXHDP N4jkEoL8Ll6GXHScCF4a2s4I6ghEzerP7CMGxZZYNtQswCqqu0hQIAwQGT1Gz7acBbjcIR m3RzUd/ogJuxoh44SQ6Fu3skUyaMJy0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-304-7KKjfjZ3OPKe4pAB1JMKZg-1; Wed, 19 Feb 2020 15:06:24 -0500 X-MC-Unique: 7KKjfjZ3OPKe4pAB1JMKZg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8411E800D4E; Wed, 19 Feb 2020 20:06:22 +0000 (UTC) Received: from carbon (ovpn-200-26.brq.redhat.com [10.40.200.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4F22638D; Wed, 19 Feb 2020 20:06:10 +0000 (UTC) Date: Wed, 19 Feb 2020 21:06:09 +0100 From: Jesper Dangaard Brouer To: Andrii Nakryiko Cc: Alexei Starovoitov , Andrii Nakryiko , "netdev@vger.kernel.org" , BPF-dev-list , Daniel Borkmann , David Miller , LKML , Greg Kroah-Hartman , Anders Roxell , Toke =?UTF-8?B?SMO4aWxhbmQtSsO4cmdlbnNlbg==?= , brouer@redhat.com Subject: Re: Kernel 5.5.4 build fail for BPF-selftests with latest LLVM Message-ID: <20200219210609.20a097fb@carbon> In-Reply-To: References: <20200219133012.7cb6ac9e@carbon> <20200219180348.40393e28@carbon> <20200219192854.6b05b807@carbon> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 19 Feb 2020 10:38:45 -0800 Andrii Nakryiko wrote: > 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". When I download a specific kernel release, how can I know what LLVM git-hash or version I need (to use BPF-selftests)? Do you think it is reasonable to require end-users to compile their own bleeding edge version of LLVM, to use BPF-selftests? I do hope that some end-users of BPF-selftests will be CI-systems. That also implies that CI-system maintainers need to constantly do "latest built from sources" of LLVM git-tree to keep up. Is that a reasonable requirement when buying a CI-system in the cloud? -- Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer