[MacPorts] #22692: gcc-4.4.2 Error in GCJ - configuration error
#22692: gcc-4.4.2 Error in GCJ - configuration error ------------------------------+--------------------------------------------- Reporter: thomas@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: gcc44 ------------------------------+--------------------------------------------- There seems to be a problem with GCJ in gcc44, if I try to compile a simple java file with: {{{ $ gcj-mp-4.4 Test.java }}} I get the following error: {{{ gcj-mp-4.4: error trying to exec 'ecj1': execvp: No such file or directory }}} It seems to suggest that the ecj1 executable is missing. This in the meantime renders GCJ unusable. I have tried with gcc43 and gcc45 the error persists. I have also tried a fresh install of Snow Leopard but, alas, no difference. I cannot locate the ecj1 anywhere on my system. -- Ticket URL: <http://trac.macports.org/ticket/22692> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22692: gcc-4.4.2 Error in GCJ - configuration error ------------------------------+--------------------------------------------- Reporter: thomas@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: gcc44 ------------------------------+--------------------------------------------- Comment(by thomas@…): As it turns out it is caused by the build process failing to create the ecj1 script file. This is because it needs ecj.jar that is downloaded using ./contrib/download_ecj in the gcc svn root. The ecj1 script looks like this: {{{ gij-mp-4.4 -cp <SOME PATH>/ecj.jar \ org.eclipse.jdt.internal.compiler.batch.GCCMain \ ${1+"$@"} }}} this gets me over the initial hurdle, but lead to a new error: {{{ Exception in thread "main" java.lang.NoClassDefFoundError: at java.lang.Throwable.<init>(libgcj.10.dylib) at java.lang.Throwable.<init>(libgcj.10.dylib) at gnu.java.lang.MainThread.run(libgcj.10.dylib) Caused by: java.lang.ClassNotFoundException: not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/opt/local/bin/ecj.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} at java.net.URLClassLoader.findClass(libgcj.10.dylib) at java.lang.ClassLoader.loadClass(libgcj.10.dylib) at java.lang.ClassLoader.loadClass(libgcj.10.dylib) ...1 more }}} I'm not quite sure what to make of this. There might be some sort of version incompatibility with the gcj.jar I downloaded? -- Ticket URL: <http://trac.macports.org/ticket/22692#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22692: gcc-4.4.2 Error in GCJ - configuration error ------------------------------+--------------------------------------------- Reporter: thomas@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: gcc44 ------------------------------+--------------------------------------------- Changes (by macsforever2000@…): * cc: mww, thomas@… (removed) * owner: macports-tickets@… => mww@… -- Ticket URL: <http://trac.macports.org/ticket/22692#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22692: gcc-4.4.2 Error in GCJ - configuration error -------------------------------+-------------------------------------------- Reporter: thomas@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: duplicate | Keywords: Port: gcc44 | -------------------------------+-------------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => duplicate Comment: Duplicate of #22066. -- Ticket URL: <http://trac.macports.org/ticket/22692#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts