[Ltrace-devel] Compilation error with dwarf code
Thierry Fauck@linux.vnet.ibm.com
thierry at linux.vnet.ibm.com
Tue May 13 11:15:03 UTC 2014
On 05/13/2014 10:44 AM, Dima Kogan wrote:
> Petr Machata <pmachata at redhat.com> writes:
>
>> Regarding this:
>>
>> +AM_CONDITIONAL(HAVE_LIBDW, test x"$enable_elfutils" = xyes)
>>
>> I already see the following in configure.ac:
>>
>> if test x"$enable_elfutils" = xyes; then
>> libdw_LIBS=-ldw
>> AC_SUBST(libdw_LIBS)
>> AC_DEFINE([HAVE_LIBDW], [1], [we have elfutils libdw])
>> fi
>>
>> Which does the same.
> It does the same, but apparently autoconf is separate from automake. So
> without that extra AM_CONDITIONAL line you can't put in that extra logic
> in Makefile.am. You'll see that if you try. This double-definition of
> HAVE_LIBDW is what maybe you could avoid if you really knew how to use
> automake/autoconf. I avoid them when I can, so I'm not an expert.
>
> dima
>
Dima
Great job it solves the problem and I can now compile on ppc64 and
ppc64le without any problem.
Also tried with dwarf installed and got testsuite result:
Running ./ltrace.torture/ppc-lwarx.exp ...
FAIL: atomic_add(.*, 5,.*) in
/home/ubuntu/ltrace/testsuite/ltrace.torture/ppc-lwarx.ltrace for 0
times, should be 1
FAIL: atomic_add(.*, 10,.*) in
/home/ubuntu/ltrace/testsuite/ltrace.torture/ppc-lwarx.ltrace for 0
times, should be 1
FAIL: atomic_add(.*, 15,.*) in
/home/ubuntu/ltrace/testsuite/ltrace.torture/ppc-lwarx.ltrace for 0
times, should be 1
=== Summary ===
# of expected passes 345
# of unexpected failures 3
# of unsupported tests 1
--
Thierry Fauck @ linux.vnet.ibm
More information about the Ltrace-devel
mailing list