patches to make jdk8 build on NetBSD

Kurt Miller kurt at intricatesoftware.com
Mon May 9 18:41:24 UTC 2016


On Mon, 2016-05-09 at 08:57 -0400, Christos Zoulas wrote:
> On May 9,  7:22am, kurt at intricatesoftware.com (Kurt Miller) wrote:
> -- Subject: Re: patches to make jdk8 build on NetBSD
> 
> | Hi Christos,
> | 
> | Do you know what version of gcc -gstabs broke? The last time I checked
> | -gstabs was still needed on OpenBSD due to the blowup in libjvm.so size.
> | I think the the removal of -gstabs should be conditional on gcc version.
> 
> I am using gcc-5.3. The exact error is:
> 
> cc1plus: error: the "stabs" debug format cannot be used with pre-compiled
> headers [-Werror=deprecated]
> 
> I see the same error string in the gcc-4.8.3 sources I have around.
> I don't have anything older... Searching through google for that error
> message, it appears that the jdk build broke with gcc-4.8.

Ok. I found the same results as you. Could you use the following
conditional to use -g for gcc >= 4.8 instead of removing these sections?

  ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 8 \) \))" "1"
    # GCC >= 4.8

Regards,
-Kurt



More information about the bsd-port-dev mailing list