From: John C. <jc...@un...> - 2011-04-29 05:10:37
|
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" > -- John Comeau <jc...@un...> http://jc.unternet.net/ "A place for everything, and everything all over the place" |