Help!

cannot build with gcj on amd64


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Java RSS
Next:  Getting Maven Into Main - What Next?  
Author Message
Marcus Better
External


Since: Nov 19, 2004
Posts: 366



PostPosted: Thu May 31, 2007 4:30 pm    Post subject: cannot build with gcj on amd64
Archived from groups: linux>debian>maint>java (more info?)

Suddenly I get the infamous "java.lang.Object cannot be resolved" when building on amd64. Any ideas?

I'm not using any chroots or anything.

~$ /usr/lib/jvm/java-gcj/bin/javac Test.java
----------
1. ERROR in Test.java (at line 1)
public class Test
^
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

~$ dpkg -l java-gcj-compat-dev ecj\* libgcj7-1
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-================-================-================================================
ii ecj 3.3~M7-2 standalone version of the Eclipse Java compiler
ii ecj-bootstrap 3.3~M7-2 standalone version of the Eclipse Java compiler
ii ecj-bootstrap-gc 3.3~M7-2 standalone version of the Eclipse Java compiler
ii ecj-gcj 3.3~M7-2 standalone version of the Eclipse Java compiler
ii java-gcj-compat- 1.0.76-2 Java runtime environment with GCJ
ii libgcj7-1 4.1.2-8 Java runtime library for use with gcj

Marcus



--
To UNSUBSCRIBE, email to debian-java-REQUEST DeleteThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster DeleteThis @lists.debian.org
Back to top
tony mancill
External


Since: Nov 16, 2004
Posts: 106



PostPosted: Thu May 31, 2007 4:40 pm    Post subject: Re: cannot build with gcj on amd64 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

FWIW, I'm also seeing something like this, building inside a pbuilder
environment on x86 for a package that uses java-gcj-compat-dev.

....
javadoc:
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] WARNING: -classpath option could not be passed to the VM.
Faking it with
[javadoc] WARNING: System.setProperty("java.class.path",
"/tmp/buildd/libfontbox-java-0.1.0.dfsg/classes:/tmp/buildd/libfontbox-java-0.1.0.dfsg");
[javadoc] Loading classes for package org.fontbox.afm...
[javadoc] Loading classes for package org.fontbox.cmap...
[javadoc] Loading classes for package org.fontbox.encoding...
[javadoc] Loading classes for package org.fontbox.pfb...
[javadoc] Loading classes for package org.fontbox.ttf...
[javadoc] Loading classes for package org.fontbox.util...
[javadoc] Constructing Javadoc information...
[javadoc] WARNING: Cannot locate class java.lang.Object referenced in
class org.fontbox.afm.AFMParser
....

tony

Marcus Better wrote:
> Suddenly I get the infamous "java.lang.Object cannot be resolved" when building on amd64. Any ideas?
>
> I'm not using any chroots or anything.
>
> ~$ /usr/lib/jvm/java-gcj/bin/javac Test.java
> ----------
> 1. ERROR in Test.java (at line 1)
> public class Test
> ^
> The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
>
> ~$ dpkg -l java-gcj-compat-dev ecj\* libgcj7-1
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
> ||/ Name Version Description
> +++-================-================-================================================
> ii ecj 3.3~M7-2 standalone version of the Eclipse Java compiler
> ii ecj-bootstrap 3.3~M7-2 standalone version of the Eclipse Java compiler
> ii ecj-bootstrap-gc 3.3~M7-2 standalone version of the Eclipse Java compiler
> ii ecj-gcj 3.3~M7-2 standalone version of the Eclipse Java compiler
> ii java-gcj-compat- 1.0.76-2 Java runtime environment with GCJ
> ii libgcj7-1 4.1.2-8 Java runtime library for use with gcj
>
> Marcus


--
To UNSUBSCRIBE, email to debian-java-REQUEST.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org
Back to top
Michael Koch
External


Since: Feb 18, 2005
Posts: 543



PostPosted: Thu May 31, 2007 8:20 pm    Post subject: Re: cannot build with gcj on amd64 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, May 31, 2007 at 04:20:50PM +0200, Marcus Better wrote:
> Suddenly I get the infamous "java.lang.Object cannot be resolved" when building on amd64. Any ideas?
>
> I'm not using any chroots or anything.
>
> ~$ /usr/lib/jvm/java-gcj/bin/javac Test.java
> ----------
> 1. ERROR in Test.java (at line 1)
> public class Test
> ^
> The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

Is this an amd64 machine with a 32-bit Debian version installed and
64-bit kernel running? If thats the case install the linux32 package
and run it.

The problem is that some parts of gcj are installed in
/usr/lib/gcc/i486-linux-gnu/4.1 (on my machine). On amd64 this dir is
named differently. gcj always uses what

dpkg-architecture -qDEB_BUILD_GNU_TYPE

returns. When using the linux32 wrapper on an amd64 machine you will get
"i486-linux-gnu"


Cheers,
Michael
--
.''`. | Michael Koch <konqueror.RemoveThis@gmx.de>
: :' : | Free Java Developer <http://www.classpath.org>
`. `' |
`- | 1024D/BAC5 4B28 D436 95E6 F2E0 BD11 5923 A008 2763 483B


--
To UNSUBSCRIBE, email to debian-java-REQUEST.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org
Back to top
Marcus Better
External


Since: Nov 19, 2004
Posts: 366



PostPosted: Thu May 31, 2007 8:30 pm    Post subject: Re: cannot build with gcj on amd64 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Michael Koch wrote:
> Is this an amd64 machine with a 32-bit Debian version installed and
> 64-bit kernel running?

No, this is pure amd64.

Marcus



--
To UNSUBSCRIBE, email to debian-java-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Java All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum