[OpenJDK 2D-Dev] RFR: Bug Pending: Build fails to compile jchuff.c

Adam Farley8 adam.farley at uk.ibm.com
Thu Feb 1 12:00:45 UTC 2018

> On 02/01/2018 12:36 PM, Adam Farley8 wrote:
>> After doing some experimenting, I've discovered the problem isn't 
limited to
>> SLES, or gcc 4.8.5, or zLinux.
>> (...) 
>> Thoughts?
> I think the problem is more that if you are trying to silence warnings,
> you will end up being busy for a very long time since there are simply
> too many possible configurations out there  [1].

Unfortunately it's not just a warning, it's a build-killer.

Across those platforms, in those configurations, this is the only warning 
which causes the build to fail. Adding array-bounds to 
suppresses this warning-turned-error, and the builds then run and pass.

> For this reason, both Debian and openSUSE/SLE [2] build OpenJDK with the
> configure parameter "--disable-warnings-as-errors".

--disable-warnings-as-errors (in the configure step) can work around this 
but then we need to add it to the relevant documentation, and it 
complicates the 
build process a little bit more from the user's POV. In my world, "bash 
should be enough.

I like to keep things simple. :)

- Adam

> Adrian
>> [1] 
>> [2] 

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU

More information about the build-dev mailing list