Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4331809pxu; Wed, 9 Dec 2020 14:26:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJznXgx5Llh/fpxEbDdLacSr1ji7VCbKJ+rwteZEFd334vR0hz8sGR0TdPP/sj72WdXSaz+F X-Received: by 2002:a05:6402:20a:: with SMTP id t10mr3929228edv.119.1607552777330; Wed, 09 Dec 2020 14:26:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607552777; cv=none; d=google.com; s=arc-20160816; b=1ANZ4lato1NxeIDT7+L9bQKk5oyK1TdlDrYAZM528Q2as/uZKszNNjJbnA9cky0sQU VNag1XLdlNImjnpKUqx2XUDHwmynnIeN97lYWFBEMNe/SHK1GBDIGMJ9ZW7WIGxpo/Ft QDKnYPpNK8kCE+DLEK4/rtYsYmx8oBCv4EId8Ywz5hE+FwHqN0d+g+kYI8KQF6/3uF9L mdlIZIv328pcTDJz/e53v8gcd4nWAj4J/P5qIo+/PTG0hooDJmxtQ5OUbAm+bJd8IPcU FYTHLxhw2qP8AMCzarquHziepIFlRfP3UAA/NkomSB/YijIXxxoCKKLxqVowH3LhdLvS Iidg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=nCPT21aBYHK+VmSNH6RsExkU8pXC3B3JSnVf9A2XUAw=; b=s0Qya92a2sMvx/QnyONWLiPtr9+rjaZHH7FHRAR0IUikT92jtGUBzN8bfCxgPh9nIx 2NQb8sDwrY3OBbHxqM3C+zAHtvABrO2tEN6P9rSfGSSVEn2ve6myHIfNzyiXbUuPomCm 041ki4RC0RjS6BC3T2mEDl1Q22l1RvDSRIzrMwin6vm4VPFA6zJ9UzhEiK+OlbzVFRtu I2u1/1pchw+zqXwjK8f3Nd5QAN9DL/boNxr2ucciFD8vk9JwafZMdVnkkXm3udWvB3oo NHwnF3sDv3fOIOMLVKqccpLDHNkMfdl2HskWr+85UCcktsFoiRdA9LqN9Gri5uIyJdpp Qm5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x14si1667487edq.88.2020.12.09.14.25.48; Wed, 09 Dec 2020 14:26:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388616AbgLIWYD (ORCPT + 99 others); Wed, 9 Dec 2020 17:24:03 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:40916 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388604AbgLIWXv (ORCPT ); Wed, 9 Dec 2020 17:23:51 -0500 Received: from mail-io1-f72.google.com ([209.85.166.72]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kn7rW-0008DE-P6 for linux-kernel@vger.kernel.org; Wed, 09 Dec 2020 22:23:06 +0000 Received: by mail-io1-f72.google.com with SMTP id t23so2495266ioh.0 for ; Wed, 09 Dec 2020 14:23:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=nCPT21aBYHK+VmSNH6RsExkU8pXC3B3JSnVf9A2XUAw=; b=VlCchNEpxb0RiLFZymnTstdml18zKCl9c26T53Z0qzsBYLB4DjE+ls5mwlv+iwYAZ0 QC8S1fuVknyB1kK8rkjvZXkFH6QLtQW049Ep0YkPgbbF7h/CFb+BoUS0ZUSzsCiUB2fO renvyjq47oSQWGUDYduu4Cqt2O7fEFaz8rw41D6asZ/adoBlo3jceF0IOPRtw+iDITPD LDfbnKL5asvUsFvIrjElAbbm3RzzZ5YM051fidTplIvS7SFn5/V89Ns5pkB8I2lO7YrA m+hlNdNxL662eHcxxK+M6BYKCCM2aMHTkx9/WMEizkTwbDPASXOKVAiUOUBVNTy6ceq7 S15A== X-Gm-Message-State: AOAM530ep3Ip5R1YsUg2GHftE5GKupDhiIASdvUMdpGUEjXXcbw8RQC1 pigHLE0j8tT4dWcoPq4Jwoh0En2c4fUTB4IpECY9jBrK+VYmo+sDUnWs4kWvp2jhBfLe2/hjHBX vuB42vEXJWYwjLpE8Cqcq+A6QysYY0xuagbFdfFLbWg== X-Received: by 2002:a5d:9507:: with SMTP id d7mr5636562iom.32.1607552585835; Wed, 09 Dec 2020 14:23:05 -0800 (PST) X-Received: by 2002:a5d:9507:: with SMTP id d7mr5636527iom.32.1607552585581; Wed, 09 Dec 2020 14:23:05 -0800 (PST) Received: from localhost ([2605:a601:ac0f:820:f6e7:e083:7e01:5905]) by smtp.gmail.com with ESMTPSA id e1sm1528753iod.17.2020.12.09.14.23.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Dec 2020 14:23:05 -0800 (PST) Date: Wed, 9 Dec 2020 16:23:04 -0600 From: Seth Forshee To: Alexei Starovoitov Cc: Daniel Borkmann , Andrii Nakryiko , linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: BPF selftests build failure in 5.10-rc Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Building the BPF selftests with clang 11, I'm getting the following error: CLNG-LLC [test_maps] profiler1.o In file included from progs/profiler1.c:6: progs/profiler.inc.h:260:17: error: use of unknown builtin '__builtin_preserve_enum_value' [-Wimplicit-function-declaration] int cgrp_id = bpf_core_enum_value(enum cgroup_subsys_id___local, ^ /home/ubuntu/unstable/tools/testing/selftests/bpf/tools/include/bpf/bpf_core_read.h:179:2: note: expanded from macro 'bpf_core_enum_value' __builtin_preserve_enum_value(*(typeof(enum_type) *)enum_value, BPF_ENUMVAL_VALUE) ^ 1 error generated. llc: error: llc: :1:1: error: expected top-level entity BPF obj compilation failed I see that test_core_reloc_enumval.c takes precautions around the use of __builtin_preserve_enum_value as it is currently only available in clang 12 nightlies. Is it possible to do something similar here? Though I see that the use of the builtin is not nearly so neatly localized as it is in test_core_reloc_enumval.c. Thanks, Seth