This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
elfutils/libdw ARM compilation (native and cross compile)
- From: Jean Pihet <jean dot pihet at linaro dot org>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Tue, 25 Feb 2014 18:17:24 +0100
- Subject: 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
x86_64.
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 `libebl_i386.so'. Stop.
...
make[2]: Leaving directory `/home/def/work/linaro/elfutils/backends'
make[1]: *** [all-recursive] Error 1
"
Regards,
Jean