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

File src/java.base/share/native/launcher/main.c link error undefined reference to `JLI_InitArgProcessing'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 24
    • infrastructure
    • 24
    • generic
    • linux

      The configure and make command:
      bash configure --with-jobs=128 --prefix=/home/yansendao/git/jdk/install-release --verbose --with-debug-level=release --enable-unlimited-crypto --with-vendor-name=yansendao --with-vendor-url=https://github.com/sendaoYan --with-vendor-bug-url=mailto:yansendao.ysd@alibaba-inc.com --with-vendor-vm-bug-url=mailto:yansendao.ysd@alibaba-inc.com --with-jvm-variants=server --with-boot-jdk=/home/yansendao/software/jdk/24/jdk-repo-binary --with-gtest=/home/yansendao/git/googletest-v1.14.x --with-jtreg=/home/yansendao/software/jdk/jtreg-7.4 --with-jmh=build/jmh/jars --with-version-opt=e023addf --with-zlib=system --enable-ccache
      time make all LOG=debug &> build/make.log

      The build log snippet:
      /opt/rh/devtoolset-10/root/usr/libexec/gcc/aarch64-redhat-linux/10/ld: /tmp/tone/run/jtreg/jdk-repo/build/linux-aarch64-server-release/support/static-native/launcher/main.o: in function `main':
      /tmp/tone/run/jtreg/jdk-repo/src/java.base/share/native/launcher/main.c:101: undefined reference to `JLI_InitArgProcessing'
      /opt/rh/devtoolset-10/root/usr/libexec/gcc/aarch64-redhat-linux/10/ld: /tmp/tone/run/jtreg/jdk-repo/src/java.base/share/native/launcher/main.c:146: undefined reference to `JLI_List_new'
      /opt/rh/devtoolset-10/root/usr/libexec/gcc/aarch64-redhat-linux/10/ld: /tmp/tone/run/jtreg/jdk-repo/src/java.base/share/native/launcher/main.c:150: undefined reference to `JLI_StringDup'
      /opt/rh/devtoolset-10/root/usr/libexec/gcc/aarch64-redhat-linux/10/ld: /tmp/tone/run/jtreg/jdk-repo/src/java.base/share/native/launcher/main.c:150: undefined reference to `JLI_List_add'
      /opt/rh/devtoolset-10/root/usr/libexec/gcc/aarch64-redhat-linux/10/ld: /tmp/tone/run/jtreg/jdk-repo/src/java.base/share/native/launcher/main.c:152: undefined reference to `JLI_AddArgsFromEnvVar'
      /opt/rh/devtoolset-10/root/usr/libexec/gcc/aarch64-redhat-linux/10/ld: /tmp/tone/run/jtreg/jdk-repo/src/java.base/share/native/launcher/main.c:164: undefined reference to `JLI_PreprocessArg'
      /opt/rh/devtoolset-10/root/usr/libexec/gcc/aarch64-redhat-linux/10/ld: /tmp/tone/run/jtreg/jdk-repo/src/java.base/share/native/launcher/main.c:171: undefined reference to `JLI_List_add'
      /opt/rh/devtoolset-10/root/usr/libexec/gcc/aarch64-redhat-linux/10/ld: /tmp/tone/run/jtreg/jdk-repo/src/java.base/share/native/launcher/main.c:174: undefined reference to `JLI_MemFree'
      /opt/rh/devtoolset-10/root/usr/libexec/gcc/aarch64-redhat-linux/10/ld: /tmp/tone/run/jtreg/jdk-repo/src/java.base/share/native/launcher/main.c:175: undefined reference to `JLI_MemFree'
      /opt/rh/devtoolset-10/root/usr/libexec/gcc/aarch64-redhat-linux/10/ld: /tmp/tone/run/jtreg/jdk-repo/src/java.base/share/native/launcher/main.c:180: undefined reference to `JLI_List_add'
      /opt/rh/devtoolset-10/root/usr/libexec/gcc/aarch64-redhat-linux/10/ld: /tmp/tone/run/jtreg/jdk-repo/src/java.base/share/native/launcher/main.c:184: undefined reference to `JLI_Launch'
      /opt/rh/devtoolset-10/root/usr/libexec/gcc/aarch64-redhat-linux/10/ld: /tmp/tone/run/jtreg/jdk-repo/src/java.base/share/native/launcher/main.c:166: undefined reference to `JLI_StringDup'
      /opt/rh/devtoolset-10/root/usr/libexec/gcc/aarch64-redhat-linux/10/ld: /tmp/tone/run/jtreg/jdk-repo/src/java.base/share/native/launcher/main.c:166: undefined reference to `JLI_List_add'
      /opt/rh/devtoolset-10/root/usr/libexec/gcc/aarch64-redhat-linux/10/ld: /tmp/tone/run/jtreg/jdk-repo/src/java.base/share/native/launcher/main.c:158: undefined reference to `JLI_ReportMessage'
      collect2: error: ld returned 1 exit status

            Unassigned Unassigned
            syan Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: