Joined: Sep. 2005
||Posted: Oct. 27 2007,14:39
It looks like the /opt/compile extension is working reasonably well to compile applications, but I seem to have a problem in compiling the kernel:
|Code Sample |
|$ make mrproper|
$ make include/linux/version.h
$ make symlinks
$ make menuconfig
$ make dep
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
scripts/mkdep.c: In function `add_path':
scripts/mkdep.c:221: error: `PATH_MAX' undeclared (first use in this function)
scripts/mkdep.c:221: error: (Each undeclared identifier is reported only once
scripts/mkdep.c:221: error: for each function it appears in.)
scripts/mkdep.c:221: warning: unused variable `resolved_path'
make: *** [scripts/mkdep] Error 1
../include/linux/limits.h has PATH_MAX set, but ../lib/gcc-lib/i486-pc-linux-gnu/3.3.5/include/limits.h does not. Is it possible gcc is using this file instead of /include/linux/limits.h?
The only other thing I can find about this is "some toolchains don't have PATH_MAX in <limits.h>, use an additional #include <sys/params.h>", whatever than means...