El viernes, 16 de noviembre de 2018, Michael Olbrich <m.olbrich@pengutronix.de> escribió:
On Fri, Nov 16, 2018 at 12:20:18PM +0100, Guillermo Rodríguez wrote:
> Commit bbc978e623cafc added a patch intended to fix building
> with OpenJDK 1.8, however that commit was not complete. It is
> necessary to run autogen.sh so that the configure script is
> regenerated and the patched m4 macros are used.
>
> Signed-off-by: Guillermo Rodriguez <guille.rodriguez@gmail.com>
Unfortunately it's not that simple. The */Makefile.am also need the
1.5 -> 1.6 change. I tried that an then I get lots of errors like this:
warning: as of release 9, '_' is a keyword, and may not be used as an
identifier
Uhm, those are not errors, they are warnings (as long as we specify -target < 9, which is the case here). Anyway from these messages it looks like you are building with OpenJDK9? That is not supposed to work; the intent of the patch was to allow building with OpenJDK8... can you check the version of javac?
Guillermo
Michael
> ---
> patches/classpath-0.99/autogen.sh | 2 ++
> rules/classpath.in | 1 +
> 2 files changed, 3 insertions(+)
> create mode 100755 patches/classpath-0.99/autogen.sh
>
> diff --git a/patches/classpath-0.99/autogen.sh b/patches/classpath-0.99/autogen.sh
> new file mode 100755
> index 0000000..9ca025f
> --- /dev/null
> +++ b/patches/classpath-0.99/autogen.sh
> @@ -0,0 +1,2 @@
> +#!/bin/bash
> +exec ./autogen.sh
> diff --git a/rules/classpath.in b/rules/classpath.in
> index 16017b2..271a917 100644
> --- a/rules/classpath.in
> +++ b/rules/classpath.in
> @@ -5,6 +5,7 @@ config CLASSPATH
> prompt "classpath"
> select GCCLIBS_GCC_S
> select HOST_SYSTEM_JDK
> + select HOST_GETTEXT
> help
> GNU Classpath, Essential Libraries for Java, is a GNU project to create
> free core class libraries for use with virtual machines and compilers
> --
> 1.9.1
>
>
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
--
Guillermo Rodriguez Garcia
guille.rodriguez@gmail.com