crosstool 0.38 - can´t cross compile gcc3.3.4 and glibc 2.3.3 with 2.4.14 kernel headers
Mon Oct 3 15:13:00 GMT 2005
> 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 demo-i386.sh
> The problem occurs when the script trys to test the gcc and glibc already
> compiled and these errors happens:
> -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.
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 crosstool.sh:
case "$KERNEL_VERSION.$KERNEL_PATCHLEVEL.x" in
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.
See the line
? Use that setting when running all.sh, and you
may find the problem vanishes. Let us know what happens.
Trying to get a job as a c++ developer? See http://kegel.com/academy/getting-hired.html
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to email@example.com
More information about the crossgcc