[Ltrace-devel] building for sh4

frank.lenaerts at devoteam.be frank.lenaerts at devoteam.be
Wed May 18 09:43:23 UTC 2011


Hi

I'm trying to build ltrace (0.6.0) for sh4. However, configure fails
with:

...
checking gelf.h usability... no
checking gelf.h presence... no
checking for gelf.h... no
configure: error: *** libelf.h or gelf.h not found on your system

and config.log shows:

...
configure:10747: checking gelf.h usability
configure:10747: sh4-oe-linux-gcc -c -fPIC -DPIC -isystem /export/project/utc/slash/utc-sdk-0.13/sh4/vip1960/sh4-oe-linux/usr/include -I/export/project/utc/slash/utc-sdk-0.13/sh4/vip1960/sh4-oe-linux/usr/include -I/export/project/utc/slash/utc-sdk-0.13/sh4/vip1960/sh4-oe-linux/usr/include -I/export/project/utc/tmp/sh4/ltrace-0.6.0/rootfs/usr/include  -I/export/project/utc/tmp/sh4/ltrace-0.6.0/rootfs/usr/include conftest.c >&5
In file included from /export/project/utc/tmp/sh4/ltrace-0.6.0/rootfs/usr/include/gelf.h:1,
                 from conftest.c:57:
/export/project/utc/tmp/sh4/ltrace-0.6.0/rootfs/usr/include/libelf/gelf.h:51:2: error: #error "GElf is not supported on this system."
configure:10747: $? = 1
...

which boils down to:

...
#if !__LIBELF64

#error "GElf is not supported on this system."
...


If ltrace is supported on sh4, and needs libelf, I would expect libelf
to support sh4 also. What am I missing here?


Kind regards,

-- 
Frank



More information about the Ltrace-devel mailing list