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

Unable to build openjdk with --with-harfbuzz=system

XMLWordPrintable

    • 2d
    • b03

      Configure jdk with system harfbuzz:

      sh configure --with-harfbuzz=system --with-boot-jdk=~/git/jdk22u/build/linux-x86_64-server-release/images/jdk/

      The build fails with the following errors:
      ---
      $ make images
      Building target 'images' in configuration 'linux-x86_64-server-release'
      Updating support/modules_libs/java.desktop/libfontmanager.so due to makefile changes
      In file included from /home/vladimirp/git/jdk/src/java.desktop/share/native/libfontmanager/scriptMapping.c:26:
      /home/vladimirp/git/jdk/src/java.desktop/share/native/libfontmanager/scriptMapping.h:26:10: fatal error: hb.h: No such file or directory
         26 | #include <hb.h>
            | ^~~~~~
      compilation terminated.
      /home/vladimirp/git/jdk/src/java.desktop/share/native/libfontmanager/hb-jdk-font-p.cc:26:10: fatal error: hb.h: No such file or directory
         26 | #include "hb.h"
            | ^~~~~~
      compilation terminated.
      gmake[3]: *** [lib/ClientLibraries.gmk:372: /home/vladimirp/git/jdk/build/linux-x86_64-server-release/support/native/java.desktop/libfontmanager/scriptMapping.o] Error 1
      gmake[3]: *** Waiting for unfinished jobs....
      gmake[3]: *** [lib/ClientLibraries.gmk:372: /home/vladimirp/git/jdk/build/linux-x86_64-server-release/support/native/java.desktop/libfontmanager/hb-jdk-font-p.o] Error 1
      /home/vladimirp/git/jdk/src/java.desktop/share/native/libfontmanager/hb-jdk-font.cc:29:10: fatal error: hb.h: No such file or directory
         29 | #include "hb.h"
            | ^~~~~~
      compilation terminated.
      /home/vladimirp/git/jdk/src/java.desktop/share/native/libfontmanager/HBShaper_Panama.c:27:10: fatal error: hb.h: No such file or directory
         27 | #include "hb.h"
            | ^~~~~~
      compilation terminated.
      gmake[3]: *** [lib/ClientLibraries.gmk:372: /home/vladimirp/git/jdk/build/linux-x86_64-server-release/support/native/java.desktop/libfontmanager/hb-jdk-font.o] Error 1
      gmake[3]: *** [lib/ClientLibraries.gmk:372: /home/vladimirp/git/jdk/build/linux-x86_64-server-release/support/native/java.desktop/libfontmanager/HBShaper_Panama.o] Error 1
      /home/vladimirp/git/jdk/src/java.desktop/share/native/libfontmanager/HBShaper.c:28:10: fatal error: hb.h: No such file or directory
         28 | #include "hb.h"
            | ^~~~~~
      compilation terminated.
      gmake[3]: *** [lib/ClientLibraries.gmk:372: /home/vladimirp/git/jdk/build/linux-x86_64-server-release/support/native/java.desktop/libfontmanager/HBShaper.o] Error 1
      gmake[2]: *** [make/Main.gmk:199: java.desktop-libs] Error 2

      ERROR: Build failed for target 'images' in configuration 'linux-x86_64-server-release' (exit code 2)

      === Output from failing command(s) repeated here ===
      * For target support_native_java.desktop_libfontmanager_HBShaper.o:
      /home/vladimirp/git/jdk/src/java.desktop/share/native/libfontmanager/HBShaper.c:28:10: fatal error: hb.h: No such file or directory
         28 | #include "hb.h"
            | ^~~~~~
      compilation terminated.
      * For target support_native_java.desktop_libfontmanager_HBShaper_Panama.o:
      /home/vladimirp/git/jdk/src/java.desktop/share/native/libfontmanager/HBShaper_Panama.c:27:10: fatal error: hb.h: No such file or directory
         27 | #include "hb.h"
            | ^~~~~~
      compilation terminated.
      * For target support_native_java.desktop_libfontmanager_hb-jdk-font-p.o:
      /home/vladimirp/git/jdk/src/java.desktop/share/native/libfontmanager/hb-jdk-font-p.cc:26:10: fatal error: hb.h: No such file or directory
         26 | #include "hb.h"
            | ^~~~~~
      compilation terminated.
      * For target support_native_java.desktop_libfontmanager_hb-jdk-font.o:
      /home/vladimirp/git/jdk/src/java.desktop/share/native/libfontmanager/hb-jdk-font.cc:29:10: fatal error: hb.h: No such file or directory
         29 | #include "hb.h"
            | ^~~~~~
      compilation terminated.
      * For target support_native_java.desktop_libfontmanager_scriptMapping.o:
      In file included from /home/vladimirp/git/jdk/src/java.desktop/share/native/libfontmanager/scriptMapping.c:26:
      /home/vladimirp/git/jdk/src/java.desktop/share/native/libfontmanager/scriptMapping.h:26:10: fatal error: hb.h: No such file or directory
         26 | #include <hb.h>
            | ^~~~~~
      compilation terminated.

      * All command lines available in /home/vladimirp/git/jdk/build/linux-x86_64-server-release/make-support/failure-logs.
      === End of repeated output ===

      No indication of failed target found.
      HELP: Try searching the build log for '] Error'.
      HELP: Run 'make doctor' to diagnose build problems.

      make[1]: *** [/home/vladimirp/git/jdk/make/Init.gmk:323: main] Error 2
      make: *** [/home/vladimirp/git/jdk/make/Init.gmk:189: images] Error 2
      ---

      The attached patch by Matthias Klose <doko@ubuntu.com> was used to resolve the issue.

            prr Philip Race
            vpetko Vladimir Petko
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: