% 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
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.
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) 0027名無しさん@お腹いっぱい。NGNG>>17 漏れもRPMつくったよ。 0028名無しさん@XEmacsNGNG 今更だが、Linux だと HelloWorld ぐらいはコンパイルできるようだ。
class HelloWorld { public static void main(string args[]) { System.out.println("Hello World"); } }