As a temporary solution, I changed the problem-line in the libtool file
from:
old_postinstall_cmds="\$old_postinstall_cmds~ranlib \$oldlib"
to:
old_postinstall_cmds="ranlib \$oldlib"
It works now but I don't know if this is a proper solution.
Btw: The problem only occures if gcc is compiled with --disable-shared.
Other options do not affect the problem...
regards
Marco
Marco Trudel wrote:
Hello list
If I add "--disable-shared" with the current subversion state, I get this error on "make install" (prior make works!):
make[7]: Entering directory `/home/trudemar/Desktop/compile-lin-lin-test2/gcc-build/i686-pc-linux-gnu/libjava/classpath/native/jni/gt
test -z "/home/trudemar/Desktop/compile-lin-lin-test2/gcc-4.2.0-lin-lin/lib/gcj-4.2.0" || mkdir -p -- "/home/trudemar/Desktop/compilegcj-4.2.0"
/bin/sh ../../../libtool --mode=install /usr/bin/install -c 'libgtkpeer.la' '/home/trudemar/Desktop/compile-lin-lin-test2/gcc-4.2.0
/usr/bin/install -c .libs/libgtkpeer.lai /home/trudemar/Desktop/compile-lin-lin-test2/gcc-4.2.0-lin-lin/lib/gcj-4.2.0/libgtkpeer.la
/usr/bin/install -c .libs/libgtkpeer.a /home/trudemar/Desktop/compile-lin-lin-test2/gcc-4.2.0-lin-lin/lib/gcj-4.2.0/libgtkpeer.a
$old_postinstall_cmds
../../../libtool: line 5385: $old_postinstall_cmds~ranlib: command not found
make[7]: *** [install-nativeexeclibLTLIBRARIES] Error 127
make[7]: Leaving directory `/home/trudemar/Desktop/compile-lin-lin-test2/gcc-build/i686-pc-linux-gnu/libjava/classpath/native/jni/gtk
make[6]: *** [install-am] Error 2
...
make install works if I compiled gcc withhout --disable-shared.
The problem seems to be the line:
old_postinstall_cmds="\$old_postinstall_cmds~ranlib \$oldlib"
in i686-pc-linux-gnu/libjava/classpath/libtool in the gcc build dir...
Unfortunately I don't know how this file gets created, so I can't check the changes in the sources...
regards
Marco