new build issues on debian/mipsel

Arturo Borrero Gonzalez arturo.borrero.glez at gmail.com
Wed Jul 8 07:32:40 UTC 2015


Dear developers,

strace is having some issues to build on debian/mipsel [0].

Here are the errors:

[...]
gcc -DHAVE_CONFIG_H -I. -I..  -I./linux/mips -I../linux/mips -I./linux
-I../linux -D_FORTIFY_SOURCE=2 -Wall -Wwrite-strings -Wsign-compare -g
-O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security
-Wall -g -O2 -MT strace-sysinfo.o -MD -MP -MF .deps/strace-sysinfo.Tpo
-c -o strace-sysinfo.o `test -f 'sysinfo.c' || echo '../'`sysinfo.c
mv -f .deps/strace-sync_file_range.Tpo .deps/strace-sync_file_range.Po
In file included from ../linux/mips/syscallent.h:3:0,
                 from ../syscall.c:85:
../linux/mips/syscallent-o32.h:3:20: error: 'sys_syscall' undeclared
here (not in a function)
 [4000] = { MA, 0,  sys_syscall,   "syscall"  }, /* start of Linux o32 */
                    ^
gcc -DHAVE_CONFIG_H -I. -I..  -I./linux/mips -I../linux/mips -I./linux
-I../linux -D_FORTIFY_SOURCE=2 -Wall -Wwrite-strings -Wsign-compare -g
-O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security
-Wall -g -O2 -MT strace-syslog.o -MD -MP -MF .deps/strace-syslog.Tpo
-c -o strace-syslog.o `test -f 'syslog.c' || echo '../'`syslog.c
mv -f .deps/strace-syslog.Tpo .deps/strace-syslog.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I./linux/mips -I../linux/mips -I./linux
-I../linux -D_FORTIFY_SOURCE=2 -Wall -Wwrite-strings -Wsign-compare -g
-O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security
-Wall -g -O2 -MT strace-sysmips.o -MD -MP -MF .deps/strace-sysmips.Tpo
-c -o strace-sysmips.o `test -f 'sysmips.c' || echo '../'`sysmips.c
mv -f .deps/strace-sysinfo.Tpo .deps/strace-sysinfo.Po
../syscall.c:622:1: warning: return type defaults to 'int' [-Wreturn-type]
 SYS_FUNC(syscall)
 ^
../syscall.c: In function 'SYS_FUNC':
../syscall.c:624:19: error: 'tcp' undeclared (first use in this function)
  return printargs(tcp);
                   ^
../syscall.c:624:19: note: each undeclared identifier is reported only
once for each function it appears in
../syscall.c:624:19: warning: passing argument 1 of 'printargs' from
incompatible pointer type
In file included from ../syscall.c:34:0:
../defs.h:462:12: note: expected 'struct tcb *' but argument is of
type 'const struct struct_sysent *'
 extern int printargs(struct tcb *);
            ^
../syscall.c: In function 'trace_syscall_entering':
../syscall.c:1797:18: warning: comparison of distinct pointer types lacks a cast
  if (sys_syscall == tcp->s_ent->sys_func)
                  ^
../syscall.c:1798:3: error: too few arguments to function 'decode_mips_subcall'
   decode_mips_subcall();
   ^
../syscall.c:611:1: note: declared here
 decode_mips_subcall(struct tcb *tcp)
 ^
gcc -DHAVE_CONFIG_H -I. -I..  -I./linux/mips -I../linux/mips -I./linux
-I../linux -D_FORTIFY_SOURCE=2 -Wall -Wwrite-strings -Wsign-compare -g
-O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security
-Wall -g -O2 -MT strace-term.o -MD -MP -MF .deps/strace-term.Tpo -c -o
strace-term.o `test -f 'term.c' || echo '../'`term.c
../syscall.c:1798:3: warning: statement with no effect [-Wunused-value]
   decode_mips_subcall();
   ^
make[3]: *** [strace-syscall.o] Error 1
make[3]: *** Waiting for unfinished jobs....
Makefile:2171: recipe for target 'strace-syscall.o' failed
[...]

Do you have any hint about solving these issues?

thanks, best regards

[0] https://buildd.debian.org/status/fetch.php?pkg=strace&arch=mipsel&ver=4.10-2&stamp=1435800897
-- 
Arturo Borrero González




More information about the Strace-devel mailing list