linux-next: build failure after merge of the bpf-next tree
Subsystems (4)
Hi all,
After merging the bpf-next tree, today's linux-next build (arm multi_v7_defconfig) failed like this:
tmp/ccsqpVCY.s: Assembler messages:tmp/ccsqpVCY.s:78: Error: unrecognized symbol type "" tmp/ccsqpVCY.s:91: Error: unrecognized symbol type ""
I don't know what has caused this (I guess maybe the resolve_btfids branch).
I have used the bpf-next tree from next-20200713 for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 5 lines · Stephen Rothwell
Hi all,
After merging the bpf-next tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
Quoted 8 lines
tmp/ccsqpVCY.s: Assembler messages:tmp/ccsqpVCY.s:78: Error: unrecognized symbol type ""tmp/ccsqpVCY.s:91: Error: unrecognized symbol type ""I don't know what has caused this (I guess maybe the
resolve_btfidsbranch).I have used the bpf-next tree from next-20200713 for today.
ok, trying to reproduce
thanks,
jirka
Quoted 10 lines · Jiri Olsa
Quoted 9 lines · Stephen Rothwell
Hi all,
After merging the bpf-next tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
tmp/ccsqpVCY.s: Assembler messages:tmp/ccsqpVCY.s:78: Error: unrecognized symbol type ""tmp/ccsqpVCY.s:91: Error: unrecognized symbol type ""
Quoted 6 lines
Quoted 4 lines
I don't know what has caused this (I guess maybe the
resolve_btfidsbranch).I have used the bpf-next tree from next-20200713 for today.
ok, trying to reproduce
damn crossbuilds.. change below fixes it for me,
will do some more testing and post it today
jirka
---
include/linux/btf_ids.h +1 -1
@@ -21,7 +21,7 @@ asm( \ ".pushsection " BTF_IDS_SECTION ",\"a\"; \n" \ ".local " #symbol " ; \n" \ -".type " #symbol ", @object; \n" \ +".type " #symbol ", STT_OBJECT; \n" \ ".size " #symbol ", 4; \n" \ #symbol ": \n" \ ".zero 4 \n" \
tools/bpf/resolve_btfids/Makefile +14 -0
@@ -16,6 +16,20 @@ else MAKEFLAGS=--no-print-directory endif +# always use the host compiler +ifneq ($(LLVM),) +HOSTAR ?= llvm-ar +HOSTCC ?= clang +HOSTLD ?= ld.lld +else +HOSTAR ?= ar +HOSTCC ?= gcc +HOSTLD ?= ld +endif +AR = $(HOSTAR) +CC = $(HOSTCC) +LD = $(HOSTLD) + OUTPUT ?= $(srctree)/tools/bpf/resolve_btfids/ LIBBPF_SRC := $(srctree)/tools/lib/bpf/
Geert Uytterhoeven
Tested-byHi Jiri,
Quoted 5 lines · Jiri Olsa
Quoted 4 lines · Jiri Olsa
Quoted 3 lines · Stephen Rothwell
After merging the bpf-next tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
tmp/ccsqpVCY.s: Assembler messages:tmp/ccsqpVCY.s:78: Error: unrecognized symbol type ""tmp/ccsqpVCY.s:91: Error: unrecognized symbol type ""I don't know what has caused this (I guess maybe the
resolve_btfidsbranch).I have used the bpf-next tree from next-20200713 for today.
Bummer, didn't find this report before I had bisected this to c9a0f3b85e09dd16 ("bpf: Resolve BTF IDs in vmlinux image"), and investigated the root cause (@object) myself, as the failing file path (net/core/filter.o) was not mentioned...
Quoted 4 lines
Quoted 1 line
ok, trying to reproduce
damn crossbuilds.. change below fixes it for me,
will do some more testing and post it today
Thanks, this fixes my (cross)arm32 build, and the (cross)arm64 build keeps working, and everything boots, so
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds