From: Emiliano Ingrassia <ingrassia@epigenesys.com>
To: "linux-perf-users@vger.kernel.org"
<linux-perf-users@vger.kernel.org>,
Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: lkml <linux-kernel@vger.kernel.org>,
Arnd Bergmann <arnd@arndb.de>, Jiri Olsa <jolsa@kernel.org>,
Namhyung Kim <namhyung@kernel.org>
Subject: perf tools build broken for RISCV 32 bit
Date: Thu, 14 Jan 2021 19:38:01 +0100 [thread overview]
Message-ID: <YACPie55ArIHu3mI@ingrassia.epigenesys.com> (raw)
Hi,
When building perf for RISCV 32 bit (v5.10.7) I got the following
| In file included from bench/futex-hash.c:29:
| bench/futex.h: In function ‘futex_wait’:
| bench/futex.h:37:10: error: ‘SYS_futex’ undeclared (first use in this function); did you mean ‘SYS_tee’?
This issue is similar to the one reported in https://lkml.org/lkml/2019/4/19/631
I found that patching tools/arch/riscv/include/uapi/asm/unistd.h as following:
#ifdef __LP64__
#define __ARCH_WANT_NEW_STAT
#define __ARCH_WANT_SET_GET_RLIMIT
+#else
+#define __ARCH_WANT_TIME32_SYSCALLS
#endif /* __LP64__ */
solved the problem.
I also found that a similar patch for arch/riscv/include/uapi/asm/unistd.h
was removed in commit d4c08b9776b3, so probably this is not the right way(?).
Thank you, best regards.
next reply other threads:[~2021-01-14 18:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-14 18:38 Emiliano Ingrassia [this message]
2021-01-14 19:16 ` Arnd Bergmann
2021-01-15 11:13 ` Emiliano Ingrassia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YACPie55ArIHu3mI@ingrassia.epigenesys.com \
--to=ingrassia@epigenesys.com \
--cc=acme@redhat.com \
--cc=arnd@arndb.de \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=namhyung@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®