On 8/13/12 9:00 PM, Koteswararao Nelakurthi wrote:
I am trying to cross compile Perf source present in 2.6.35/tools/perf
directory for ARM.in ubuntu machine.(x86 is host machine).But i am
facing the following compilation error as compiler looks at host
specific header files instead of looking at header files present in
perf/ directory..Please provide Makefile changes required to compile
successfully perf for ARM.{{{

perf>make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-


Do you have a sysroot for the cross-compile environment? e.g., for WRL3 we use:

CROSS_COMPILE = i586-wrs-linux-gnu-
CROSS_SYSROOT = /path/to/cross-compile/sysroot

make CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH) CC="$(CROSS_COMPILE)gcc --sysroot=$(CROSS_SYSROOT)"

David

--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to