You are not logged in.
Hi,
I am trying to compile the openj9 jdk from source.
However after running configure, (c)make fails with
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:227 (message):
Could NOT find LibDwarf (missing: LIBDWARF_H_FOUND)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:591 (_FPHSA_FAILURE_MESSAGE)
/home/simon/code/foreign/openj9-openjdk-jdk25/omr/cmake/modules/FindLibDwarf.cmake:143 (find_package_handle_standard_args)
/home/simon/code/foreign/openj9-openjdk-jdk25/omr/ddr/lib/ddr-scanner/CMakeLists.txt:47 (find_package)although libdwarf is installed. I have tried libdwarf and libdwarf-git from the aur. Neither does work.
sudo pacman -Q libdwarf
libdwarf-git 2.1.0.r62.gf1506f63-1Any ideas?
Last edited by dietzi96 (2025-09-04 12:51:23)
Offline
is there a reason you are not using a aur version? https://aur.archlinux.org/packages?K=OpenJ9
while it's out of date (you can maintain it and update it) you can update the package locally and install it via makepkg
the way it's recommended to install packages is native repo > aur > flatpak > the rest meaning if it's not in the main repo check the aur, if not in the aur, upload it to the aur, if it's a flatpak use the flatpak version, if it's not in anything ask for help for making it into the aur/flatpak
also you shouldn't install packages by hand, if you can help it, as it's said in the wiki Use the package manager to install software
If you install things manually you will, sooner or later, forget what you did, forget where you installed to, install conflicting software, install to the wrong locations, etc.
there needs to be a good reason to install a package manually, the package being out of date in the aur/native repo is not one
Offline
Hi,
I want to use version 25 instead of the aur version (24), because 25 will be the next LTS version of java. In my opinion that is a good enough reason to at least try to compile it.
Offline
Creating a package for a software tends to to be the easiest method to get things working on arch.
Especially Clean Chroot building helps to separate build and live environment as well as making it easy to help for others
If you prefer to compile from source without creating a package, just report this post and ask to get this thread moved to programming & scripting subforum.
Note that everyone trying to help will ask for full build output, not some snippet.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
you can change the pkgbuild to point to 25, (which worked for me) instead of compiling it from source
Offline
you can change the pkgbuild to point to 25, (which worked for me) instead of compiling it from source
Which aur PKGBUILD did you use as base for changing the version to 25?
I've tried jdk21-openj9-bin from the aur and it did not work, because the binary (download location) seems not to exist.
Offline
Look at https://github.com/ibmruntimes/semeru25 … /releases/ .
The file you want is probably ibm-semeru-open-jdk_x64_linux_25_36_openj9-0.55.0-m1.tar.gz
Moderator Note :
moving to AUR Issues, Discussion & PKGBUILD Requests
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Thanks, with that file and some tweaks to the PKGBUILD it worked.
Offline