Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1439530lqj; Tue, 4 Jun 2024 01:14:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUgJYhTYysygEx4zdgK5NoTbJBeTRshf7iw453BJ3QzTQBASQfoKtPnAQEBJm/DsB47G9XbPqdT2Qyep5cOwYfNja7dM5To8IC53F10Xw== X-Google-Smtp-Source: AGHT+IH3GZX9A4zYm2HophoRpxoHS4Laqo1AWL3TgeQDOHV1SP/7CjqufLT2IcqHZkqHL8yRNP17 X-Received: by 2002:a05:6870:968a:b0:250:702f:6460 with SMTP id 586e51a60fabf-2508bafac9amr10495932fac.35.1717488878414; Tue, 04 Jun 2024 01:14:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717488878; cv=pass; d=google.com; s=arc-20160816; b=SVzbQBRUAqFI1wFuAhLu+RdIEAwB8FVUSzu5pORTm26eDZ/fSX82qSObBwFQJjbZDN LNqr5A/qQ2Gc77jNvANDjpE1TjijyvTZeIc4bp2TGt8g88BRJUbm9kbEIQ0jDixrsH9t gMOrQcaYvgEPASAtVJIyaCBPsJO1Kr81Vv1otUeeoqUnkw0CM/ZxMNaJQa4AM0kWy/ZV vafyzqqBu7Fmef2+Y1ZQVQTw0dtxd95OZmTBZ+ipaIFx48TVr3a7LI346KmskT9fP4bQ a2NZ/Km7CX4OZjYRyTgQ5Jo0/1ExLDusNchnudbdXfrhYw92WZAemF1vjA6/2uQc/x4w 5oMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:cc:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=l6bYOepRfxvzfnoWdAPU7N8rRRRupEsWVBfB439inbA=; fh=GMAErl3zLjHD99BktHBs71SRwpYZgj/TV+cAVGVu8fY=; b=Pacq8+OQA/4n/ecmlNqAQ/+0k3jf9lVt1V0a+3JJXiLW50If5Qs5XHs3CwxpM1At9m dppRUho/73erOXqs2lMibaTVmPvg5DUtcPSI/iAPSNLBYvpg5B5M1GJxBsc/iDhLufWu L02sE65M7/vV6HutNtEenxt/QH/yFafX5iMEu3VEl5RodES1bqGp+nNnNEp2s6ftG0zD aRkipNsUJvIPpeK/1HWRMwyijsAQnnZHjKWCtcwenp7ZJcJ0HivJTywBkVhRBZyP8iDw jj3T1Szx2iPmm+983GhZzc/HVYFGUWUHpMencjhYodDR1KagIBGdjavD+hcQHuI09MQz qKYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="XM/Poj30"; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-200228-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200228-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-70276dec80esi2463219b3a.148.2024.06.04.01.14.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 01:14:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200228-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="XM/Poj30"; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-200228-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200228-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C6FB4284370 for ; Tue, 4 Jun 2024 08:14:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A0951422DA; Tue, 4 Jun 2024 08:14:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="XM/Poj30" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1083F1420C4; Tue, 4 Jun 2024 08:14:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717488868; cv=none; b=jp8AGm7V6g+Bzp5sRmx44DY0M4oY820LwvwAq3o4WbMRjT+AAWj0N3GwEy8snQVsBhrY1EoQyyfnOblU94fcUukyNEVc0C8KkecxbvAfQqSefOnwOGXD+pb3L1AGWR9hDQqA7RIQHuK4sFH3eNY2bnfekJw3N1O/Vxy/OHpRkM4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717488868; c=relaxed/simple; bh=joAVenAxN13C55NLARYN11/9fHBvAfySGAsGpcf3tEg=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=fM45GdAnNXPu4WpxDea5bBmYufhegpFdWZzWd8IVXLl55vSXteciYGF3YbniRB5d/k8h+Vwafw/czMKDVtfwMBz8wOmoIh7IVCQpC/3mPdiubjosNI24NtISNY3yLTLZZSZ+Yjrwh0SWvdQtIaNSRqVumPraxAgwr7VUjMwE9sA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=XM/Poj30; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1717488865; bh=joAVenAxN13C55NLARYN11/9fHBvAfySGAsGpcf3tEg=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=XM/Poj30EtOAaH9LN67fNc03QWKNL2hlYhAuC0ZeSna3A3o1uxS0UTVE9gSmxRL6Z Z8cNmDJns+Lra5ahgBah+sVJeY86eZVD0ZE1xaJkInfnrUOOT1f69AsJnNfjwT8DBI 021Hs8uL8Zz2gtkzBcnH81uC+wc7/3+2WY5+ihIzZoIH1JePtz2d81poTybiWNH7hs ZIE54RACaOIe7uQ5K5vL4n0lueRS3pd6/PqESyutGsX1/42kCo5SSLNrXcL56Sidr2 5rRz2LERta35aTZpqDNGvDI1NwbrYiOJQ7Z24bXJV6M7Ba44M4xxkRx7Opm8E2qcAc tTQvJaPlw7kBw== Received: from [100.113.15.66] (ec2-34-240-57-77.eu-west-1.compute.amazonaws.com [34.240.57.77]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 9ABFA37821A5; Tue, 4 Jun 2024 08:14:20 +0000 (UTC) Message-ID: <8e1e2f1d-a578-43c0-ad55-fb593967ac5e@collabora.com> Date: Tue, 4 Jun 2024 13:13:45 +0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: Muhammad Usama Anjum , Catalin Marinas , Will Deacon , Shuah Khan , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [Bug Report] selftests: arm64: build errors To: Mark Brown References: <5ec0f2f3-5259-41a9-a25d-5baf1680dd10@collabora.com> <7b7f4dd1-bc13-4827-84d6-20ebed7119b6@sirena.org.uk> Content-Language: en-US From: Muhammad Usama Anjum In-Reply-To: <7b7f4dd1-bc13-4827-84d6-20ebed7119b6@sirena.org.uk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 6/3/24 6:31 PM, Mark Brown wrote: > On Mon, Jun 03, 2024 at 06:28:16PM +0500, Muhammad Usama Anjum wrote: > >> gcc pac.c /pauth/pac_corruptor.o /pauth/helper.o -o /pauth/pac -Wall -O2 -g >> -I/linux_mainline/tools/testing/selftests/ -I/linux_mainline/tools/include >> -mbranch-protection=pac-ret -march=armv8.2-a >> In file included from pac.c:13: >> ../../kselftest_harness.h: In function ‘clone3_vfork’: >> ../../kselftest_harness.h:88:9: error: variable ‘args’ has initializer but >> incomplete type >> 88 | struct clone_args args = { > > This is in the generic code. > >> CC check_prctl >> check_prctl.c: In function ‘set_tagged_addr_ctrl’: >> check_prctl.c:19:14: error: ‘PR_SET_TAGGED_ADDR_CTRL’ undeclared (first use >> in this function) >> 19 | ret = prctl(PR_SET_TAGGED_ADDR_CTRL, val, 0, 0, 0); >> >> gcc -mbranch-protection=standard -DBTI=1 -ffreestanding -Wall -Wextra -Wall >> -O2 -g -I/linux_mainline/tools/testing/selftests/ >> -I/linux_mainline/tools/include -c -o /bti/test-bti.o test.c >> test.c: In function ‘handler’: >> test.c:85:50: error: ‘PSR_BTYPE_MASK’ undeclared (first use in this >> function); did you mean ‘PSR_MODE_MASK’? >> 85 | write(1, &"00011011"[((uc->uc_mcontext.pstate & PSR_BTYPE_MASK) > >> I've GCC 8 installed. I'm not expecting the errors because of a little >> older compiler. Any more ideas about the failures? > > You need to run headers_install IIRC. I'm running: make headers && make -C tools/testing/selftests I've tried gcc 12 as well. -- BR, Muhammad Usama Anjum