5 Replies Latest reply: Jun 10, 2008 6:26 AM by 843851 RSS

    building j2me cldc

    843851
      i downloaded j2me_cldc-1_1-fcs-src-winunix.zip and tried to compile
      on linux-x86 with gcc (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)

      I get following error compiling VmCommon/src/verifierUtil.c:

      ... obj/verifierUtil.o
      ../../../kvm/VmCommon/src/verifierUtil.c: In function 'matchStackMap':
      ../../../kvm/VmCommon/src/verifierUtil.c:426: warning: dereferencing type-punned pointer will break strict-aliasing rules
      ../../../kvm/VmCommon/src/verifierUtil.c: In function 'verifyClass':
      ../../../kvm/VmCommon/src/verifierUtil.c:547: error: invalid storage class for function 'Vfy_verifyMethod'
      ../../../kvm/VmCommon/src/verifierUtil.c:571: warning: implicit declaration of function 'Vfy_verifyMethod'
      ../../../kvm/VmCommon/src/verifierUtil.c:604: warning: dereferencing type-punned pointer will break strict-aliasing rules
      ../../../kvm/VmCommon/src/verifierUtil.c: At top level:
      ../../../kvm/VmCommon/src/verifierUtil.c:1595: error: static declaration of 'Vfy_verifyMethod' follows non-static declaration
      ../../../kvm/VmCommon/src/verifierUtil.c:571: error: previous implicit declaration of 'Vfy_verifyMethod' was here
      ../../../kvm/VmCommon/src/verifierUtil.c: In function 'Vfy_verifyMethod':
      ../../../kvm/VmCommon/src/verifierUtil.c:1598: error: invalid storage class for function 'Vfy_checkNewInstructions'
      ../../../kvm/VmCommon/src/verifierUtil.c:1609: warning: dereferencing type-punned pointer will break strict-aliasing rules
      ../../../kvm/VmCommon/src/verifierUtil.c:1610: warning: dereferencing type-punned pointer will break strict-aliasing rules
      ../../../kvm/VmCommon/src/verifierUtil.c:1616: warning: dereferencing type-punned pointer will break strict-aliasing rules
      ../../../kvm/VmCommon/src/verifierUtil.c:1633: warning: implicit declaration of function 'Vfy_checkNewInstructions'
      ../../../kvm/VmCommon/src/verifierUtil.c: At top level:
      ../../../kvm/VmCommon/src/verifierUtil.c:1671: error: conflicting types for 'Vfy_checkNewInstructions'
      ../../../kvm/VmCommon/src/verifierUtil.c:1633: error: previous implicit declaration of 'Vfy_checkNewInstructions' was here
      make[1]: *** [obj/verifierUtil.o] Error 1
      make[1]: Leaving directory `/home/fale/j2me_cldc/kvm/VmUnix/build'
      make: *** [all] Error 1

      Leopold Faschalek
      fale@skidata.com
        • 1. Re: building j2me cldc
          843851
          i found it
          i use now gcc-2.95 and it compiles ...
          • 2. Re: building j2me cldc
            843851
            When I compile j2me cldc(version 1.1), there are following errors.I don't understand why to this,who can help me? Thanks!!!!!!(sorry my english is poor!-_-)

            wyang@linux:~/Program/j2me_cldc/build/linux> make
            Recursively making ../../tools/preverifier/build/linux all...
            make[1]: Entering directory `/home/wyang/Program/j2me_cldc/tools/preverifier/build/linux'
            make[1]: Nothing to be done for `all'.
            make[1]: Leaving directory `/home/wyang/Program/j2me_cldc/tools/preverifier/build/linux'
            <<<Finished Recursively making ../../tools/preverifier/build/linux all.
            Recursively making ../../api all...
            make[1]: Entering directory `/home/wyang/Program/j2me_cldc/api'
            make[1]: Leaving directory `/home/wyang/Program/j2me_cldc/api'
            <<<Finished Recursively making ../../api all.
            Recursively making ../../tools/jcc all...
            make[1]: Entering directory `/home/wyang/Program/j2me_cldc/tools/jcc'
            make[2]: Entering directory `/home/wyang/Program/j2me_cldc/api'
            make[2]: Leaving directory `/home/wyang/Program/j2me_cldc/api'
            ... classes.zip
            make[2]: Entering directory `/home/wyang/Program/j2me_cldc/tools/jcc'
            make[2]: `nativeFunctionTableUnix.c' is up to date.
            make[2]: Leaving directory `/home/wyang/Program/j2me_cldc/tools/jcc'
            make[2]: Entering directory `/home/wyang/Program/j2me_cldc/tools/jcc'
            make[2]: `ROMjavaUnix.c' is up to date.
            make[2]: Leaving directory `/home/wyang/Program/j2me_cldc/tools/jcc'
            make[1]: Leaving directory `/home/wyang/Program/j2me_cldc/tools/jcc'
            <<<Finished Recursively making ../../tools/jcc all.
            Recursively making ../../kvm/VmUnix/build all...
            make[1]: Entering directory `/home/wyang/Program/j2me_cldc/kvm/VmUnix/build'
            make[2]: Entering directory `/home/wyang/Program/j2me_cldc/tools/jcc'
            make[3]: Entering directory `/home/wyang/Program/j2me_cldc/api'
            make[3]: Leaving directory `/home/wyang/Program/j2me_cldc/api'
            ... classes.zip
            make[3]: Entering directory `/home/wyang/Program/j2me_cldc/tools/jcc'
            make[3]: `nativeFunctionTableUnix.c' is up to date.
            make[3]: Leaving directory `/home/wyang/Program/j2me_cldc/tools/jcc'
            make[3]: Entering directory `/home/wyang/Program/j2me_cldc/tools/jcc'
            make[3]: `ROMjavaUnix.c' is up to date.
            make[3]: Leaving directory `/home/wyang/Program/j2me_cldc/tools/jcc'
            make[2]: Leaving directory `/home/wyang/Program/j2me_cldc/tools/jcc'
            ... obj/verifierUtil.o
            ../../../kvm/VmCommon/src/verifierUtil.c: In function 'matchStackMap':
            ../../../kvm/VmCommon/src/verifierUtil.c:426: warning: dereferencing type-punned pointer will break strict-aliasing rules
            ../../../kvm/VmCommon/src/verifierUtil.c: In function 'verifyClass':
            ../../../kvm/VmCommon/src/verifierUtil.c:547: error: invalid storage class for function 'Vfy_verifyMethod'
            ../../../kvm/VmCommon/src/verifierUtil.c:571: warning: implicit declaration of function 'Vfy_verifyMethod'
            ../../../kvm/VmCommon/src/verifierUtil.c:604: warning: dereferencing type-punned pointer will break strict-aliasing rules
            ../../../kvm/VmCommon/src/verifierUtil.c: At top level:
            ../../../kvm/VmCommon/src/verifierUtil.c:1595: error: static declaration of 'Vfy_verifyMethod' follows non-static declaration
            ../../../kvm/VmCommon/src/verifierUtil.c:571: error: previous implicit declaration of 'Vfy_verifyMethod' was here
            ../../../kvm/VmCommon/src/verifierUtil.c: In function 'Vfy_verifyMethod':
            ../../../kvm/VmCommon/src/verifierUtil.c:1598: error: invalid storage class for function 'Vfy_checkNewInstructions'
            ../../../kvm/VmCommon/src/verifierUtil.c:1609: warning: dereferencing type-punned pointer will break strict-aliasing rules
            ../../../kvm/VmCommon/src/verifierUtil.c:1610: warning: dereferencing type-punned pointer will break strict-aliasing rules
            ../../../kvm/VmCommon/src/verifierUtil.c:1616: warning: dereferencing type-punned pointer will break strict-aliasing rules
            ../../../kvm/VmCommon/src/verifierUtil.c:1633: warning: implicit declaration of function 'Vfy_checkNewInstructions'
            ../../../kvm/VmCommon/src/verifierUtil.c: At top level:
            ../../../kvm/VmCommon/src/verifierUtil.c:1671: error: conflicting types for 'Vfy_checkNewInstructions'
            ../../../kvm/VmCommon/src/verifierUtil.c:1633: error: previous implicit declaration of 'Vfy_checkNewInstructions' was here
            make[1]: *** [obj/verifierUtil.o] Error 1
            make[1]: Leaving directory `/home/wyang/Program/j2me_cldc/kvm/VmUnix/build'
            make: *** [all] Error 1
            wyang@linux:~/Program/j2me_cldc/build/linux>
            • 3. Re: building j2me cldc-error with javac, files in /api not found
              843851
              Hi,
              I also got a problem while "make" under "j2me_cldc/build/linux".

              ((Other code))
              Recursively making ../../api all...
              make[1]: Entering directory `/home/sliu/Download/j2me_cldc/api'
              javac -g:none -d tmpclasses -bootclasspath classes -classpath classes
              src/com/sun/cldc/util/j2me/CalendarImpl.java src/com/sun/cldc/util/j2me/TimeZoneImpl.java
              ((other .java files with the same path))
              src/com/sun/cldc/util/j2me/CalendarImpl.java:19: error while writing com.sun.cldc.util.j2me.CalendarImpl: tmpclasses/com/sun/cldc/util/j2me/CalendarImpl.class (No such file or directory)
              public class CalendarImpl extends Calendar {
              ^
              1 error
              make[1]: *** [compilefiles] Error 1
              make[1]: Leaving directory `/home/sliu/Download/j2me_cldc/api'
              make: *** [all] Error 1

              I dont know much about makefile. It appears very simple with a lot of"recursive" lines.
              Might it be something wrong with the path"src/com/sun...?, especially in the next line, it's "com.sun.cldc.util.j2me.CalendarImpl"
              Does anyone have the same problem?
              • 4. j2me cldc
                843851
                how to download cldc1.1 for windows? The link pro vided by the SDN is not support the download j2me_cldc-1_1-fcs-src-winunix.zip mail me the link to download cldc elan78in@yahoo.com
                • 5. j2me cldc
                  843851
                  how to download cldc1.1 for windows? The link pro vided by the SDN is not support the download j2me_cldc-1_1-fcs-src-winunix.zip mail me the link to download cldc elan78in@yahoo.com