Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716020 - dev-java/icedtea-3.15.0 fails to compile with gcc-9.[23]
Summary: dev-java/icedtea-3.15.0 fails to compile with gcc-9.[23]
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrew John Hughes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-03 11:59 UTC by Helmut Jarausch
Modified: 2020-04-03 21:46 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2020-04-03 11:59:00 UTC
I get the error messages:

/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:226:37: error: left operand of shift expression '(-1 << 13)' is negative [-fpermissive]
  226 |     AO_UNUSED_MBZ             = (-1)<<13, // options bits reserved for future use.
      |                                 ~~~~^~~~
/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:226:39: error: enumerator value for 'AO_UNUSED_MBZ' is not an integer constant
  226 |     AO_UNUSED_MBZ             = (-1)<<13, // options bits reserved for future use.

A fix would be to replace
(-1) << 13
by
(unsigned int)(-1) << 13

but this file doesn't exist after ebuild .. unpack.

My current workaround is to my the change after compilation has failed and
resume compile with  ebuild ... merge
Comment 1 Jonas Stein gentoo-dev 2020-04-03 21:46:31 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