[lttng-dev] lttng-ust cross compile broken for demo-tracef

Jan Glauber jan.glauber at gmail.com
Mon Apr 7 07:43:21 EDT 2014


Hi list,

I get a compile error with current git head of lttng-ust if I cross-compile (bitbake):

| make[4]: Entering directory `/home/jang/temp/p4/JGlauber_hal_share/poky/build/tmp/work/armv7ahf-vfp-neon-elina-linux-gnueabi/lttng-ust-2.4-r0/git/doc/examples/demo-tracef'
| arm-linux-gnueabihf-gcc  -march=armv7-a     -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a15 --sysroot=/home/jang/temp/p4/JGlauber_hal_share/poky/build/tmp/sysroots/omap5 -L/home/jang/te
|               -o demo-tracef demo-tracef.o -ldl -llttng-ust
| demo-tracef.o: file not recognized: File format not recognized
| collect2: error: ld returned 1 exit status
| make[4]: *** [demo-tracef] Error 1

Looks like the demo-tracef Makefile sets CC hard to gcc. But if I fix this I get more
errors which I don't undertand. Am I the only one running into this?

thx, Jan
---
Harman Becker Automotive GmbH
System Profiling & Optimizing Team



More information about the lttng-dev mailing list