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

Jan Glauber jan.glauber at gmail.com
Mon Apr 7 10:33:32 EDT 2014


Hi Daniel,

you're right, the demo-tracef has in the Makefile:
CC = gcc
which should be fixed like Jérémie said. With that change demo-tracef
compiles but I run into the python error.

--Jan


2014-04-07 16:15 GMT+02:00 Thibault, Daniel <Daniel.Thibault at drdc-rddc.gc.ca
>:

> ----------------------------------------------------------------------
> > Date: Mon, 7 Apr 2014 13:43:21 +0200
> > From: Jan Glauber <jan.glauber at gmail.com>
> >
> > 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?
> >
> > Harman Becker Automotive GmbH
> > System Profiling & Optimizing Team
>
>    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)
>
> Daniel U. Thibault
> Protection des systèmes et contremesures (PSC) | Systems Protection &
> Countermeasures (SPC)
> Cyber sécurité pour les missions essentielles (CME) | Mission Critical
> Cyber Security (MCCS)
> R & D pour la défense Canada - Valcartier (RDDC Valcartier) | Defence R&D
> Canada - Valcartier (DRDC Valcartier)
> 2459 route de la Bravoure
> Québec QC  G3J 1X5
> CANADA
> Vox : (418) 844-4000 x4245
> Fax : (418) 844-4538
> NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
> Gouvernement du Canada | Government of Canada
> <http://www.valcartier.drdc-rddc.gc.ca/>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140407/410a133f/attachment.html>


More information about the lttng-dev mailing list