This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


ggiusti@fceia.unr.edu.ar 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 demo-i386.sh
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. http://sources.redhat.com/ml/crossgcc/2005-01/msg00078.html 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 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.

Look at
gcc-3.3.6-glibc-2.3.2-hdrs-2.6.11.2.dat
See the line
LINUX_SANITIZED_HEADER_DIR=linux-libc-headers-2.6.11.2
?  Use that setting when running all.sh, 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 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 crossgcc-unsubscribe@sources.redhat.com


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