Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: miloody@gmail.com (loody)
Subject: [lttng-dev] arm gcc compile lttng-tool fail
Date: Thu, 27 Mar 2014 21:09:22 +0800	[thread overview]
Message-ID: <CANudz+soZbO-GGZyXrNZdEQRp3Nz6xUO_p-mnTEeRiGA4MJLew@mail.gmail.com> (raw)
In-Reply-To: <5334207E.1030007@mentor.com>

hi Stefan:


>
> Exactly. Compiling src/common/consumer.c,
> src/common/kernel-consumer/kernel-consumer.c, and
> src/common/ust-consumer/ust-consumer.c with -O1 instead of -O2 worked
> for us. And if you are afraid to mess with the build system, you can
> also inject
>
>   #pragma GCC optimize ("O1")
>
> on top of those files to override the command-line optimization option.
>
I use CFLAGS="-O1" while executing configure
But I get below message
  CCLD   lttng-consumerd
/media/sdb2/toolchain/arm/arm-v7a8v4r3-20131011/bin/../lib/gcc/arm-v7a8v4r3-linux-gnueabi/4.7.4/../../../../arm-v7a8v4r3-linux-gnueabi/bin/ld:
health_state: TLS reference in
../../../src/common/.libs/libconsumer.a(consumer.o) mismatches non-TLS
reference in ../../../src/common/.libs/libconsumer.a(consumer-timer.o)
../../../src/common/.libs/libconsumer.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[3]: *** [lttng-consumerd] Error 1

is that related to optimization?

appreciate your help,



  reply	other threads:[~2014-03-27 13:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-27 12:26 loody
2014-03-27 12:41 ` Stefan Seefeld
2014-03-27 12:53   ` loody
2014-03-27 12:58     ` Stefan Seefeld
2014-03-27 13:09       ` loody [this message]
2014-03-27 13:20         ` Stefan Seefeld

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=CANudz+soZbO-GGZyXrNZdEQRp3Nz6xUO_p-mnTEeRiGA4MJLew@mail.gmail.com \
    --to=miloody@gmail.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