I have the same problem solved with adding in the file
libchill/basicio.c :
#ifndef PATH_MAX
#define PATH_MAX 255
#endif

do not know if it is a good or bad solution but solved that problem and
the toolchain is working.
Xavier

root a �crit :
> 
> Can someone help? Followed 'The GNU Toolchain for ARM targets HOWTO'
> religiously
> and successfully built first pass gcc, built glibc, and then returned to
> rebuild gcc with all languages
> support. This last step failed.
> 
> I have used the following srcs:
> 
> binutils-2.11
> linux-2.4.2
> gcc-2.95.3
> glibc-2.2.3
> glibc-linuxthreads-2.2.3
> 
> The error message was:
> 
> /usr/local/arm-linux/src/gcc-2.95.3/gcc/xgcc
> -B/usr/local/arm-linux/src/gcc-2.95.3/gcc/ -B/usr/local/arm-linux/bin/
> -c -I. -I.   -g -O2  basicio.c
> basicio.c: In function `makeName':
> basicio.c:90: `PATH_MAX' undeclared (first use in this function)
> basicio.c:90: (Each undeclared identifier is reported only once
> basicio.c:90: for each function it appears in.)
> basicio.c: In function `__modify':
> basicio.c:232: `PATH_MAX' undeclared (first use in this function)
> make[1]: *** [basicio.o] Error 1
> make[1]: Leaving directory
> `/usr/local/arm-linux/src/gcc-2.95.3/arm-linux/libchill'
> make: *** [all-target-libchill] Error 2
> 
> After compiling glibc, I had removed the Dinhibit_libc hack,  removed
> the CC=arm-linux-gcc
> setting, and used the following configure in the gcc toplevel directory:
> 
> ./configure --target=arm-linux --prefix=/usr/local
> --with-headers=/usr/local/arm-linux/src/linux/include
> 
> Does anyone know what the issue is?
> 
> Note, after this failed I attempted to rebuild gcc just for C (ie
> re-applied the Dinhibit_libc hack, reconfigured with:
> ./configure --target=arm-linux --prefix=/usr/local
> --with-headers=/usr/local/arm-linux/src/linux/include
> --enable-languages=c --disable-threads
> 
> make clean
> make
> 
> But that failed as well.
> 
> Should I start again from scratch??
> 
> _______________________________________________
> http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
> Please visit the above address for information on this list.

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to