Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8204091

Configure broken on MIPS when uname returns mipsel or mips64el

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: infrastructure
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b17

      Backports

        Description

        From Ao Qi on build-dev (http://mail.openjdk.java.net/pipermail/build-dev/2018-May/022156.html):

        ---
        Hi all,
        I tried to configure jdk/jdk on MIPS, but I failed. The output of configure:
        ...
        checking for pandoc... no
        checking build system type...
        /home/loongson/aoqi/jdk/make/autoconf/build-aux/config.guess: unable
        to guess system type
        ---

        And:

        ---
        Hi Erik,

        Thanks for your comments. I made a new patch:

        $ hg diff
        diff -r 31361382634b make/autoconf/build-aux/config.guess
        --- a/make/autoconf/build-aux/config.guess Tue May 22 10:08:04 2018 -0700
        +++ b/make/autoconf/build-aux/config.guess Thu May 24 09:07:17 2018 +0800
        @@ -86,6 +86,17 @@
           fi
         fi

        +# Test and fix little endian MIPS.
        +if [ "x$OUT" = x ]; then
        + if [ `uname -s` = Linux ]; then
        + if [ `uname -m` = mipsel ]; then
        + OUT=mipsel-unknown-linux-gnu
        + elif [ `uname -m` = mips64el ]; then
        + OUT=mips64el-unknown-linux-gnu
        + fi
        + fi
        +fi
        +
         # Test and fix cpu on Macosx when C preprocessor is not on the path
         echo $OUT | grep i386-apple-darwin > /dev/null 2> /dev/null
         if test $? = 0; then
        ---

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                erikj Erik Joelsson
                Reporter:
                erikj Erik Joelsson
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: