This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cross toolchain problem.


I'm having trouble building an arm-linux-gnu
cross toolchain (gcc-4.2.1 + binutils-2.18 +
glibc-2.6.1 + linux-2.6.22.6).
 
I'm able to compile the entire toolchain
using the attached script. But compiling code
that uses PATH_MAX causes a compile error about
PATH_MAX not being declared similar to the
following:

http://busybox.net/lists/busybox/2001-November/005207.html
 
The limits.h in my
$prefix/lib/gcc/arm-linux-gnu/4.2.1/include built by
gcc seems to not include the
 
#ifdef _GCC_NEXT_LIMITS_H
#include_next <limits.h>  /* recurse down to the
real one */
#endif
 
lines which are present on my native gcc, causing
the compilation errors.

Another problem is binaries for straight C code
get unncessarily linked to libgcc_s.so.1
(similar to this:
http://www.cygwin.com/ml/binutils/2005-07/msg00476.html).



       
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

Attachment: xtool.sh
Description: pat636429618


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]