Re: [jnc-users] Using self-compiled crossed-native GCC with JNC
Status: Beta
Brought to you by:
soapy
From: Marco T. <ma...@mt...> - 2008-08-26 06:44:23
|
Steve Ash wrote: > Marco- > > I took your advice and created a crossed-native GCC (with latest > releases of GCC et al). I removed the gcc-122233-win and copied in my > compiled gcc in JNC. However, when I try to run something with JNC. I > get following problems in the console window on Step 4 of 4: > > creating "SimpleTest.exe" for Windows > - main compilation step > c:/javanativecompiler-1.1.1/gcc-122233-win/bin/../lib/gcc/i686-pc-mingw32/4.3.1/../../../libgcj.a(lt48-text.o):/home/steve/gcc_src/libjava/java/text/Collator.java:138: > multiple definition of `java::text::Collator::Collator()' > libs/win/libjncNoGui.a:ccuecaaa.jar:(.text+0x820): first defined here You can't use the "exclude gui" and "exclude javax.crypto" stubs since they are for a specific GCJ version. They have to be created anew for every GCJ update. Do not exclude things and your GCJ should work fine. Hope that helps Marco > c:/javanativecompiler-1.1.1/gcc-122233-win/bin/../lib/gcc/i686-pc-mingw32/4.3.1/../../../libgcj.a(lt48-text.o): > In function `_ZN4java4text8Collator11getInstanceEJPS1_PNS_4util6LocaleE': > /home/steve/gcc_src/libjava/java/text/Collator.java:304: multiple > definition of `java::text::Collator* > java::text::Collator::getInstance(java::util::Locale*)' > libs/win/libjncNoGui.a:ccuecaaa.jar:(.text+0x840): first defined here > c:/javanativecompiler-1.1.1/gcc-122233-win/bin/../lib/gcc/i686-pc-mingw32/4.3.1/../../../libgcj.a(lt48-text.o):/home/steve/gcc_src/libjava/classpath/java/text/DateFormat.java:404: > multiple definition of `java::text::DateFormat::DateFormat()' > libs/win/libjncNoGui.a:ccuecaaa.jar:(.text+0x8f0): first defined here > c:/javanativecompiler-1.1.1/gcc-122233-win/bin/../lib/gcc/i686-pc-mingw32/4.3.1/../../../libgcj.a(lt48-text.o):/home/steve/gcc_src/libjava/classpath/java/text/DateFormat.java:436: > multiple definition of `bool > java::text::DateFormat::equals(java::lang::Object*)' > libs/win/libjncNoGui.a:ccuecaaa.jar:(.text+0xa00): first defined here > c:/javanativecompiler-1.1.1/gcc-122233-win/bin/../lib/gcc/i686-pc-mingw32/4.3.1/../../../libgcj.a(lt48-text.o):/home/steve/gcc_src/libjava/classpath/java/text/DateFormat.java:468: > multiple definition of `java::lang::Object* java::text::DateFormat::clone()' > libs/win/libjncNoGui.a:ccuecaaa.jar:(.text+0xa10): first defined here > c:/javanativecompiler-1.1.1/gcc-122233-win/bin/../lib/gcc/i686-pc-mingw32/4.3.1/../../../libgcj.a(lt48-text.o): > In function > `_ZN4java4text10DateFormat6formatEJPNS_4lang12StringBufferEPNS2_6ObjectES4_PNS0_13FieldPositionE': > /home/steve/gcc_src/libjava/classpath/java/text/DateFormat.java:490: > multiple definition of `java::lang::StringBuffer* > java::text::DateFormat::format(java::lang::Object*, > java::lang::StringBuffer*, java::text::FieldPosition*)' > libs/win/libjncNoGui.a:ccuecaaa.jar:(.text+0x9a0): first defined here > c:/javanativecompiler-1.1.1/gcc-122233-win/bin/../lib/gcc/i686-pc-mingw32/4.3.1/../../../libgcj.a(lt48-text.o): > In function > `_ZN4java4text10DateFormat6formatEJPNS_4lang6StringEPNS_4util4DateE': > /home/steve/gcc_src/libjava/classpath/java/text/DateFormat.java:506: > multiple definition of `java::lang::String* > java::text::DateFormat::format(java::util::Date*)' > libs/win/libjncNoGui.a:ccuecaaa.jar:(.text+0x950): first defined here > c:/javanativecompiler-1.1.1/gcc-122233-win/bin/../lib/gcc/i686-pc-mingw32/4.3.1/../../../libgcj.a(lt48-text.o):/home/steve/gcc_src/libjava/classpath/java/text/DateFormat.java:546: > multiple definition of `java::util::Calendar* > java::text::DateFormat::getCalendar()' > libs/win/libjncNoGui.a:ccuecaaa.jar:(.text+0x940): first defined here > c:/javanativecompiler-1.1.1/gcc-122233-win/bin/../lib/gcc/i686-pc-mingw32/4.3.1/../../../libgcj.a(lt48-text.o): > In function `_ZN4java4text10DateFormat19getDateTimeInstanceEJPS1_v': > /home/steve/gcc_src/libjava/classpath/java/text/DateFormat.java:769: > multiple definition of `java::text::DateFormat* > java::text::DateFormat::getDateTimeInstance()' > libs/win/libjncNoGui.a:ccuecaaa.jar:(.text+0x980): first defined here > c:/javanativecompiler-1.1.1/gcc-122233-win/bin/../lib/gcc/i686-pc-mingw32/4.3.1/../../../libgcj.a(lt48-text.o): > In function `_ZN4java4text10DateFormat11getInstanceEJPS1_v': > /home/steve/gcc_src/libjava/classpath/java/text/DateFormat.java:832: > multiple definition of `java::text::DateFormat* > java::text::DateFormat::getInstance()' > libs/win/libjncNoGui.a:ccuecaaa.jar:(.text+0x910): first defined here > c:/javanativecompiler-1.1.1/gcc-122233-win/bin/../lib/gcc/i686-pc-mingw32/4.3.1/../../../libgcj.a(lt48-text.o):/home/steve/gcc_src/libjava/classpath/java/text/DateFormat.java:843: > multiple definition of `java::text::NumberFormat* > java::text::DateFormat::getNumberFormat()' > libs/win/libjncNoGui.a:ccuecaaa.jar:(.text+0x9d0): first defined here > c:/javanativecompiler-1.1.1/gcc-122233-win/bin/../lib/gcc/i686-pc-mingw32/4.3.1/../../../libgcj.a(lt48-text.o):/home/steve/gcc_src/libjava/classpath/java/text/DateFormat.java:915: > multiple definition of `java::util::TimeZone* > java::text::DateFormat::getTimeZone()' > libs/win/libjncNoGui.a:ccuecaaa.jar:(.text+0x930): first defined here > c:/javanativecompiler-1.1.1/gcc-122233-win/bin/../lib/gcc/i686-pc-mingw32/4.3.1/../../../libgcj.a(lt48-text.o):/home/steve/gcc_src/libjava/classpath/java/text/DateFormat.java:925: > multiple definition of `int java::text::DateFormat::hashCode()' > libs/win/libjncNoGui.a:ccuecaaa.jar:(.text+0x960): first defined here > c:/javanativecompiler-1.1.1/gcc-122233-win/bin/../lib/gcc/i686-pc-mingw32/4.3.1/../../../libgcj.a(lt48-text.o):/home/steve/gcc_src/libjava/classpath/java/text/DateFormat.java:940: > multiple definition of `bool java::text::DateFormat::isLenient()' > libs/win/libjncNoGui.a:ccuecaaa.jar:(.text+0x9e0): first defined here > c:/javanativecompiler-1.1.1/gcc-122233-win/bin/../lib/gcc/i686-pc-mingw32/4.3.1/../../../libgcj.a(lt48-text.o):/home/steve/gcc_src/libjava/classpath/java/text/DateFormat.java:953: > multiple definition of `java::util::Date* > java::text::DateFormat::parse(java::lang::String*)' > libs/win/libjncNoGui.a:ccuecaaa.jar:(.text+0x9c0): first defined here > c:/javanativecompiler-1.1.1/gcc-122233-win/bin/../lib/gcc/i686-pc-mingw32/4.3.1/../../../libgcj.a(lt48-text.o):/home/steve/gcc_src/libjava/classpath/java/text/DateFormat.java:995: > multiple definition of `java::lang::Object* > java::text::DateFormat::parseObject(java::lang::String*, > java::text::ParsePosition*)' > libs/win/libjncNoGui.a:ccuecaaa.jar:(.text+0x9b0): first defined here > > > Do I need to copy some of my jars/classes into your lib directory or > remove some of the JNC packaged ones? > > Thanks in advance for any help that anyone can provide. > > Steve > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users |