From: John C. <jc...@un...> - 2011-04-29 05:34:58
|
Thanks, Arno. My bad, should have updated before posting. But now I get: jcomeau@intrepid:~/rentacoder/xmlvm$ make mkdir -p generated/posix/src cd src && javac -d ../bin test/*.java java -Xmx1G -jar /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar \ --in=bin \ --out=generated/posix/src --target=posix \ --app-name=xmlvm-test Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.simontuffs.onejar.Boot.run(Boot.java:306) at com.simontuffs.onejar.Boot.main(Boot.java:159) Caused by: java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:417) at java.lang.Integer.parseInt(Integer.java:499) at org.xmlvm.proc.XmlvmResource$XmlvmConstantStringElement.getLength(XmlvmResource.java:160) at org.xmlvm.proc.out.OptimizationOutputProcess.generateStringConstantPool(OptimizationOutputProcess.java:115) at org.xmlvm.proc.out.OptimizationOutputProcess.processPhase2(OptimizationOutputProcess.java:88) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:223) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:162) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) at org.xmlvm.Main.main(Main.java:53) ... 6 more Source tree is at http://unternet.net/xmlvm/ is current. On Thu, Apr 28, 2011 at 10:13 PM, Arno Puder <ar...@pu...> wrote: > > you don't seem to be using the latest version. We removed the manual > bundling of the Boehm GC and for the --target=posix we now expect a > local installation of the Boehm GC (the boehmgc.jar that is bundled with > XMLVM is specifically for iOS). After a svn update, re-generate your > project and check the comments in the Makefile. > > Arno > > > On 4/28/11 10:10 PM, John Comeau wrote: >> Fixed my Makefile to invoke 'java' with '-Xmx1G' and the xmlvm >> compiler finished; but the resulting C source has an error, see output >> of 'make' below. >> >> jcomeau@intrepid:~/rentacoder/xmlvm/generated/posix/src/dist$ make >> make[1]: Entering directory >> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >> mkdir -p build/obj/ >> gcc -w -std=c99 -I../src -c ../src/finalize.c -o build/obj/finalize.o >> In file included from ../src/gc_pmark.h:45, >> from ../src/finalize.c:17: >> ../src/gc_priv.h:2196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or >> ‘__attribute__’ before ‘GC_jmp_buf’ >> make[1]: *** [build/obj/finalize.o] Error 1 >> make[1]: Leaving directory >> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >> >> Line 2196 is the 3rd line of the statement: >> >> # if defined(NEED_FIND_LIMIT) || \ >> defined(USE_PROC_FOR_LIBRARIES)&& defined(THREADS) >> JMP_BUF GC_jmp_buf; >> >> Any ideas how to fix? >> >> On Thu, Apr 28, 2011 at 1:36 PM, John Comeau<jc...@un...> wrote: >>> Hans, I tried your test class on my system and it partially compiled, >>> but then I got the error "[04/28/11 13:05:29.608] ERROR: Oh no, >>> XMLVM needs more memory. Try running with -Xmx1G or more." >>> >>> Don't know if it matters, but did you put your source file into a >>> directory named 'test' to match the package? See the layout of my >>> files, and the content of the Makefile, at http://unternet.net/xmlvm, >>> and the part that xmlvm was able to complete at >>> http://unternet.net/xmlvm/.cache/pcache/org.xmlvm.proc.out.DEXmlvmOutputProcess/ >>> >>> On my (Debian stable) build system, /usr/local/bin/xmlvm is a symlink >>> to /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar >>> >>> On Thu, Apr 28, 2011 at 1:26 AM, hka...@go... >>> <hka...@go...> wrote: >>>> Hello Arno, >>>> >>>> currently I am again struggeling with xmlvm. I gived the xmlvm now the >>>> second try and I am falling again... >>>> My goal: I just want to get C/C++ code from Java. >>>> >>>> I cannot even get a simple example running. >>>> 1. I checked out trunk. >>>> 2. I created a test class, a pretty, pretty simple one >>>> Here my test class: >>>> package test; >>>> >>>> public class HelloWorld { >>>> >>>> public static void main(String[] args) { >>>> System.out.println("hello world"); >>>> } >>>> >>>> } >>>> >>>> 3. I created a launch config >>>> Here my launch params: >>>> --in=${workspace_loc:xmlvm-test}/bin >>>> --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=posix >>>> --app-name=xmlvm-test >>>> >>>> now I get: >>>> Exception in thread "main" java.lang.NullPointerException >>>> at >>> -- >>> John Comeau<jc...@un...> http://jc.unternet.net/ >>> "A place for everything, and everything >>> all over the place" >>> >> >> >> > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > -- John Comeau <jc...@un...> http://jc.unternet.net/ "A place for everything, and everything all over the place" |