This is the mail archive of the mailing list for the elfutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

elfutils/libdw ARM compilation (native and cross compile)

Hi Jan, Mark,

I have a simple question which I cannot find the solution for.

The goal is to add the libdw support for perf on ARM (and later AARCH64).
I am trying to compile libdw for ARM, both natively and on x86_64. I
am getting build errors, it seems that the build is always targeted to

The question is: how to compile for non-x86, including the backends?

Build error:
make[2]: Leaving directory `/home/def/work/linaro/elfutils/libdw'
Making all in libcpu
make[2]: Entering directory `/home/def/work/linaro/elfutils/libcpu'
m4 -Di386 -DDISASSEMBLER defs/i386 > i386_defsT
m4 -Dx86_64 -DDISASSEMBLER defs/i386 > x86_64_defsT
*** missing i386_dis.h; configure with --enable-maintainer-mode
*** missing x86_64_dis.h; configure with --enable-maintainer-mode
make[2]: *** [i386_dis.h] Error 1

If I disable libcpu in Makefile I get an error in the backends dir:
make[2]: *** No rule to make target `../libcpu/libcpu_i386.a', needed
by `'.  Stop.
make[2]: Leaving directory `/home/def/work/linaro/elfutils/backends'
make[1]: *** [all-recursive] Error 1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]