This is GCC Bugzilla
This is GCC Bugzilla Version 2.20+
View Bug Activity | Format For Printing | Clone This Bug
In order to build correctly in libjava and libjava/classpath, i had to: 1) in libjava/classpath/lib/Makefile.gcj, replace $(SHELL) by /bin/sh 2) in libjava/classpath/lib/gen-classlist.sh.in, replace the four occurrences of "while read pkg file" with an appropriate awk sentence (eg for the first one: awk '{ pkg=$1; file=$2; printf("%s %s %s/%s\n", pkg, dir, pkg, file); }' dir=@top_srcdir@ -) 3) in libjava/Makefile.in, replace "cat tmp-ilist | while read f; do" with "for f in `cat tmp-ilist`; do" It seems that the read built-in in darwin ksh does not read a line, but 4096 bytes.
Why are you trying to build with /bin/ksh? That is just wrong. How is ${SHELL} is being set to /bin/ksh anyways, SHELL is set by MAKE to /bin/sh by default unless someone else overrides it. Did you set CONFIG_SHELL before building GCC?
Oops, i've found an unnoticed CONFIG_SHELL=/bin/ksh around the "configure" step in my build instructions. Sorry for that. Bug is not confirmed any longer.
Ok, closing as invalid, you might also want to report to Apple that ksh does not work correctly for POSIX cases.