Bug#292577: More info

David N. Welton davidw@dedasys.com (David N. Welton), 292577@bugs.debian.org
Mon Mar 14 11:12:01 2005


Wolfgang Baer <WBaer@gmx.de> writes:

> Hi David,
> 
> David N. Welton wrote:
> > This still doesn't work, although at least it doesn't segfault:
> > ant -verbose -Dbuild.compiler=gcj
> 
> If it does not segfault now - what for problems are getting
> you now ? Can you attache the output (the essential parts)

It's probably an upstream thing.

@ashland [~/workshop/hecl] $ ant -verbose -Dbuild.compiler=gcj compileCore

....
....
....

BUILD FAILED
/home/davidw/workshop/hecl/build.xml:102: Error running gcj compiler
   at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile (DefaultCompilerAdapter.java:446)
   at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile (DefaultCompilerAdapter.java:365)
   at org.apache.tools.ant.taskdefs.compilers.Gcj.execute (Gcj.java:45)
   at org.apache.tools.ant.taskdefs.Javac.compile (Javac.java:936)
   at org.apache.tools.ant.taskdefs.Javac.execute (Javac.java:758)
   at org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:275)
   at org.apache.tools.ant.Task.perform (Task.java:364)
   at org.apache.tools.ant.Target.execute (Target.java:341)
   at org.apache.tools.ant.Target.performTasks (Target.java:369)
   at org.apache.tools.ant.Project.executeTarget (Project.java:1214)
   at org.apache.tools.ant.Project.executeTargets (Project.java:1062)
   at org.apache.tools.ant.Main.runBuild (Main.java:673)
   at org.apache.tools.ant.Main.startAnt (Main.java:188)
   at org.apache.tools.ant.launch.Launcher.run (Launcher.java:196)
   at org.apache.tools.ant.launch.Launcher.main (Launcher.java:55)
Caused by: java.io.IOException
   at java.lang.reflect.Method.invoke0 (Method.java)
   at java.lang.reflect.Method.invoke (Method.java:255)
   at java.lang.reflect.Constructor.newInstance (Constructor.java:90)
   at java.lang.Class.newInstance (Class.java:429)
   at kaffe.lang.UNIXProcess.<init> (UNIXProcess.java:103)
   at java.lang.Runtime.execInternal (Runtime.java)
   at java.lang.Runtime.exec (Runtime.java:87)
   at java.lang.reflect.Method.invoke0 (Method.java)
   at java.lang.reflect.Method.invoke (Method.java:255)
   at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec (Execute.java:831)
   at org.apache.tools.ant.taskdefs.Execute.launch (Execute.java:436)
   at org.apache.tools.ant.taskdefs.Execute.execute (Execute.java:450)
   at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile (DefaultCompilerAdapter.java:443)
   ...14 more
Caused by: java.io.IOException: No such file or directory
   at kaffe.lang.UNIXProcess.forkAndExec (UNIXProcess.java)
   at kaffe.lang.UNIXProcess.access$0 (UNIXProcess.java:26)
   at kaffe.lang.UNIXProcess$1.run (UNIXProcess.java:57)
   at java.lang.VMThread.run (VMThread.java:124)
--- Nested Exception ---
java.io.IOException
   at java.lang.reflect.Method.invoke0 (Method.java)
   at java.lang.reflect.Method.invoke (Method.java:255)
   at java.lang.reflect.Constructor.newInstance (Constructor.java:90)
   at java.lang.Class.newInstance (Class.java:429)
   at kaffe.lang.UNIXProcess.<init> (UNIXProcess.java:103)
   at java.lang.Runtime.execInternal (Runtime.java)
   at java.lang.Runtime.exec (Runtime.java:87)
   at java.lang.reflect.Method.invoke0 (Method.java)
   at java.lang.reflect.Method.invoke (Method.java:255)
   at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec (Execute.java:831)
   at org.apache.tools.ant.taskdefs.Execute.launch (Execute.java:436)
   at org.apache.tools.ant.taskdefs.Execute.execute (Execute.java:450)
   at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile (DefaultCompilerAdapter.java:443)
   at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile (DefaultCompilerAdapter.java:365)
   at org.apache.tools.ant.taskdefs.compilers.Gcj.execute (Gcj.java:45)
   at org.apache.tools.ant.taskdefs.Javac.compile (Javac.java:936)
   at org.apache.tools.ant.taskdefs.Javac.execute (Javac.java:758)
   at org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:275)
   at org.apache.tools.ant.Task.perform (Task.java:364)
   at org.apache.tools.ant.Target.execute (Target.java:341)
   at org.apache.tools.ant.Target.performTasks (Target.java:369)
   at org.apache.tools.ant.Project.executeTarget (Project.java:1214)
   at org.apache.tools.ant.Project.executeTargets (Project.java:1062)
   at org.apache.tools.ant.Main.runBuild (Main.java:673)
   at org.apache.tools.ant.Main.startAnt (Main.java:188)
   at org.apache.tools.ant.launch.Launcher.run (Launcher.java:196)
   at org.apache.tools.ant.launch.Launcher.main (Launcher.java:55)
Caused by: java.io.IOException: No such file or directory
   at kaffe.lang.UNIXProcess.forkAndExec (UNIXProcess.java)
   at kaffe.lang.UNIXProcess.access$0 (UNIXProcess.java:26)
   at kaffe.lang.UNIXProcess$1.run (UNIXProcess.java:57)
   at java.lang.VMThread.run (VMThread.java:124)

Total time: 7 seconds

> > The problem is that on Debian, there is no 'gcj' binary.
> 
> There is one (although it belongs to the default 3.3 gcj version):
> apt-get install gcj
> 
> > Things do work when I make a symlink.

> Do thinks work also if you install gcj as said above ?

I get this in dselect:

  _* Opt devel    gcj          The GNU Java compiler                            
  _* Opt devel    gcj-3.3      The GNU compiler for Java(TM)
  _* Opt libs     libgcj4-comm Java runtime library for use with gcj (jar files)
  _* Opt libdevel libgcj4-dev  Java development headers and static library for u
  _* Opt libs     libgcj4-awt  AWT peer runtime libraries for use with gcj
 **- Opt libdevel libgcj5-dev  Java development headers and static library for u
 *** Opt devel    gcj-3.4      The GNU compiler for Java(TM)

I don't see why I need the older version of gcj as I already have
3.4...  That's probably why I don't have some of the correct things.
Hrm.

-- 
David N. Welton
 - http://www.dedasys.com/davidw/

Apache, Linux, Tcl Consulting
 - http://www.dedasys.com/