strace-4.5.17 compilation breaks on ARM
Matthieu Poullet
matthieu.poullet at gmail.com
Wed Jul 23 14:22:54 UTC 2008
Hi,
I've just downloaded strace-4.5.17 (from sourceforge) and wanted to
cross-compile it for ARM using the csl2007q3 toolchain.
As the configure script doesn't recognize the default host prefix
"arm-none-linux-gnueabi" of Code Sourcery, I've done:
CC=${CROSS_COMPILE}gcc ./configure --host=arm-linux
which works well, but during "make" I get:
arm-none-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -Ilinux/arm -I./linux/arm
-Ilinux -I./linux -Wall -g -O2 -MT syscall.o -MD -MP -MF .deps/syscall.Tpo
-c -o syscall.o syscall.c
syscall.c:136:25: error: syscallent1.h: No such file or directory
syscall.c:169:23: error: errnoent1.h: No such file or directory
syscall.c: In function 'get_scno':
syscall.c:1001: warning: passing argument 4 of 'ptrace' makes integer from
pointer without a cast
syscall.c:1029: warning: passing argument 4 of 'ptrace' makes integer from
pointer without a cast
syscall.c: In function 'syscall_fixup':
syscall.c:1337: warning: unused variable 'pid'
syscall.c: In function 'syscall_enter':
syscall.c:1933: warning: unused variable 'pid'
make[1]: *** [syscall.o] Fehler 1
and indeed there's neither syscallent1.h nor errnoent1.h in linux/arm:
mpoullet at lu84-mpoullet:~/src/strace-4.5.17$ ls linux/arm/
syscallent.h
The problem is that SUPPORTED_PERSONALITIES is set at 2 in defs.h for ARM.
If I set it to 1 instead, it compiles without errors and works on my
embedded board.
As I'm new to compile strace myself, I'd like to know where the error is:
should it be set to 1 or are these two files missing?
Regards,
Matthieu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20080723/219f75c7/attachment.html>
More information about the Strace-devel
mailing list