This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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 (may be a binutils problem rather
than a gcc one, I'm not too sure) 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).




      ____________________________________________________________________________________
Luggage? GPS? Comic books? 
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz

Attachment: xtool.sh
Description: 1769968136-xtool.sh


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