lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
From: Paul Coward via lttng-dev <lttng-dev@lists.lttng.org>
To: "'Jonathan Rajotte-Julien'"
	<jonathan.rajotte-julien@efficios.com>, <public@triplanets.com>
Cc: <lttng-dev@lists.lttng.org>
Subject: Re: [lttng-dev] Syntax error running lttng
Date: Wed, 2 Jun 2021 15:40:04 +1000	[thread overview]
Message-ID: <011201d75771$bd096730$371c3590$@triplanets.com> (raw)
In-Reply-To: <20210601185615.GA388028@joraj-alpa>

Hi,

Thank you for the response.

I have it installed on a small ARM computer that does not feature many
tools, specifically file & which are missing.

I don't have any shell aliases and the output of find is:
    ~ # find / -name "lttng" 2>/dev/null
    /mnt/sd1/modulesLTTNG/lttng
    /mnt/sd1/modulesLTTNG/lttng/usr/local/bin/lttng
    /mnt/sd1/modulesLTTNG/lttng/usr/local/lib/lttng
    ~ #
Limiting it to finding files is only the one:
    ~ # find / -name "lttng" -type f 2>/dev/null
    /mnt/sd1/modulesLTTNG/lttng/usr/local/bin/lttng
    ~ #

head -n 10 /mnt/sd1/modulesLTTNG/lttng/usr/local/bin/lttng
    outputs binary, examining it on the build computer shows it is an ELF
executable built for ARM

I didn't set up the shell so that could be questionable, but I'm not sure
exactly how.

I couldn't find that error message in the lttng source but to me it looked a
little like errors I have seen from libXML (possibly reaching for straws).

The error message looks like it is trying to read some sort of configuration
file and failing.


This is a link to the config.log
https://drive.google.com/file/d/1_3QQEbfMcnS2_jX-MzJFO1JdGAArRRwW/view?usp=s
haring

I don't have the make output available at the moment but I can regenerate it
tomorrow if it will help.



-----Original Message-----
From: Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com> 
Sent: Wednesday, 2 June 2021 04:56
To: public@triplanets.com
Cc: lttng-dev@lists.lttng.org
Subject: Re: [lttng-dev] Syntax error running lttng

Hi,

On Tue, Jun 01, 2021 at 10:48:13AM +1000, Merlin via lttng-dev wrote:
> Hi,
> 
>  
> 
> I have compiled LTTNG for ARM but when I try to run the executable, I 
> get this error:

Do you have any of the logs for the lttng-tools project?

That would be `config.log` and the output from `make` and `make install`

> 
>  
> 
> lttng: line 1: syntax error: unexpected "("

Hmmm that does not look like an error from a elf executable.

Do you have any bash or shell alias for the lttng command?

Please provide the output of the following commands:
  $ file $(which lttng)
  $ head -n 10 $(which lttng)



> lttng-sessiond

If this happens also on the `lttng-sessiond` via command line but works
using a service, it would point to weird shell setup.
> 
>   all produce the same error.
> 
>  
> 
> There were no compiler errors.  I am at a loss to understand what it 
> is complaining about from the message.

Me too.

> 
>  
> 
> Modules seem to load fine.

Modules are loaded by the lttng-sessiond executable. Here only the CLI
executable seems to be having some problem.

--
Jonathan Rajotte-Julien
EfficiOS

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

  reply	other threads:[~2021-06-02 13:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-01  0:48 [lttng-dev] Syntax error running lttng Merlin via lttng-dev
2021-06-01 18:56 ` Jonathan Rajotte-Julien via lttng-dev
2021-06-02  5:40   ` Paul Coward via lttng-dev [this message]
2021-06-02 16:31 ` Jonathan Rajotte-Julien via lttng-dev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='011201d75771$bd096730$371c3590$@triplanets.com' \
    --to=lttng-dev@lists.lttng.org \
    --cc=jonathan.rajotte-julien@efficios.com \
    --cc=paul@triplanets.com \
    --cc=public@triplanets.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).