issues building jdk8u/jdk8u20
David Holmes
david.holmes at oracle.com
Tue Jul 8 12:07:49 UTC 2014
On 8/07/2014 5:47 AM, Matthias Klose wrote:
> Hi,
>
> I got the advice to try the jdk8u-dev ML first, so here we go:
>
> I'm trying to build packages for Debian/Ubuntu from the
>
> http://hg.openjdk.java.net/jdk8u/jdk8u20/
>
> archive. There are a few issues I can't figure out:
>
> - linux distros usually have their own standards about what
> to do about debug information. so what I want to do is to
> ask openjdk not do to anything, and do the stripping
> with the distro tools. this doesn't seem to work.
>
> Configuring with the environment vars
>
> DEBUG_BINARIES=true
> FULL_DEBUG_SYMBOLS=0
> STRIP_POLICY=none
> ALT_OBJCOPY=/does_not_exist
>
> and --disable-zip-debug-info, I still get .debuginfo files.
> Is there any way how to disable this stripping at all?
> Is there any documentation what debug information is needed
> for a working OpenJDK 8 build?
Omair already pointed you to a number of threads discussing this aspect
so I won't go into it further.
> - The toplevel configury seem to support --with-extra-*flags,
> however the subprojects don't pick up these values. This
> is needed for distros to build with flags to default to
> hardening issues.
The --with-extra-*flags are only used by hotspot and JDK. They are
primarily intended to pass through compiler flags when doing
cross-compilation. They are not intended as a general mechanism for
passing additional flags - most of which is internalized in the
makefiles (either directly for hotspot, or via what configure sets up).
> - The demos build fails to build with the hardening defaults
> used in Debian and Ubuntu. Sure, you don't see this, because
> the extra flags are ignored.
>
> There are more issues, however I consider these above preventing integration of
> OpenJDK-8 into Debian/Ubuntu. If you need any bug tracker issues, please let me
> know how to submit these.
>
> Another issue are the assumptions being made about cross builds, and selecting
> the appropriate build tools. I'd like to discuss these with somebody having
> experience with cross builds.
That would be me I guess. :) The cross-compilation support was defined
based on our own internal needs for doing ARM and PPC builds, and how we
previously achieved that. It is far from general purpose. There is
already some description of it in the README-builds.html.
Cheers,
David
> thanks, Matthias
>
More information about the distro-pkg-dev
mailing list