[lttng-dev] Question/Issue compilation ARMv7 of LTTng

MONTET Julien julien.montet at reseau.eseo.fr
Tue Mar 30 18:29:22 EDT 2021


Hello the developpers !

On my side, userspace and kernel event are working for both x86_64 and 32bits on Ubuntu 20.04.
One of my main goals is to use LTTng on an armv7 target (Raspbian 32 bits).

I am using Docker to create the environment and to compile the image (Debian 9.3).
During the compilation of RCU, I get :
#10 5.868 checking whether the C compiler works... no
#10 5.982 configure: error: in `/tmp/tmp.T2I20x25bo/userspace-rcu-0.12.2':
#10 5.983 configure: error: C compiler cannot create executables

My question is the following : Can LTTng be used directly on arm ?
https://lttng.org/docs/v2.10/#doc-instrumenting-32-bit-app-on-64-bit-system
I read again the tutorial and it seems we always need a 64-bits platform.

Find below a part of my Dockerfile (that looks like the tuto):
# LTTng RCU - 32 bits
RUN bin/sh -c 'cd $(mktemp -d)' && \
    wget https://lttng.org/files/urcu/userspace-rcu-0.12.2.tar.bz2 && \
    tar -xvf userspace-rcu-0.12.2.tar.bz2 && \
    cd userspace-rcu-0.12.2 && \
    ./configure --libdir=/usr/local/lib32 CFLAGS=-m32 && \
    make && \
    make install && \
    ldconfig

I tried to run the installation on the docker file of gcc-multilib, build-essential, wget... but it doesn't work.

Cheers,


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20210330/fcf3b19e/attachment.htm>


More information about the lttng-dev mailing list