[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [BusyBox] compiling strace using buildroot for mipsel
From:       "Tony Saladino" <tsaladino () broadcom ! com>
Date:       2003-07-30 14:50:38
[Download RAW message or body]

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

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=063091814-30072003>I had some problems 
compiling strace using buildroot and cross-compiling from x86 to mipsel.&nbsp; 
I'm using uclibc snapshot and busybox snapshot, downloaded before pre1 and pre2 
existed.&nbsp; I did not find any information about this in the email 
archive.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=063091814-30072003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=063091814-30072003>There were two 
errors that I found.&nbsp; The first occurred while compiling bjm.c.&nbsp; There 
was a syntax error before void on line 218 of system.h.&nbsp; Apparently 
asmlinkage was undefined.&nbsp; To fix it I included &lt;linux/linkage.h&gt; 
in&nbsp; &lt;asm/system.h&gt;.&nbsp; Here's the diff:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=063091814-30072003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT size=2><SPAN class=063091814-30072003>
<DIV><FONT size=+0><SPAN class=063091814-30072003><FONT face=Arial 
size=2>asm/system.h</FONT></SPAN></DIV></FONT>
<DIV><FONT face=Arial>18a19<BR>&gt; #include 
&lt;linux/linkage.h&gt;<BR></FONT></DIV>
<DIV><SPAN class=063091814-30072003><FONT face=Arial>The second was in 
system.c.&nbsp; Actually there were numerous things not defined, because 
&lt;asm/sysmips.h&gt; was not being included as a result of HAVE_ASM_SYSMIPS_H 
not being defined.&nbsp; Since I don't know where it should be defined, I just 
commented out the check.&nbsp; Here's the diff:</FONT></SPAN></DIV>
<DIV><FONT face=Arial>&nbsp;</DIV></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=063091814-30072003>strace-4.4/system.c</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2>75c75<BR>&lt; #ifdef 
HAVE_ASM_SYSMIPS_H<BR>---<BR>&gt; //#ifdef HAVE_ASM_SYSMIPS_H<BR>77c77<BR>&lt; 
#endif<BR>---<BR>&gt; //#endif<BR></FONT></DIV>
<DIV><FONT><SPAN class=063091814-30072003><FONT face=Arial size=2>Since&nbsp;at 
least one&nbsp;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.</FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=063091814-30072003><FONT face=Arial 
size=2></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT><SPAN class=063091814-30072003><FONT face=Arial 
size=2>Tony</FONT></SPAN></DIV></FONT></BODY></HTML>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic