Re: GCJ building

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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]

Add to Google