RFR: [8u] Build failed on Ubuntu 18.04 due to deprecated-declarations warnings

Jie Fu fujie at loongson.cn
Wed Mar 20 03:40:11 UTC 2019


On 2019/3/19 下午11:09, Martin Buchholz wrote:

> Probably it's because glibc deprecated readdir, and we don't have 
> --disable-warnings-as-errors by default?
Yes.
>
> (I think warnings should not be errors except as opt-in by openjdk 
> developers/maintainers)
>
I agree, especially for deprecated-declarations warnings.
> On Tue, Mar 19, 2019 at 7:47 AM Andrew Haley <aph at redhat.com 
> <mailto:aph at redhat.com>> wrote:
>
>     On 3/19/19 12:25 PM, Jie Fu wrote:
>     > To fix build failures caused by deprecated-declarations
>     warnings, can we
>     > make this change to jdk8u?
>
>     This is very GCC-version dependent. We really should probe at
>     configure time for
>     these options.
>
>     -- 
>     Andrew Haley
>     Java Platform Lead Engineer
>     Red Hat UK Ltd. <https://www.redhat.com>
>     EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
>



More information about the build-dev mailing list