Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp723300lqb; Wed, 17 Apr 2024 08:59:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXiWGhJKGwzJ5nrrpDuYbY7Xpe9KNBv7hRMdOHCM3XFcmDh9kq04l9ayz7w9iWJBfIpkeXwjH89Fgn3jLjNDhbtkdZYsOIn1kqDlgAJOQ== X-Google-Smtp-Source: AGHT+IF8TNGl3d+AN6EBOJiMgyT/ZlHK1jJxNjwymWlKUqbq2TDsuv21BpHuaSHVYSjGRt65eHe1 X-Received: by 2002:a17:906:2f0b:b0:a55:31e6:dddc with SMTP id v11-20020a1709062f0b00b00a5531e6dddcmr5194896eji.23.1713369569867; Wed, 17 Apr 2024 08:59:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713369569; cv=pass; d=google.com; s=arc-20160816; b=lq6pb933RIDojHrj0Y4cVxFTwlNdQwSYXADtJ3In9g4O13688sQ4z5a4xepwmXQa3D QhFOQsEJ//1bglAJ+xlem64PxMS30jTRTAEwco13VomDLZCYtb6cIPjFWftMEqS8ImAO EfnlvCoeikayvdrwGo4qakTA0hyqJKWzTTfZUAjHmKkhDQ1m17mBXrywDX0NJjIF396k PIoNabdd3dlAi0o07tUALliJ87+i1SLLUFJEUiN6PWYKEsH563lv60PNL4Y/mLBBuMwB xuF4j9+xU+163QyC+QYLR0hhySfZDpomQX3J+97I4CE5XjC9PnnpT3pwaCx4JYEEYNhL e/Lg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Ts7VeV89gXm51SveYC/5gHKvmeCrItzeRWtkaxGKiR4=; fh=GZ69n+4rDlvkAXUIx3wyYRRCphZghjheaqNmuN2d0q0=; b=1Iam+r2jVvl/ltI+PdHPpOyjdc2pe3VlndaWWGuTTjA3MuUydvGDyycjdhUmaL6gAj JY3mZZzbXDXWB7JVIOsCXn7AGXysFzQuPVgkTOYlUXqav+U5mTRBH3MGoNWthL7v8PJF x1VD/gkQoYnOLGPro1bPyBMEChYgGJ8MS+EWlUyxkK40uQI7Gx/IVdEZYpRxexKEpmO7 sU0FiuExArkbZkfayrqY8xFna5XEP33jNmcV3HlaqsxZOxo4avSDRw27e+ONWJETnYzi E/nGfn+ZvYp2BLBSTxU14bXBGmX+557HM+1hqjGxRzlHIOGJZ4RnH0zDTZT67iXeqPiG PGAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rL+H5lBs; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148867-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148867-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id fi2-20020a170906da0200b00a518bfad906si6854815ejb.874.2024.04.17.08.59.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 08:59:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148867-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rL+H5lBs; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148867-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148867-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 850E21F21D6B for ; Wed, 17 Apr 2024 15:59:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15A121487E3; Wed, 17 Apr 2024 15:59:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rL+H5lBs" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3A9261487C6; Wed, 17 Apr 2024 15:59:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713369559; cv=none; b=ch5DLE2d4LYU8Uo2O4ofBIMxX8JqAQfhqMMd/TUzEFs/348JHRMNsLkEd4K1x2BrLdYItlu7R08ZSHxhRd4+y5nBIIrWrzOSev5teb6cVGk4vtdgZMw1zzW3X/ENXjFKmFcI1GGpVKIS2ZcYsMpjt/VBZgw7NrruqFN4WomUSvk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713369559; c=relaxed/simple; bh=UZiJOhiexQp0bZizQPTKAWHNiRbtg+8aXN8vVVHAyTk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=owUPk2HXdRKuJ3xBvJBb0QEnCRtStKJqK6u5lWju0MRQfi7OXiErPtGJtc8xkRll5xYQS9hTNLknwiMlrh9dzUz1oy0psZPiXFwZirQ2ZpThh42QqZ4HBliLiKwCeSgdptcQPopJhh26N+C0kwMc3hpJwKhJYVAk1Wb394S6MME= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rL+H5lBs; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65873C2BD11; Wed, 17 Apr 2024 15:59:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713369558; bh=UZiJOhiexQp0bZizQPTKAWHNiRbtg+8aXN8vVVHAyTk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rL+H5lBs4TZGMqDH1ZjnQFpDjbQUWqKY3vSv9FtLbLusG/j0bPhVUj750XeNpd4KC /xtzekKpiwXBiRb410H0JcwFWxS4AuzSgclt8RgBSk8N5lS1jJnFM95PjnSGygz7PG SYJdvG07hcqHo3aQj008Jv/klLYQauj19mV1sSEvvpjYL5bg8Z3x4Xw0mIYX4H6Z69 cfvEq184UwO48YATqgmpbx8xT5kyWqtPxtvCOayF0HfI3dNDMq/0hkx/tQvjg+/Lvq 9NAkKr++ZQ6cAUML0ZIe8Ofct1rBrWrHeBGGQ3CKDzPuc2TvgBz9BaUUe1YTPFFuqa 2iVpA7ckmrCdQ== Date: Wed, 17 Apr 2024 12:59:15 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: cp0613@linux.alibaba.com, palmer@dabbelt.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH] tools/perf: Fix compiling with libelf on rv32 Message-ID: References: <20240415095532.4930-1-cp0613@linux.alibaba.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Tue, Apr 16, 2024 at 08:04:55AM -0700, Ian Rogers wrote: > On Mon, Apr 15, 2024 at 2:57 AM wrote: > > > > From: Chen Pei > > > > When cross-compiling perf with libelf, the following error occurred: > > > > In file included from tests/genelf.c:14: > > tests/../util/genelf.h:50:2: error: #error "unsupported architecture" > > 50 | #error "unsupported architecture" > > | ^~~~~ > > tests/../util/genelf.h:59:5: warning: "GEN_ELF_CLASS" is not defined, evaluates to 0 [-Wundef] > > 59 | #if GEN_ELF_CLASS == ELFCLASS64 > > > > Fix this by adding GEN-ELF-ARCH and GEN-ELF-CLASS definitions for rv32. > > > > Signed-off-by: Chen Pei > > Reviewed-by: Ian Rogers Thanks, applied to perf-tools-next, - Arnaldo