- To: gcc-help@xxxxxxxxxxx
- Subject: Re: GCJ building
- From: Kai Ruottu <kai.ruottu@xxxxxxxxxxx>
- Date: Tue, 13 Mar 2012 16:49:15 +0200
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1332254759; h=Comment: DomainKey-Signature:Received:Received:Received:Received: Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=HnWBNvAvYWplBG27I+jF JP+41t8=; b=iJxQPZEUsa+JIg4fSuNn1j8r0vSRViKL0/8slDXB8a+wEm33jh8P ya0xKFWSVR3LOrFv5q2vOJveHanwdLl8QRWkpMU7bNHNZvoLTLwQ1f14VVVSV4p7 mpcx1uSomFuBifei7jopjqX+I9Za0IppHzChomCNL+3UUxkV4QpKv70=
- In-reply-to: <BAY147-W656DE7DA526DB6357B08AFD0580@phx.gbl>
- User-agent: Mozilla/5.0 (Windows NT 5.0; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
13.3.2012 5:17, Me Myself and I kirjoitti:
If not, is there anyone out there who has succeeded in building gcc with gcj?
Yes, if you mean this being the goal :
C:\opt\cross\bin>i686-mingw32-gcj-4.6 -v
Reading specs from c:/opt/cross/bin/../lib/gcc/i686-mingw32/4.6.2/specs
Reading specs from libgcj.spec
i686-mingw32-gcj-4.6: error: libgcj.spec: No such file or directory
Producing libgcj from the gcc-4.6.[23] sources doesn't currently work,
the (1st) error comes from compiling 'jni.cc' so basically the problem
is some C++ related problem. But my C++ skills are rusty so although
the problem might be simple :
-DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.6.2-12/classmap.db\" -g -Os
-MT jni.lo -MD -MP -MF .deps/jni.Tpo -c ../../../libjava/jni.cc
-DDLL_EXPORT -DPIC -o .libs/jni.o
../../../libjava/jni.cc: In function 'java::lang::Object*
_Jv_JNI_ToReflectedField(JNIEnv*, jclass, jfieldID, jboolean)':
../../../libjava/jni.cc:1663:14: error: new declaration
'java::lang::Object* _Jv_JNI_ToReflectedField(JNIEnv*, jclass, jfieldID,
jboolean)'
../../../libjava/java/lang/reflect/Field.h:93:19: error: ambiguates old
declaration 'java::lang::Object* _Jv_JNI_ToReflectedField(_Jv_JNIEnv*,
jclass, jfieldID, jboolean)'
../../../libjava/java/lang/reflect/Field.h:83:105: error:
'java::lang::Class* java::lang::reflect::Field::declaringClass' is private
../../../libjava/jni.cc:1669:14: error: within this context
../../../libjava/java/lang/reflect/Field.h:85:8: error: 'jint
java::lang::reflect::Field::offset' is private
../../../libjava/jni.cc:1670:14: error: within this context
it isn't so simple to fix without refreshing my C++ memory...
Maybe your question is: "is there anyone out there who has succeeded in
building gcc-4.6.x with gcj for MinGW-host/target on MinGW-build
platform?" As seen a partial answer for "is there anyone out there who
has succeeded in building gcc-4.6.x with gcj for MinGW-host/target?" is
"yes"... (It will succeed without the 'libgcj' library, requiring
'--enable-libgcj' in GCC configure)
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]