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

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


Sure, it looks like there is a problem with python in lttng-get-tp:

| 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'
| ../../../tools/lttng-gen-tp -o sample_tracepoint.c sample_tracepoint.tp
|
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/" \
|       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" \
|
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/""
\
|       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"
\
|       ../../../tools/lttng-gen-tp -o sample_tracepoint.o
sample_tracepoint.tp
| Invalid CC environment variable
| Traceback (most recent call last):
|   File "../../../tools/lttng-gen-tp", line 315, in <module>
|     sys.exit(main())
|   File "../../../tools/lttng-gen-tp", line 309, in main
|     dotobj.write()
|   File "../../../tools/lttng-gen-tp", line 132, in write
|     raise RuntimeError("No C Compiler detected")
| RuntimeError: No C Compiler detected
| make[4]: *** [sample_tracepoint.o] Error 1
| rm sample_tracepoint.c
| 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'
| make[3]: *** [all-local] Error 1

--Jan


2014-04-07 15:57 GMT+02:00 Jérémie Galarneau <jeremie.galarneau at efficios.com
>:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140407/35fb8cc2/attachment.html>


More information about the lttng-dev mailing list