JDK9 does not compile on Linux with GCC 6.1 because left-shifting a negative number has undefined behavior

XMLWordPrintable

    • b127
    • linux

        I have a fully updated copy of Arch Linux and these are the commands I'm using to build the JDK:

        $ hg clone http://hg.openjdk.java.net/jdk9/hs/ jdk9-hs
        $ cd jdk9-hs
        $ sh get_source.sh
        $ bash configure
        $ make

        The output from `make` is attached. As you can see, there are multiple failures. This bug report is specifically for the failures caused by left-shifting a negative number.

              Assignee:
              Alex Henrie
              Reporter:
              Alex Henrie
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: