crosstool 0.38 - can´t cross compile gcc3.3.4 and glibc 2.3.3 with 2.4.14 kernel headers

Dan Kegel
Mon Oct 3 15:13:00 GMT 2005 wrote:
> So, I have installed crosstools 0.38 and I have choose glibc 2.3.3 and gcc
> 3.3.4. I put the modified kernel 2.4.14 sources and I ran the
> script.
> The problem occurs when the script trys to test the gcc and glibc already
> compiled and these errors happens:
> /home/ggiusti/devel/prueba7/opt/crosstool/gcc-3.3.4-glibc-2.2.5/i386-unknown-linux-gnu/bin/i386-unknown-linux-gnu-gcc
> -static hello.c -o i386-unknown-linux-gnu-hello-static

(Looks like you're using glibc-2.2.5, not glibc-2.3.3.  That should be ok, though.)

> hello.c: In function `main':
> hello.c:4: error: `PATH_MAX' undeclared (first use in this function)

PATH_MAX is, I think, defined in linux/limits.h. mentions
someone having this problem and working around it by
fixing a missing symbolic link.
The symbolic link should have been created by these lines of

2.2.x|2.4.x) make ARCH=$ARCH symlinks    include/linux/version.h

You may be able to work around this by using sanitized kernel headers.

Look at
See the line
?  Use that setting when running, and you
may find the problem vanishes.  Let us know what happens.
Good luck!
- Dan

Trying to get a job as a c++ developer?  See

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list