From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4ADF2C2D0A3 for ; Sat, 24 Oct 2020 20:30:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 04A6D22276 for ; Sat, 24 Oct 2020 20:30:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764431AbgJXUan (ORCPT ); Sat, 24 Oct 2020 16:30:43 -0400 Received: from vmicros1.altlinux.org ([194.107.17.57]:39568 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764428AbgJXUan (ORCPT ); Sat, 24 Oct 2020 16:30:43 -0400 Received: from imap.altlinux.org (imap.altlinux.org [194.107.17.38]) by vmicros1.altlinux.org (Postfix) with ESMTP id 2B2AC72CCE7; Sat, 24 Oct 2020 23:30:41 +0300 (MSK) Received: from altlinux.org (sole.flsd.net [185.75.180.6]) by imap.altlinux.org (Postfix) with ESMTPSA id 10D974A4A16; Sat, 24 Oct 2020 23:30:41 +0300 (MSK) Date: Sat, 24 Oct 2020 23:30:40 +0300 From: Vitaly Chikunov To: bpf@vger.kernel.org, Will Deacon , Alexei Starovoitov , Daniel Borkmann , netdev@vger.kernel.org, Michael Ellerman , "Naveen N. Rao" , Sandipan Das Cc: "Dmitry V. Levin" Subject: Re: tools/bpf: Compilation issue on powerpc: unknown type name '__vector128' Message-ID: <20201024203040.4cjxnxrdy6qx557c@altlinux.org> References: <20201023230641.xomukhg3zrhtuxez@altlinux.org> <20201024082319.GA24131@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20201024082319.GA24131@altlinux.org> Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org Adding netdev and PowerPC maintainers JFYI. On Sat, Oct 24, 2020 at 11:23:19AM +0300, Dmitry V. Levin wrote: > Hi, > > On Sat, Oct 24, 2020 at 02:06:41AM +0300, Vitaly Chikunov wrote: > > Hi, > > > > Commit f143c11bb7b9 ("tools: bpf: Use local copy of headers including > > uapi/linux/filter.h") introduces compilation issue on powerpc: > > > > builder@powerpc64le:~/linux$ make -C tools/bpf V=1 > > make: Entering directory '/usr/src/linux/tools/bpf' > > gcc -Wall -O2 -D__EXPORTED_HEADERS__ -I/usr/src/linux/tools/include/uapi -I/usr/src/linux/tools/include -DDISASM_FOUR_ARGS_SIGNATURE -c -o bpf_dbg.o /usr/src/linux/tools/bpf/bpf_dbg.c > > In file included from /usr/include/asm/sigcontext.h:14, > > from /usr/include/bits/sigcontext.h:30, > > from /usr/include/signal.h:291, > > from /usr/src/linux/tools/bpf/bpf_dbg.c:51: > > /usr/include/asm/elf.h:160:9: error: unknown type name '__vector128' > > 160 | typedef __vector128 elf_vrreg_t; > > | ^~~~~~~~~~~ > > make: *** [Makefile:67: bpf_dbg.o] Error 1 > > make: Leaving directory '/usr/src/linux/tools/bpf' > > __vector128 is defined in arch/powerpc/include/uapi/asm/types.h; > while include/uapi/linux/types.h does #include , > tools/include/uapi/linux/types.h doesn't, resulting to this > compilation error. This is too puzzling to fix portably. Thanks, > > > -- > ldv