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); }'
[EMAIL PROTECTED]@ -)
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.
--
Summary: building fails due essentially to bad /bin/ksh on darwin
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Denis dot Excoffier at airbus dot com
GCC build triplet: powerpc-apple-darwin8.2.2
GCC host triplet: powerpc-apple-darwin8.2.2
GCC target triplet: powerpc-apple-darwin8.2.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27910