compiling 'strace' with uclibc for ARM

Roman Mashak romez777 at gmail.com
Tue Feb 14 21:10:01 UTC 2006


Hello,

I've been trying to cross compile 'strace' for ARM9 target and failed.
May be the problem is I use pretty old version of uclibc - 0.9.15, but
due to some reasons I can't switch into new one.

How I compiled it:
#cd STRACE_SRC
#./configure --target=arm-linux-uclibc --host=arm-linux-uclibc
#make CC=<path_uclibc_toolchain> CFLAGS=<path_arm_linuxkernel_headers>
...

Process just immediately fails with this:

if /opt/toolchain/arm/gcc-3.2/toolchain/bin/arm-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -Ilinux/arm -I ./linux/arm -Ilinux
-I./linux   -Wall -g -O2 -I/ext/mrv/ktrg/linux/include -MT syscall.o
-MD -MP -MF
 ".deps/syscall.Tpo" -c -o syscall.o syscall.c; \
then mv -f ".deps/syscall.Tpo" ".deps/syscall.Po"; else rm -f
".deps/syscall.Tpo"; exit 1; fi
syscall.c:60:21: sys/reg.h: No such file or directory
syscall.c: In function `get_scno'
syscall.c:1082: warning: passing arg 4 of `ptrace' makes integer from
pointer without a cast
syscall.c:1088: invalid use of undefined type `struct pt_regs'

and so on

How and where to fix the problem?

Thanks in advance!

--
Roman




More information about the Strace-devel mailing list