From: John C. <jc...@un...> - 2011-04-29 06:19:51
|
Using --no-cache fixed the problem. When you told me 'do an "ant clean" and remove all .cache directories. Then try again' I mistakenly assumed you meant both things were to be done in the xmlvm sources, not the first in xmlvm and the second in my test build directory. And after running "ant clean" I did "find . -name .cache" and didn't find anything, so assumed you had meant "ant clean" would remove the .cache directories to which you were referring. Anyway, the latest build error is: gcc -w -std=c99 -I../src -c ../src/native_java_io_File.c -o build/obj/native_java_io_File.o ../src/native_java_io_File.c: In function ‘java_io_File_isDirectoryImpl___byte_1ARRAY’: ../src/native_java_io_File.c:94: error: ‘S_IFDIR’ undeclared (first use in this function) ../src/native_java_io_File.c:94: error: (Each undeclared identifier is reported only once ../src/native_java_io_File.c:94: error: for each function it appears in.) make[1]: *** [build/obj/native_java_io_File.o] Error 1 make[1]: Leaving directory `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' make: *** [default] Error 2 On Thu, Apr 28, 2011 at 11:10 PM, Arno Puder <ar...@pu...> wrote: > > well, that means that there is a .cache directory floating around somewhere > that still has some .xmlvm cached from before the constant pool update. > > Can you please send another message on the mailing list to say --no-cache > fixed the problem? > > Thanks, > Arno > > > On 4/28/11 11:08 PM, John Comeau wrote: >> >> OK, using --no-cache it built. Now I need to install the garbage >> collector before continuing. >> >> On Thu, Apr 28, 2011 at 11:05 PM, John Comeau<jc...@un...> wrote: >>> >>> This is the same HelloWorld test that Hans posted yesterday, I'm still >>> trying to help with it. >>> >>> Currently rebuilding with --no-cache as requested. >>> >>> On Thu, Apr 28, 2011 at 11:00 PM, John Comeau<jc...@un...> wrote: >>>> >>>> On Thu, Apr 28, 2011 at 10:53 PM, Arno Puder<ar...@pu...> wrote: >>>>> >>>>> John: this is related to the new string handling, but without seeing >>>>> the >>>>> program, I can't tell what is going wrong. In >>>>> XmlvmConstantStringElement.getLength() (which is the origin of the >>>>> problem >>>>> according to the stack trace), can you print out all members of >>>>> XmlvmConstantStringElement? This will generate a lot of output, but >>>>> just >>>>> before the exception is thrown, we should see which string constant is >>>>> causing the problem. >>>>> >>>>> Arno >>>>> >>>>> >>>>> On 4/28/11 10:44 PM, John Comeau wrote: >>>>>> >>>>>> Done. Exactly same result. >>>>>> >>>>>> On Thu, Apr 28, 2011 at 10:35 PM, Arno Puder<ar...@pu...> wrote: >>>>>>> >>>>>>> do an "ant clean" and remove all .cache directories. Then try again. >>>>>>> >>>>>>> Arno >>>>>>> >>>>>>> >>>>>>> On 4/28/11 10:34 PM, John Comeau wrote: >>>>>>>> >>>>>>>> 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 >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------ >>>>>>> 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" >>>> >>> >>> >>> >>> -- >>> 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" |