You are not logged in.

#1 2025-08-30 22:20:25

dietzi96
Member
Registered: 2015-07-04
Posts: 36
Website

[SOLVED] libdwarf not found when compiling openj9-openjdk v25

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

Any ideas?

Last edited by dietzi96 (2025-09-04 12:51:23)

Offline

#2 2025-08-31 06:26:04

killertofus
Member
Registered: 2025-02-10
Posts: 61

Re: [SOLVED] libdwarf not found when compiling openj9-openjdk v25

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

Online

#3 2025-09-02 15:26:46

dietzi96
Member
Registered: 2015-07-04
Posts: 36
Website

Re: [SOLVED] libdwarf not found when compiling openj9-openjdk v25

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

#4 2025-09-02 18:17:24

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,364

Re: [SOLVED] libdwarf not found when compiling openj9-openjdk v25

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

#5 2025-09-02 20:33:04

killertofus
Member
Registered: 2025-02-10
Posts: 61

Re: [SOLVED] libdwarf not found when compiling openj9-openjdk v25

you can change the pkgbuild to point to 25, (which worked for me) instead of compiling it from source

Online

#6 2025-09-03 19:14:37

dietzi96
Member
Registered: 2015-07-04
Posts: 36
Website

Re: [SOLVED] libdwarf not found when compiling openj9-openjdk v25

killertofus wrote:

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

#7 2025-09-04 09:28:54

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,364

Re: [SOLVED] libdwarf not found when compiling openj9-openjdk v25

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

#8 2025-09-04 12:50:06

dietzi96
Member
Registered: 2015-07-04
Posts: 36
Website

Re: [SOLVED] libdwarf not found when compiling openj9-openjdk v25

Thanks, with that file and some tweaks to the PKGBUILD it worked.

Offline

Board footer

Powered by FluxBB