<div dir="ltr"><div>Sure, it looks like there is a problem with python in lttng-get-tp:<br><br>| 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/gen-tp'<br>
| ../../../tools/lttng-gen-tp -o sample_tracepoint.c <a href="http://sample_tracepoint.tp">sample_tracepoint.tp</a><br>| CPPFLAGS="-isystem/home/jang/temp/p4/JGlauber_hal_share/poky/../toolchain//arm-linux-gnueabihf/include -isystem/home/jang/temp/p4/JGlauber_hal_share/poky/../toolchain//arm-linux-gnueabihf/include -I../../../include/ -I../../../include/" \<br>
|       CFLAGS="-Wall -isystem/home/jang/temp/p4/JGlauber_hal_share/poky/../toolchain//arm-linux-gnueabihf/include  -O2 -pipe -g -feliminate-unused-debug-types -fno-omit-frame-pointer -Wall -isystem/home/jang/temp/p4/JGlauber_hal_share/poky/../toolchain//arm-linux-gnueabihf/include  -O2 -pipe -g -feliminate-unused-debug-types -fno-omit-frame-pointer" \<br>
|       LDFLAGS="-L/home/jang/temp/p4/JGlauber_hal_share/poky/../toolchain//arm-linux-gnueabihf/lib -Wl,-rpath-link,/home/jang/temp/p4/JGlauber_hal_share/poky/../toolchain//arm-linux-gnueabihf/lib -Wl,-O1 -Wl,--hash-style=gnu -L/home/jang/temp/p4/JGlauber_hal_share/poky/../toolchain//arm-linux-gnueabihf/lib -Wl,-rpath-link,/home/jang/temp/p4/JGlauber_hal_share/poky/../toolchain//arm-linux-gnueabihf/lib -Wl,-O1 -Wl,--hash-style=gnu -L../../../liblttng-ust/.libs/ -Wl,-rpath="/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/../../liblttng-ust/.libs/"" \<br>
|       CC="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" \<br>|       ../../../tools/lttng-gen-tp -o sample_tracepoint.o <a href="http://sample_tracepoint.tp">sample_tracepoint.tp</a><br>
| Invalid CC environment variable<br>| Traceback (most recent call last):<br>|   File "../../../tools/lttng-gen-tp", line 315, in <module><br>|     sys.exit(main())<br>|   File "../../../tools/lttng-gen-tp", line 309, in main<br>
|     dotobj.write()<br>|   File "../../../tools/lttng-gen-tp", line 132, in write<br>|     raise RuntimeError("No C Compiler detected")<br>| RuntimeError: No C Compiler detected<br>| make[4]: *** [sample_tracepoint.o] Error 1<br>
| rm sample_tracepoint.c<br>| make[4]: Leaving 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/gen-tp'<br>| make[3]: *** [all-local] Error 1<br>
<br></div>--Jan<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-07 15:57 GMT+02:00 Jérémie Galarneau <span dir="ltr"><<a href="mailto:jeremie.galarneau@efficios.com" target="_blank">jeremie.galarneau@efficios.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jan,<br>
<br>
Can you post the errors you get if you set the "CC=gcc" line in<br>
demo-tracef/Makefile by<br>
<br>
ifdef AM_CC<br>
    CC = $(AM_CC)<br>
endif<br>
<br>
Regards,<br>
Jérémie<br>
<div><div class="h5"><br>
On Mon, Apr 7, 2014 at 7:43 AM, Jan Glauber <<a href="mailto:jan.glauber@gmail.com">jan.glauber@gmail.com</a>> wrote:<br>
> Hi list,<br>
><br>
> I get a compile error with current git head of lttng-ust if I cross-compile (bitbake):<br>
><br>
> | 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'<br>
> | 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<br>
> |               -o demo-tracef demo-tracef.o -ldl -llttng-ust<br>
> | demo-tracef.o: file not recognized: File format not recognized<br>
> | collect2: error: ld returned 1 exit status<br>
> | make[4]: *** [demo-tracef] Error 1<br>
><br>
> Looks like the demo-tracef Makefile sets CC hard to gcc. But if I fix this I get more<br>
> errors which I don't undertand. Am I the only one running into this?<br>
><br>
> thx, Jan<br>
> ---<br>
> Harman Becker Automotive GmbH<br>
> System Profiling & Optimizing Team<br>
><br>
</div></div>> _______________________________________________<br>
> lttng-dev mailing list<br>
> <a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a><br>
> <a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Jérémie Galarneau<br>
EfficiOS Inc.<br>
<a href="http://www.efficios.com" target="_blank">http://www.efficios.com</a><br>
</font></span></blockquote></div><br></div>