[lttng-dev] arm gcc compile lttng-tool fail
Gerlando Falauto
gerlando.falauto at keymile.com
Wed May 28 11:31:59 EDT 2014
Hi,
>> 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?
>
> I haven't seen that error before. Did you run 'make clean' before ?
> Perhaps your link command is now picking up object files compiled before
> and after your reconfiguration, and there are other changes introduced
> that are incompatible. The optimization flag alone shouldn't cause any
> incompatibility.
I ran into the same problem with -O1 (tested from a fresh checkout).
Did you ever find any way out?
Looks like -O0 does the trick for me.
Weirdly enough, I'm 99% sure I had tested this with -O1 and it was
working fine. But maybe I was then starting with a *NOT* clean
environment (first compiled something with -O2 and then switched
afterwards).
Whatever.
Thanks,
Gerlando
More information about the lttng-dev
mailing list