<div dir="ltr"><div><div>Yes:<br>$ which arm-linux-gnueabihf-gcc<br>/usr/bin/arm-linux-gnueabihf-gcc<br><br></div>IIRC the examples have not been build by default in the past, right?<br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-04-07 16:20 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">
<div class="HOEnZb"><div class="h5">On Mon, Apr 7, 2014 at 10:10 AM, Jan Glauber <<a href="mailto:jan.glauber@gmail.com">jan.glauber@gmail.com</a>> wrote:<br>
> Sure, it looks like there is a problem with python in lttng-get-tp:<br>
><br>
> | make[4]: Entering directory<br>
> `/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" target="_blank">sample_tracepoint.tp</a><br>
> |<br>
> CPPFLAGS="-isystem/home/jang/temp/p4/JGlauber_hal_share/poky/../toolchain//arm-linux-gnueabihf/include<br>
> -isystem/home/jang/temp/p4/JGlauber_hal_share/poky/../toolchain//arm-linux-gnueabihf/include<br>
> -I../../../include/ -I../../../include/" \<br>
> |       CFLAGS="-Wall<br>
> -isystem/home/jang/temp/p4/JGlauber_hal_share/poky/../toolchain//arm-linux-gnueabihf/include<br>
> -O2 -pipe -g -feliminate-unused-debug-types -fno-omit-frame-pointer -Wall<br>
> -isystem/home/jang/temp/p4/JGlauber_hal_share/poky/../toolchain//arm-linux-gnueabihf/include<br>
> -O2 -pipe -g -feliminate-unused-debug-types -fno-omit-frame-pointer" \<br>
> |<br>
> LDFLAGS="-L/home/jang/temp/p4/JGlauber_hal_share/poky/../toolchain//arm-linux-gnueabihf/lib<br>
> -Wl,-rpath-link,/home/jang/temp/p4/JGlauber_hal_share/poky/../toolchain//arm-linux-gnueabihf/lib<br>
> -Wl,-O1 -Wl,--hash-style=gnu<br>
> -L/home/jang/temp/p4/JGlauber_hal_share/poky/../toolchain//arm-linux-gnueabihf/lib<br>
> -Wl,-rpath-link,/home/jang/temp/p4/JGlauber_hal_share/poky/../toolchain//arm-linux-gnueabihf/lib<br>
> -Wl,-O1 -Wl,--hash-style=gnu -L../../../liblttng-ust/.libs/<br>
> -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>
> \<br>
> |       CC="arm-linux-gnueabihf-gcc  -march=armv7-a     -mthumb-interwork<br>
> -mfloat-abi=hard -mfpu=neon -mtune=cortex-a15<br>
> --sysroot=/home/jang/temp/p4/JGlauber_hal_share/poky/build/tmp/sysroots/omap5"<br>
> \<br>
> |       ../../../tools/lttng-gen-tp -o sample_tracepoint.o<br>
> <a href="http://sample_tracepoint.tp" target="_blank">sample_tracepoint.tp</a><br>
> | Invalid CC environment variable<br>
<br>
</div></div>Okay, this means that subprocess.call(cc, ...) (lttng-gen-tp:108)<br>
fails while trying to run your CC variable. Is arm-linux-gnueabihf-gcc<br>
in your PATH?<br>
<span class="HOEnZb"><font color="#888888"><br>
Jérémie<br>
</font></span><div class="HOEnZb"><div class="h5"><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<br>
> `/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>
> --Jan<br>
><br>
><br>
> 2014-04-07 15:57 GMT+02:00 Jérémie Galarneau<br>
> <<a href="mailto:jeremie.galarneau@efficios.com">jeremie.galarneau@efficios.com</a>>:<br>
><br>
>> 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>
>><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<br>
>> > cross-compile (bitbake):<br>
>> ><br>
>> > | make[4]: Entering directory<br>
>> > `/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<br>
>> > -mfloat-abi=hard -mfpu=neon -mtune=cortex-a15<br>
>> > --sysroot=/home/jang/temp/p4/JGlauber_hal_share/poky/build/tmp/sysroots/omap5<br>
>> > -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<br>
>> > 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>
>> > _______________________________________________<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>
>><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>
><br>
><br>
<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>
</div></div></blockquote></div><br></div>