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

Configure broken on aarch64

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 11
    • 11
    • infrastructure
    • None
    • b04
    • aarch64

      It seems that JDK-8198724 "Refactor FLAGS handling in configure" broke the aarch64 build.

      The new configure scheme tries to pass the argument "-m64" to the gcc compiler, but that is an x86-only flag.

      configure:35228: checking whether the C compiler works
      configure:35250: /usr/bin/gcc -m64 -m64 conftest.c >&5
      gcc: error: unrecognized command line option '-m64'
      gcc: error: unrecognized command line option '-m64'
      configure:35254: $? = 1
      configure:35292: result: no
      configure: failed program was:
      | /* confdefs.h */
      | #define PACKAGE_NAME "OpenJDK"
      | #define PACKAGE_TARNAME "openjdk"
      | #define PACKAGE_VERSION "jdk9"
      | #define PACKAGE_STRING "OpenJDK jdk9"
      | #define PACKAGE_BUGREPORT "build-dev@openjdk.java.net"
      | #define PACKAGE_URL "http://openjdk.java.net"
      | /* end confdefs.h. */
      |
      | int
      | main ()
      | {
      |
      | ;
      | return 0;
      | }
      configure:35297: error: in `/home/dwhite/clean-jdk11-ws':
      configure:35299: error: C compiler cannot create executables

            ihse Magnus Ihse Bursie
            drwhite Derek White
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: