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

Configure broken on MIPS when uname returns mipsel or mips64el

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 11
    • infrastructure
    • None
    • b17

        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
        ---

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

                Created:
                Updated:
                Resolved: