Discussion:
[CAUTION] RFR : 8211146 : fix problematic elif-tests after recent gcc warning changes Werror=undef
Langer, Christoph
2018-09-26 09:48:14 UTC
Permalink
Hi Matthias,

looks good (and trivial). Ccing serviceability-dev because of change in libjdwp.

Best regards
Christoph

From: nio-dev <nio-dev-***@openjdk.java.net> On Behalf Of Baesken, Matthias
Sent: Mittwoch, 26. September 2018 11:25
To: 'build-***@openjdk.java.net' <build-***@openjdk.java.net>; net-dev <net-***@openjdk.java.net>; nio-***@openjdk.java.net
Cc: Lindenmaier, Goetz <***@sap.com>; Schmidt, Lutz <***@sap.com>
Subject: [CAUTION] RFR : 8211146 : fix problematic elif-tests after recent gcc warning changes Werror=undef

Hello, please review this small build fix .
After the recent changes to the gcc compile flags with 8211029 , most of our Linux builds stopped working .

Error :

=== Output from failing command(s) repeated here ===
* For target support_native_java.base_libnet_DatagramPacket.o:
In file included from /OpenJDK/8210319/jdk/src/java.base/share/native/libnet/net_util.h:31:0,
from /OpenJDK/8210319/jdk/src/java.base/share/native/libnet/DatagramPacket.c:27:
/OpenJDK/8210319/jdk/src/java.base/unix/native/libnet/net_util_md.h:50:7: error: "__solaris__" is not defined [-Werror=undef]
#elif __solaris__
^

After looking into it, it seems that the jdk/src/java.base/unix/native/libnet/net_util_md.h compile error is only triggered on older Linux OS (e.g. SLES11).
Probably that's why it was not seen at Oracle after puhsing after 8211029 .

Some greps showed me a number of similar problematic #elif-checks for OS, I adjusted them too .


Bug / webrev :

https://bugs.openjdk.java.net/browse/JDK-8211146


http://cr.openjdk.java.net/~mbaesken/webrevs/8211146.0/


Thanks, Matthias
David Holmes
2018-09-26 11:41:23 UTC
Permalink
That all seems fine to me.

Thanks for fixing.

David
Post by Langer, Christoph
Hi Matthias,
looks good (and trivial). Ccing serviceability-dev because of change in libjdwp.
Best regards
Christoph
*Baesken, Matthias
*Sent:* Mittwoch, 26. September 2018 11:25
*Subject:* [CAUTION] RFR : 8211146 : fix problematic elif-tests after
recent gcc warning changes Werror=undef
Hello, please review this small build fix .
After the recent  changes  to  the gcc compile flags   with  8211029
 ,  most of our  Linux builds stopped working .
=== Output from failing command(s) repeated here ===
In file included from
/OpenJDK/8210319/jdk/src/java.base/share/native/libnet/net_util.h:31:0,
                from
"__solaris__" is not defined [-Werror=undef]
#elif __solaris__
       ^
After looking into it,  it seems  that  the
jdk/src/java.base/unix/native/libnet/net_util_md.h    compile error is
only triggered on older Linux OS  (e.g. SLES11).
Probably that’s why it was not seen at Oracle  after  puhsing  after
8211029   .
Some greps  showed me a number of similar problematic  #elif-checks for
OS, I adjusted them too .
https://bugs.openjdk.java.net/browse/JDK-8211146
http://cr.openjdk.java.net/~mbaesken/webrevs/8211146.0/
<http://cr.openjdk.java.net/%7Embaesken/webrevs/8211146.0/>
Thanks, Matthias
s***@oracle.com
2018-10-03 04:50:45 UTC
Permalink
+1 (if you still need it)

Thanks,
Serguei
Post by David Holmes
That all seems fine to me.
Thanks for fixing.
David
Post by Langer, Christoph
Hi Matthias,
looks good (and trivial). Ccing serviceability-dev because of change in libjdwp.
Best regards
Christoph
*Baesken, Matthias
*Sent:* Mittwoch, 26. September 2018 11:25
*Subject:* [CAUTION] RFR : 8211146 : fix problematic elif-tests after
recent gcc warning changes Werror=undef
Hello, please review this small build fix .
After the recent  changes  to  the gcc compile flags   with 8211029  
  ,  most of our  Linux builds stopped working .
=== Output from failing command(s) repeated here ===
In file included from
/OpenJDK/8210319/jdk/src/java.base/share/native/libnet/net_util.h:31:0,
                 from
error: "__solaris__" is not defined [-Werror=undef]
#elif __solaris__
        ^
After looking into it,  it seems  that  the
jdk/src/java.base/unix/native/libnet/net_util_md.h    compile error
is only triggered on older Linux OS  (e.g. SLES11).
Probably that’s why it was not seen at Oracle  after  puhsing after
8211029   .
Some greps  showed me a number of similar problematic #elif-checks
for OS, I adjusted them too .
https://bugs.openjdk.java.net/browse/JDK-8211146
http://cr.openjdk.java.net/~mbaesken/webrevs/8211146.0/
<http://cr.openjdk.java.net/%7Embaesken/webrevs/8211146.0/>
Thanks, Matthias
Loading...