[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABWYdi0NhZULiGLUFoSXzk4Gv3FixKZd0fXmzF5Kz7iX4gbMkw@mail.gmail.com>
Date: Tue, 18 Dec 2018 16:04:31 -0800
From: Ivan Babrou <ivan@...udflare.com>
To: netdev@...r.kernel.org
Cc: jakub.kicinski@...ronome.com,
Ignat Korchagin <ignat@...udflare.com>
Subject: bpftool cross-compilation for arm64
Hey,
Is it possible to cross-compile bpftool for arm64? I'm trying to do
the same thing we do for perf, but bpftool Makefile doesn't seem to
support CROSS_COMPILE variable, so one needs to pass
CC=aarch64-linux-gnu-gcc as well. Problems do not end there as it
requires EXTRA_LDFLAGS="-lz" too. With that I'm getting a long sad
error about missing stuff from libbfd:
/lib/aarch64-linux-gnu/libbfd.a(elflink.o): In function
`elf_link_add_object_symbols':
/build/binutils-YyZpUv/binutils-2.28/builddir-single/bfd/../../bfd/elflink.c:4938:
undefined reference to `objalloc_free_block'
/build/binutils-YyZpUv/binutils-2.28/builddir-single/bfd/../../bfd/elflink.c:5185:
undefined reference to `_sch_istable'
/build/binutils-YyZpUv/binutils-2.28/builddir-single/bfd/../../bfd/elflink.c:5185:
undefined reference to `_sch_istable'
/lib/aarch64-linux-gnu/libbfd.a(elflink.o): In function
`bfd_elf_size_dynamic_sections':
/build/binutils-YyZpUv/binutils-2.28/builddir-single/bfd/../../bfd/elflink.c:6373:
undefined reference to `lbasename'
/build/binutils-YyZpUv/binutils-2.28/builddir-single/bfd/../../bfd/elflink.c:6604:
undefined reference to `lbasename'
/lib/aarch64-linux-gnu/libbfd.a(elflink.o): In function `elf_output_implib':
/build/binutils-YyZpUv/binutils-2.28/builddir-single/bfd/../../bfd/elflink.c:11172:
undefined reference to `xmalloc'
/lib/aarch64-linux-gnu/libbfd.a(archures.o): In function `bfd_default_scan':
/build/binutils-YyZpUv/binutils-2.28/builddir-single/bfd/../../bfd/archures.c:1171:
undefined reference to `_sch_istable'
/build/binutils-YyZpUv/binutils-2.28/builddir-single/bfd/../../bfd/archures.c:1171:
undefined reference to `_sch_istable'
Binutils for arm64 are installed:
$ dpkg -l | fgrep binutils
ii binutils 2.28-5
amd64 GNU assembler, linker and binary utilities
ii binutils-aarch64-linux-gnu 2.28-5
amd64 GNU binary utilities, for aarch64-linux-gnu target
ii binutils-dev 2.28-5
amd64 GNU binary utilities (BFD development files)
I'd love for it to work out of the box just like perf.
Powered by blists - more mailing lists