>>12です.みごと失敗しました.(solaris7+gcc2.95.3) 試行錯誤して,インストールはできたのですが, gcjの実行に失敗しました. ・binutils-2.11 をインストール ・./configure --with-ld=/usr/local/bin/ld --with-as=/usr/local/bin/as % gcj -v Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.0/specs Reading specs from libgcj.spec gcj: libgcj.spec: No such file or directory % gcc-3.0/sparc-sun-solaris2.7/libjava/gij -v couldn't set locale correctly ld.so.1: gij: fatal: relocation error: R_SPARC_32: file /tmp/gcc-3.0/sparc-sun-solaris2.7/libjava/./.libs/libgcj.so.2: symbol __gcj_personality_v0: offset 0xff2de359 is non-aligned ld.so.1: gij: fatal: relocation error: R_SPARC_32: file /tmp/gcc-3.0/sparc-sun-solaris2.7/libjava/./.libs/libgcj.so.2: symbol __gcj_personality_v0: offset 0xff2de899 is non-aligned ld.so.1: gij: fatal: relocation error: R_SPARC_32: file /tmp/gcc-3.0/sparc-sun-solaris2.7/libjava/./.libs/libgcj.so.2: symbol __gcj_personality_v0: offset 0xff2de95a is non-aligned Bus error (core dumped)
26 :01/06/24
補足です. % gcj -specs=./libgcj.spec Hello.java Hello.java:0: unknown encoding: `646' This might mean that your locale's encoding is not supported by your system's iconv(3) implementation. If you aren't trying to use a particular encoding for your input file, try the `--encoding=UTF-8' option. compilation terminated. % gcj --encoding=UTF-8 -specs=./libgcj.spec Hello.java Segmentation fault (core dumped) % gdb `which gcj` core GNU gdb 4.18 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "sparc-sun-solaris2.7"... Core was generated by `gcj --encoding=UTF-8 -specs=./libgcj.spec /tmp/Hello.java'. Program terminated with signal 11, Segmentation Fault. Reading symbols from /usr/lib/libc.so.1...done. Reading symbols from /usr/lib/libdl.so.1...done. Reading symbols from /usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1...done. #0 0xff2b6df4 in strncmp () from /usr/lib/libc.so.1 (gdb) bt #0 0xff2b6df4 in strncmp () from /usr/lib/libc.so.1 Cannot access memory at address 0xff3ef9ec. (gdb)