How to build java vm in mixed mode instead of interpreter mode
Andrew Dinn
adinn at redhat.com
Tue Feb 28 09:15:02 UTC 2017
Hi Srinivas,
On 28/02/17 06:17, Srinivasa Rao Ragolu wrote:
> I have been trying openjdk 8 recipe patches provided by Guy, yocto
> developer. He takes source from aarch32-port and enables vm as client.
>
> I have also tried images you uploaded and they are working perfectly fine.
>
> Now I am facing one compilation error while building
>
> error: comparison between signed and unsigned integer expressions
> [-Werror=sign-compare]
>
> Please help me how could I resolve this issue.
It would help if you could provide more detailed error output to show
what was being compiled when this error was generated. Also, details of
which C compiler and which version of the compiler you are using would
be useful.
If this error happened during compilation of code libraries used to
implement native methods in the JDK then you might be able to bypass
this problem by adding some extra C/C++ flags when you configure the
build e.g. if you were previously using
configure --with-jvm-variants=client ...
then try adding the following flags
configure --with-jvm-variants=client \
--with-extra-cflags="-Wno-error" \
--with-extra-cxxflags="-Wno-error" ...
The -Wno-error flag to the C/C++ compiler should suppress the error you
indicated above.
If the error is happening during compilation of the JVM code (that's the
code in subdirectory hotspot) then you may need to patch the options
configured in the hotspot makefiles. So, do please post the details of
the error if at all possible. That will help pin down what might need
patching.
regards,
Andrew Dinn
-----------
Senior Principal Software Engineer
Red Hat UK Ltd
Registered in England and Wales under Company Registration No. 03798903
Directors: Michael Cunningham, Michael ("Mike") O'Neill, Eric Shander
More information about the aarch32-port-dev
mailing list