logo       

compiling strace using buildroot for mipsel: msg#00253

linux.busybox

Subject: compiling strace using buildroot for mipsel

I had some problems compiling strace using buildroot and cross-compiling from x86 to mipsel.  I'm using uclibc snapshot and busybox snapshot, downloaded before pre1 and pre2 existed.  I did not find any information about this in the email archive.
 
There were two errors that I found.  The first occurred while compiling bjm.c.  There was a syntax error before void on line 218 of system.h.  Apparently asmlinkage was undefined.  To fix it I included <linux/linkage.h> in  <asm/system.h>.  Here's the diff:
 
asm/system.h
18a19
> #include <linux/linkage.h>
The second was in system.c.  Actually there were numerous things not defined, because <asm/sysmips.h> was not being included as a result of HAVE_ASM_SYSMIPS_H not being defined.  Since I don't know where it should be defined, I just commented out the check.  Here's the diff:
 
strace-4.4/system.c
75c75
< #ifdef HAVE_ASM_SYSMIPS_H
---
> //#ifdef HAVE_ASM_SYSMIPS_H
77c77
< #endif
---
> //#endif
Since at least one of these problems is actually in the strace package, I don't expect this to be fixed in busybox/buildroot. I just wanted to give people the heads up.
 
Tony
_______________________________________________
busybox mailing list
busybox@xxxxxxxxxxxxxxxx
http://codepoet.org/mailman/listinfo/busybox
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise