[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201024203040.4cjxnxrdy6qx557c@altlinux.org>
Date: Sat, 24 Oct 2020 23:30:40 +0300
From: Vitaly Chikunov <vt@...linux.org>
To: bpf@...r.kernel.org, Will Deacon <will@...nel.org>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>, netdev@...r.kernel.org,
Michael Ellerman <mpe@...erman.id.au>,
"Naveen N. Rao" <naveen.n.rao@...ux.ibm.com>,
Sandipan Das <sandipan@...ux.ibm.com>
Cc: "Dmitry V. Levin" <ldv@...linux.org>
Subject: Re: tools/bpf: Compilation issue on powerpc: unknown type name
'__vector128'
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@...erpc64le:~/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 <asm/types.h>,
> tools/include/uapi/linux/types.h doesn't, resulting to this
> compilation error.
This is too puzzling to fix portably.
Thanks,
>
>
> --
> ldv
Powered by blists - more mailing lists