<div dir="ltr"><div><div><div>Hi Daniel,<br><br></div>you're right, the demo-tracef has in the Makefile:<br>CC = gcc<br></div>which should be fixed like Jérémie said. With that change demo-tracef compiles but I run into the python error.<br>
<br></div>--Jan<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-07 16:15 GMT+02:00 Thibault, Daniel <span dir="ltr"><<a href="mailto:Daniel.Thibault@drdc-rddc.gc.ca" target="_blank">Daniel.Thibault@drdc-rddc.gc.ca</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">----------------------------------------------------------------------<br>
> Date: Mon, 7 Apr 2014 13:43:21 +0200<br>
> From: Jan Glauber <<a href="mailto:jan.glauber@gmail.com">jan.glauber@gmail.com</a>><br>
<div class="">><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 \<br>
> |                --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>
</div><div class="">> Harman Becker Automotive GmbH<br>
> System Profiling & Optimizing Team<br>
<br>
</div>   The " demo-tracef.o: file not recognized: File format not recognized" is a dead giveaway that you are in a mixed-bitness context.  The linker is in 64-bit mode while demo-tracef.o was compiled in 32-bit mode, or vice-versa.  Or it could be byte sex.  Clearly, the linker call is not using the same config that was used to create demo-tracef.o.  (My apologies if this seems obvious to you; I'm not familiar with bitbake)<br>

<br>
Daniel U. Thibault<br>
Protection des systèmes et contremesures (PSC) | Systems Protection & Countermeasures (SPC)<br>
Cyber sécurité pour les missions essentielles (CME) | Mission Critical Cyber Security (MCCS)<br>
R & D pour la défense Canada - Valcartier (RDDC Valcartier) | Defence R&D Canada - Valcartier (DRDC Valcartier)<br>
2459 route de la Bravoure<br>
Québec QC  G3J 1X5<br>
CANADA<br>
Vox : <a href="tel:%28418%29%20844-4000%20x4245" value="+14188444000">(418) 844-4000 x4245</a><br>
Fax : <a href="tel:%28418%29%20844-4538" value="+14188444538">(418) 844-4538</a><br>
NAC : 918V QSDJ <<a href="http://www.travelgis.com/map.asp?addr=918V%20QSDJ" target="_blank">http://www.travelgis.com/map.asp?addr=918V%20QSDJ</a>><br>
Gouvernement du Canada | Government of Canada<br>
<<a href="http://www.valcartier.drdc-rddc.gc.ca/" target="_blank">http://www.valcartier.drdc-rddc.gc.ca/</a>><br>
</blockquote></div><br></div>