From: Jonathan Rajotte-Julien via lttng-dev <lttng-dev@lists.lttng.org>
To: paul@triplanets.com
Cc: lttng-dev <lttng-dev@lists.lttng.org>
Subject: Re: [lttng-dev] Syntax error running lttng
Date: Wed, 2 Jun 2021 12:31:51 -0400 [thread overview]
Message-ID: <20210602163151.GB388028@joraj-alpa> (raw)
In-Reply-To: <00e701d7567f$cd20c070$67624150$@triplanets.com>
Hi,
Side note: not sure what is wrong with my email setup or the mailing list but I
cannot see the reply you sent in my email folder, but it is available here:
https://lists.lttng.org/pipermail/lttng-dev/2021-June/030021.html
In any case, this look strangely like the problem seen in [1][2]. Considering
your cross compilation setup I would take a deeper look at the generated
executable both locally and when on the device.
The `file` command is a must here I think.
[1] https://unix.stackexchange.com/questions/336436/syntax-error-unexpected-when-execute-a-compiled-c-program
[2] https://unix.stackexchange.com/questions/499641/syntax-error-unexpected-when-execute-a-cross-compiled-pjsip-binary-in-arm
Not sure if this is exactly your problem. `strace` might give a bit more info
on what is going on and at least see if the problem is lttng or anything else.
Cheers
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:
>
>
>
> lttng: line 1: syntax error: unexpected "("
>
>
>
> E.G. lttng create my-kernel-session
> --output=/mnt/sd1/nfs/temp/Innotech/lttng/my-kernel-trace
>
> lttng list --kernel
>
> lttng-sessiond
>
> 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.
>
>
>
> Modules seem to load fine.
>
>
>
> ~ # lsmod
>
> Module Size Used by Tainted: G
>
> lttng_ring_buffer_client_discard 20480 0
>
> lttng_ring_buffer_client_mmap_discard 20480 0
>
> lttng_ring_buffer_metadata_mmap_client 16384 0
>
> lttng_ring_buffer_metadata_client 16384 0
>
> lttng_ring_buffer_event_notifier_client 16384 0
>
> lttng_ring_buffer_client_overwrite 20480 0
>
> lttng_tracer 1167360 6
> lttng_ring_buffer_client_discard,lttng_ring_buffer_client_mmap_discard,lttng
> _ring_buffer_metadata_mmap_client,lttng_ring_buffer_metadata_client,lttng_ri
> ng_buffer_event_notifier_client,lttng_ring_buffer_client_overwrite
>
> lttng_kprobes 16384 1 lttng_tracer
>
> lttng_lib_ring_buffer 57344 7
> lttng_ring_buffer_client_discard,lttng_ring_buffer_client_mmap_discard,lttng
> _ring_buffer_metadata_mmap_client,lttng_ring_buffer_metadata_client,lttng_ri
> ng_buffer_event_notifier_client,lttng_ring_buffer_client_overwrite,lttng_tra
> cer
>
> lttng_kretprobes 16384 1 lttng_tracer
>
> lttng_statedump 20480 1 lttng_tracer
>
> lttng_wrapper 16384 2 lttng_tracer,lttng_statedump
>
> lttng_clock 16384 4
> lttng_ring_buffer_client_discard,lttng_ring_buffer_client_mmap_discard,lttng
> _ring_buffer_client_overwrite,lttng_tracer
>
>
>
> Any suggestions appreciated.
>
>
>
> Thank you.
>
>
>
> Merlin
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
--
Jonathan Rajotte-Julien
EfficiOS
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
prev parent reply other threads:[~2021-06-02 16:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-01 0:48 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
2021-06-02 16:31 ` Jonathan Rajotte-Julien via lttng-dev [this message]
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=20210602163151.GB388028@joraj-alpa \
--to=lttng-dev@lists.lttng.org \
--cc=jonathan.rajotte-julien@efficios.com \
--cc=paul@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