All of lore.kernel.org
 help / color / mirror / Atom feed
* tools/testing/selftests/bpf/Makefile
@ 2017-04-22 19:45 David Miller
  2017-04-23 16:13 ` tools/testing/selftests/bpf/Makefile Alexei Starovoitov
  0 siblings, 1 reply; 2+ messages in thread
From: David Miller @ 2017-04-22 19:45 UTC (permalink / raw)
  To: alexei.starovoitov; +Cc: daniel, netdev


Alexei, that unconditional -D__x86_64__ isn't going to work.  It in
fact makes the build break on sparc because the types.h asm headers
explicitly check for things like __sparc__ && __arch64__ etc.

There are other places that want stuff like this, so let's do it
right.

In every

	arch/${ARCH}/Makefile

extract out the "-DXXX" stuff from CHECKFLAGS into a new Makefile
variable, expand that into CHECKFLAGS and use the new variable in
places like

	tools/testing/selftests/bpf/Makefile

and

	tools/testing/selftests/ipc/Makefile

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: tools/testing/selftests/bpf/Makefile
  2017-04-22 19:45 tools/testing/selftests/bpf/Makefile David Miller
@ 2017-04-23 16:13 ` Alexei Starovoitov
  0 siblings, 0 replies; 2+ messages in thread
From: Alexei Starovoitov @ 2017-04-23 16:13 UTC (permalink / raw)
  To: David Miller; +Cc: daniel, netdev

On Sat, Apr 22, 2017 at 03:45:01PM -0400, David Miller wrote:
> 
> Alexei, that unconditional -D__x86_64__ isn't going to work.  It in
> fact makes the build break on sparc because the types.h asm headers
> explicitly check for things like __sparc__ && __arch64__ etc.

yeah. it was a quick workaround for the following error:
In file included from net-next/tools/testing/selftests/bpf/test_xdp.c:8:
In file included from /usr/include/string.h:25:
In file included from /usr/include/features.h:399:
/usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found

the bpf progs don't do any x86 specific things.

> In every
> 	arch/${ARCH}/Makefile
> extract out the "-DXXX" stuff from CHECKFLAGS into a new Makefile

that should work. Probably there is even simpler way.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-23 16:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-22 19:45 tools/testing/selftests/bpf/Makefile David Miller
2017-04-23 16:13 ` tools/testing/selftests/bpf/Makefile Alexei Starovoitov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.