[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 
DISABLED_WARNINGS_gcc
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 
problem, 
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 
./configure"
should be enough.

I like to keep things simple. :)

- Adam

>
> Adrian
>
>> [1] 
https://urldefense.proofpoint.com/v2/url?u=http-3A__mail.openjdk.java.net_pipermail_hotspot-2Ddev_2018-2DJanuary_029754.html&d=DwICaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=P5m8KWUXJf-CeVJc0hDGD9AQ2LkcXDC0PMV9ntVw5Ho&m=DL2no3G3wg34U0Tl9cbhAcWOQVVU4mv-0EiiF2QNh5U&s=0uzfk9CUqR2GtWgwtbQFBs7zFHnAs6hwM-LGYDMdeHs&e=
>> [2] 
https://urldefense.proofpoint.com/v2/url?u=https-3A__build.opensuse.org_package_view-5Ffile_openSUSE-3AFactory_java-2D10-2Dopenjdk_java-2D10-2Dopenjdk.spec-3Fexpand-3D1&d=DwICaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=P5m8KWUXJf-CeVJc0hDGD9AQ2LkcXDC0PMV9ntVw5Ho&m=DL2no3G3wg34U0Tl9cbhAcWOQVVU4mv-0EiiF2QNh5U&s=9NoPxdwrV4dfjgB4SpDpLgLApTLCTURy6xwVUU5LS6k&e=
>

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


More information about the build-dev mailing list