Porting strace - compile problem

Marcus Mikolaiczyk marcus.mikolaiczyk at carmedialab.de
Mon Feb 5 14:00:25 UTC 2007


Dear all,

Mayby this is not the right place to post a "porting strace" question if
this is the case please ignore this post. I've searched the web for my
problem and found nothing similar.

Problem:
I'm trying to port strace 4.5.14 to a new (tricore) cpu architecture
runing a linux 2.4.19 . I managed to adapt config.sub and a test in the
configure script mayby not 100% correct and now I'm strugling with a
compiliation error (see below).
I think that I need to do more adaptions to my architecture but maybe
anyone has had a similar problem or can give me some usefull advice -
escpecially in relation to the "porting needs".


Compile Error first on __NR_exit_group which probably does not exist in
my architecture. Removing the __NR_exit_group from the line would help
but I don't know the impact on this. The next error is then at line 318
and others are folowing.
--------------------------------------
 tricore-gcc -DHAVE_CONFIG_H
-I/opt/projekte/flea/standard/kernel-005/include -I. -I. -I.
-Ilinux/tricore -I./linux/tricore -Ilinux -I./linux   -Wall -Wall -mtc13
-mall-errata -fno-schedule-insns -fno-schedule-insns2 -mhard-float
-Wa,-mdmi12  -MT syscall.o -MD -MP -MF ".deps/syscall.Tpo" -c -o
syscall.o syscall.c;
In file included from syscall.c:129:
linux/syscallent.h:285: error: `__NR_exit_group' undeclared here (not in
a function)
linux/syscallent.h:285: error: initializer element is not constant
linux/syscallent.h:285: error: (near initialization for
`sysent0[252].native_scno')
linux/syscallent.h:285: error: initializer element is not constant
linux/syscallent.h:285: error: (near initialization for `sysent0[252]')
linux/syscallent.h:286: error: initializer element is not constant
linux/syscallent.h:286: error: (near initialization for `sysent0[253]')
linux/syscallent.h:287: error: initializer element is not constant
linux/syscallent.h:287: error: (near initialization for `sysent0[254]')
linux/syscallent.h:288: error: initializer element is not constant
linux/syscallent.h:288: error: (near initialization for `sysent0[255]')
linux/syscallent.h:289: error: initializer element is not constant
linux/syscallent.h:289: error: (near initialization for `sysent0[256]')
....
linux/syscallent.h:318: error: `SYS_waitid' undeclared here (not in a
function)
linux/syscallent.h:318: error: initializer element is not constant
linux/syscallent.h:318: error: (near initialization for
`sysent0[284].native_scno')
linux/syscallent.h:318: error: initializer element is not constant
....
-------------------------------


further information on the crosscompiling environment:
Compiler:tricore-gcc -v
  ...
  gcc version 3.3 built for Linux on 2005-07-22 Tool Version v3.0
Libc: /usr/tricore/lib/libc-2.3.3.so


Kind Regards.

Marcus




More information about the Strace-devel mailing list