Skip to content

ARM32 and PPC64le: error: 'gnu/stubs-soft.h'/'gnu/stubs-32.h' file not found

  1. 32-bit ARM:
[00:00:29] clang -g -O2 -target bpf -D__TARGET_ARCH_   -c bpf/stalld.bpf.c -o bpf/stalld.bpf.o
[00:00:29] In file included from bpf/stalld.bpf.c:8:
[00:00:29] In file included from /usr/include/string.h:26:
[00:00:29] In file included from /usr/include/bits/libc-header-start.h:33:
[00:00:29] In file included from /usr/include/features.h:514:
[00:00:29] /usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-soft.h' file not found
[00:00:29] # include <gnu/stubs-soft.h>
[00:00:29]           ^~~~~~~~~~~~~~~~~~
[00:00:29] 1 error generated.

I cannot find stubs-soft.h on any our architectures include files.

  1. ppc64le:
[00:00:22] clang -g -O2 -target bpf -D__TARGET_ARCH_   -c bpf/stalld.bpf.c -o bpf/stalld.bpf.o
[00:00:22] In file included from bpf/stalld.bpf.c:8:
[00:00:22] In file included from /usr/include/string.h:26:
[00:00:22] In file included from /usr/include/bits/libc-header-start.h:33:
[00:00:22] In file included from /usr/include/features.h:514:
[00:00:22] /usr/include/gnu/stubs.h:8:11: fatal error: 'gnu/stubs-32.h' file not found
[00:00:22] # include <gnu/stubs-32.h>
[00:00:22]           ^~~~~~~~~~~~~~~~
[00:00:22] 1 error generated.

AFAIK, gnu/stubs-32.h exists on 32-bit architectures (arm32 and x86) and on x86-64 but not on ppc64le.