As far as I know it is installed correctly. I am recompiling it
now to see if something had gotten messed up but I am recompiling
it. I know some others are having the same problem and they just
remove gcj to build bison then reinstall gcj.
Here is the output from strace.
execve("/usr/bin/gcj", ["gcj", "-C", "-d", ".", "conftestlib.java"],
[/* 35 vars */]) = 0
brk(0) = 0x9a3f000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7f62000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/usr/lib/xorg/tls/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/xorg/tls/i686/sse2", 0xbfb83a24) = -1 ENOENT (No
such file or directory)
open("/usr/lib/xorg/tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/xorg/tls/i686", 0xbfb83a24) = -1 ENOENT (No such
file or directory)
open("/usr/lib/xorg/tls/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/xorg/tls/sse2", 0xbfb83a24) = -1 ENOENT (No such
file or directory)
open("/usr/lib/xorg/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/xorg/tls", 0xbfb83a24) = -1 ENOENT (No such file or
directory)
open("/usr/lib/xorg/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/xorg/i686/sse2", 0xbfb83a24) = -1 ENOENT (No such
file or directory)
open("/usr/lib/xorg/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/xorg/i686", 0xbfb83a24) = -1 ENOENT (No such file
or directory)
open("/usr/lib/xorg/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/xorg/sse2", 0xbfb83a24) = -1 ENOENT (No such file
or directory)
open("/usr/lib/xorg/libc.so.6", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/usr/lib/xorg", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=126142, ...}) = 0
mmap2(NULL, 126142, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f43000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360g
\1\0004\0\0\0\200"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1696008, ...}) = 0
mmap2(NULL, 1443408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7de2000
mmap2(0xb7f3d000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_DENYWRITE, 3, 0x15b) = 0xb7f3d000
mmap2(0xb7f40000, 9808, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0xb7f40000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7de1000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7de16c0, limit:
1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:
1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7f3d000, 8192, PROT_READ) = 0
mprotect(0xb7f83000, 4096, PROT_READ) = 0
munmap(0xb7f43000, 126142) = 0
brk(0) = 0x9a3f000
brk(0x9a60000) = 0x9a60000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=57294608, ...}) = 0
mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7be1000
mmap2(NULL, 4096, PROT_READ, MAP_PRIVATE, 3, 0xe17) = 0xb7f61000
close(3) = 0
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2570, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7f60000
read(3, "# Locale name alias data base.\n# "..., 4096) = 2570
read(3, ""..., 4096) = 0
close(3) = 0
munmap(0xb7f60000, 4096) = 0
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/gcc.mo", O_RDONLY) =
-1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/gcc.mo", O_RDONLY) =
-1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/gcc.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/gcc.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
rt_sigaction(SIGINT, {0x1, [INT], SA_RESTART}, {SIG_DFL, [], 0}, 8)
= 0
rt_sigaction(SIGINT, {0x804b00b, [INT], SA_RESTART}, {0x1, [INT],
SA_RESTART}, 8) = 0
rt_sigaction(SIGHUP, {0x1, [HUP], SA_RESTART}, {SIG_DFL, [], 0}, 8)
= 0
rt_sigaction(SIGHUP, {0x804b00b, [HUP], SA_RESTART}, {0x1, [HUP],
SA_RESTART}, 8) = 0
rt_sigaction(SIGTERM, {0x1, [TERM], SA_RESTART}, {SIG_DFL, [], 0},
8) = 0
rt_sigaction(SIGTERM, {0x804b00b, [TERM], SA_RESTART}, {0x1, [TERM],
SA_RESTART}, 8) = 0
rt_sigaction(SIGPIPE, {0x1, [PIPE], SA_RESTART}, {SIG_DFL, [], 0},
8) = 0
rt_sigaction(SIGPIPE, {0x804b00b, [PIPE], SA_RESTART}, {0x1, [PIPE],
SA_RESTART}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD], SA_RESTART}, {SIG_DFL, [],
0}, 8) = 0
access("/sbin/gcj", X_OK) = -1 ENOENT (No such file or
directory)
access("/usr/sbin/gcj", X_OK) = -1 ENOENT (No such file or
directory)
access("/usr/local/sbin/gcj", X_OK) = -1 ENOENT (No such file or
directory)
access("/bin/gcj", X_OK) = -1 ENOENT (No such file or
directory)
access("/usr/bin/gcj", X_OK) = 0
lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/bin", {st_mode=S_IFDIR|0755, st_size=61440, ...}) = 0
lstat64("/usr/bin/gcj", {st_mode=S_IFREG|0755, st_size=265069, ...})
= 0
access("/sbin/gcj", X_OK) = -1 ENOENT (No such file or
directory)
access("/usr/sbin/gcj", X_OK) = -1 ENOENT (No such file or
directory)
access("/usr/local/sbin/gcj", X_OK) = -1 ENOENT (No such file or
directory)
access("/bin/gcj", X_OK) = -1 ENOENT (No such file or
directory)
access("/usr/bin/gcj", X_OK) = 0
lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/bin", {st_mode=S_IFDIR|0755, st_size=61440, ...}) = 0
lstat64("/usr/bin/gcj", {st_mode=S_IFREG|0755, st_size=265069, ...})
= 0
stat64("/usr/share/java/ext/", 0xbfb839e4) = -1 ENOENT (No such file
or directory)
access("/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/", X_OK) = 0
access("/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/", X_OK) = 0
access("conftestlib.java", F_OK) = 0
access("/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/specs", R_OK) = 0
open("/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/specs", O_RDONLY) = 3
stat64("/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/specs",
{st_mode=S_IFREG|0644, st_size=9276, ...}) = 0
read(3, "*asm:\n%{v:-V} %{Qy:} %{!Qn:-Qy} %"..., 9276) = 9276
close(3) = 0
access("/usr/lib/gcc/i686-pc-linux-gnu/specs", R_OK) = -1 ENOENT (No
such file or directory)
access("/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/", X_OK) = 0
access("/tmp", R_OK|W_OK|X_OK) = 0
gettimeofday({1235088850, 295553}, NULL) = 0
getpid() = 3381
open("/tmp/ccrvorDw.zip", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
close(3) = 0
stat64("/usr/libexec/gcc/i686-pc-linux-gnu/4.3.2/ecj1",
{st_mode=S_IFREG|0755, st_size=7031, ...}) = 0
access("/usr/libexec/gcc/i686-pc-linux-gnu/4.3.2/ecj1", X_OK) = 0
vfork() = 3382
waitpid(3382,
On Thu, 2009-02-19 at 10:57 +0100, Akim Demaille wrote:
Le 19 févr. 09 à 05:34, Robin Cook a écrit :
>>> So could you please run the following and confirm that it hangs?
>>>
>>> ----------------------------------------
>>> cat >conftestlib.java <<EOF
>>> public class conftestlib {
>>> public static void main (String[] args) {
>>> }
>>> }
>>> EOF
>>> gcj -C -d . conftestlib.java
>>> ----------------------------------------
>>>
>>> What is gcj on your machine? What does 'gcj --version' give?
> Yes, it does hang.
>
> gcj (GCC) 4.3.2
> Copyright (C) 2008 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
There
> is
> NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
This looks like a serious problem, and I doubt this is something we
can fight :( As you sure your gcj is properly installed? Can a
strace gcj -C -d . conftestlib.java
help understanding what it's waiting for?
Maybe for a start you could try
gcj -C -d . conftestlib.java </dev/null
and see if it still hangs?
Thanks!