>>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 :
補足です. % 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)
>>81 板違いです。 Red Hat Linux 統合スレ http://pc.2ch.net/test/read.cgi/linux/1010237038/ 今日からRedHatLinux7.2 http://pc.2ch.net/test/read.cgi/linux/1011048483/ Red Hat Linux 7.1 http://pc.2ch.net/test/read.cgi/linux/988982645/ WIN-XPとRedhat7.2のデュアルインストール http://pc.2ch.net/test/read.cgi/linux/1013131284/ ★山崎邦正はlinux(Redhat)ユーザー!! http://pc.2ch.net/test/read.cgi/linux/1004127931/ Redhat 7.2 Public beta(Roswell)ってどうよ http://pc.2ch.net/test/read.cgi/linux/996800465/ 黙ってRed Hat Linuxを使う奴はカコイイ。 http://pc.2ch.net/test/read.cgi/linux/996601004/ RedHat(世界標準) VS Turbo(日本国内厨房向け) http://pc.2ch.net/test/read.cgi/linux/1001061990/ レッドハット http://pc.2ch.net/test/read.cgi/linux/991016195/