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

Jérémie Galarneau jeremie.galarneau at efficios.com
Mon Apr 7 09:57:30 EDT 2014


Hi Jan,

Can you post the errors you get if you set the "CC=gcc" line in
demo-tracef/Makefile by

ifdef AM_CC
    CC = $(AM_CC)
endif

Regards,
Jérémie

On Mon, Apr 7, 2014 at 7:43 AM, Jan Glauber <jan.glauber at gmail.com> wrote:
> 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
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev



-- 
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list