Summary: | dev-java/icedtea-3.15.0 fails to compile with gcc-9.[23] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Helmut Jarausch <jarausch> |
Component: | Current packages | Assignee: | Andrew John Hughes <gnu_andrew> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | gyakovlev, java, jstein, proxy-maint, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Output of emerge --info dev-java/icedtea
Contents of /var/tmp/portage/dev-java/icedtea-3.19.0/temp/build.log |
Description
Helmut Jarausch
2020-04-03 11:59:00 UTC
Thank you for the report. We need to have all information at hand before ticket assignment. That is why I ask you to * attach the logs and * paste the emerge info as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket I've been getting this error, too, and for a long time. It's still present in dev-java/icedtea-3.19.0. It happens with GCC 9.x and GCC 10.x and with near certainty all future versions of GCC as well. In /var/tmp/Big_Tmp/portage/dev-java/icedtea-3.15.0/work/icedtea-3.15.0/openjdk-boot/jdk/src/share/native/com/sun/java/util/jar/pack/constants.h at line 226, a constant for unused bits is declared by left-shifting a negative number: AO_UNUSED_MBZ = (-1)<<13, It can be fixed by starting the emerge and ninja'ing the following change in place in the affected line after the source has been unpacked: AO_UNUSED_MBZ = static_cast<unsigned int>(-1)<<13, As far as I can tell, the error is independent of any use flags or such and should happen to anyone running GCC 9.x or newer and emerge the icedtea package (rather than the icedtea-bin package or oracle java instead, which I suspect are the more popular choices). I'll attach my build info and logs in a moment. Created attachment 744159 [details]
Output of emerge --info dev-java/icedtea
Created attachment 744162 [details]
Contents of /var/tmp/portage/dev-java/icedtea-3.19.0/temp/build.log
|