From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id X6vQEb2SZGAGDQAAWB0awg (envelope-from ) for ; Wed, 31 Mar 2021 11:18:21 -0400 Received: by simark.ca (Postfix, from userid 112) id 3A8651EE14; Wed, 31 Mar 2021 11:18:21 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.lttng.org (lists.lttng.org [167.114.26.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id F2D7C1E01F for ; Wed, 31 Mar 2021 11:18:19 -0400 (EDT) Received: from lists-lttng01.efficios.com (localhost [IPv6:::1]) by lists.lttng.org (Postfix) with ESMTP id 4F9VLz2ds9zRqc; Wed, 31 Mar 2021 11:18:19 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.lttng.org; s=default; t=1617203899; bh=yreGHg32RtLvLmrypGUuo/w9WWpZcnNTCPNJDjYObgM=; h=Date:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=eh2GXKVvk8hj+V32HMnNQCrxJbQpz4U3lfeUSsxGtq9ySrS2mjS/ZMGP/s20L8PmS MiCWqrirmZxyTv1PkYLjSC/RNRVzSu2kEvIoohSeosylGT6pylTa2Hvne5CE2irIxs OmHt5sTEJhTf5OiXDTMlq36kgbGefKD+Knk7EzcjvzUobaw5Rw965awbqsx6D+1kdG h+jdTDOCGP0xVu7A7KrWKyYpFO/7UsszkaxdhU84BAHBaoFdUc4hqFWvBnyu3vwcYP XA67xbYelc4fiFwvERSYDIHF3zMXIhKO8tKZq6rpDN9GJyRR6+Mg69yxo2jjlSGe6F F8zYTWD8lcnQQ== Received: from mail.efficios.com (mail.efficios.com [167.114.26.124]) by lists.lttng.org (Postfix) with ESMTPS id 4F9VLx61pJzS3k for ; Wed, 31 Mar 2021 11:18:17 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 5DF962F65BA for ; Wed, 31 Mar 2021 11:18:11 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id d6OIRyXVcz8H; Wed, 31 Mar 2021 11:18:08 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id D6D712F627D; Wed, 31 Mar 2021 11:18:08 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com D6D712F627D X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 7lwTORRqzzvk; Wed, 31 Mar 2021 11:18:08 -0400 (EDT) Received: from joraj-alpa (unknown [107.159.43.215]) by mail.efficios.com (Postfix) with ESMTPSA id B8B762F65B8; Wed, 31 Mar 2021 11:18:08 -0400 (EDT) Date: Wed, 31 Mar 2021 11:18:07 -0400 To: MONTET Julien Cc: "lttng-dev@lists.lttng.org" Message-ID: <20210331151807.GA28307@joraj-alpa> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [lttng-dev] Question/Issue compilation ARMv7 of LTTng X-BeenThere: lttng-dev@lists.lttng.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: LTTng development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jonathan Rajotte-Julien via lttng-dev Reply-To: Jonathan Rajotte-Julien Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: lttng-dev-bounces@lists.lttng.org Sender: "lttng-dev" Hi, On Tue, Mar 30, 2021 at 10:29:22PM +0000, MONTET Julien via lttng-dev wrote: > 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). Ok. > > 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 I would suggest that you have a look in the config.log file and share with us the complete file, as always use a paste service if possible. > > My question is the following : Can LTTng be used directly on arm ? It can absolutely be used on arm. For example see our portbuild testing matrix here: URCU: https://ci.lttng.org/job/liburcu_master_portbuild/ LTTng-tools: https://ci.lttng.org/job/lttng-tools_master_portbuild/ > 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. On 32bit only platform you are limited to 32bit tracing and all the limitation related to 32bit, if any is applicable to your use case. > > 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. Our project use standard autotools/make mechanism for cross compilation scenarios: https://www.gnu.org/software/automake/manual/html_node/Cross_002dCompilation.html I am not aware of any problem at this level but after looking around our CI I think we do not do a lot of cross compilation. Still I know that yocto and buildroot use cross-compilation for lttng and its dependencies without any major modification. Still, we will wait for the config.log file before putting this in the: not a lttng problem. Cheers -- Jonathan Rajotte-Julien EfficiOS _______________________________________________ lttng-dev mailing list lttng-dev@lists.lttng.org https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev