Skip to content

Add new conf-dwarfutils package#29202

Open
ajbt200128 wants to merge 4 commits intoocaml:masterfrom
ajbt200128:master
Open

Add new conf-dwarfutils package#29202
ajbt200128 wants to merge 4 commits intoocaml:masterfrom
ajbt200128:master

Conversation

@ajbt200128
Copy link

Hello all!
This just adds a simple conf-dwarfutils package, for pulling in the dwarfutils suite of tools.

Comment on lines +14 to +15
["libdwarf-dev" "dwarfdump" "libdwarf1"] {os-family = "debian"}
["libdwarf-dev" "dwarfdump" "libdwarf1"] {os-family = "ubuntu"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
["libdwarf-dev" "dwarfdump" "libdwarf1"] {os-family = "debian"}
["libdwarf-dev" "dwarfdump" "libdwarf1"] {os-family = "ubuntu"}
["libdwarf-dev" "dwarfdump" "libdwarf1" "zlib1g-dev"] {os-family = "debian"}
["libdwarf-dev" "dwarfdump" "libdwarf1" "zlib1g-dev"] {os-family = "ubuntu"}

A suggestion to address some of the Debian and Ubuntu failures:
https://opam.ci.ocaml.org/github/ocaml/opam-repository/commit/4f48a01f4520ed3840d1d67ec392d24869f36ff1/variant/compilers,4.08,conf-dwarfutils.1

#=== ERROR while compiling conf-dwarfutils.1 ==================================#
# context              2.5.0 | linux/x86_64 | ocaml-base-compiler.4.08.1 | pinned
# path                 ~/.opam/4.08/.opam-switch/build/conf-dwarfutils.1
# command              ~/.opam/opam-init/hooks/sandbox.sh build pkg-config --print-errors --exists libdwarf
# exit-code            1
# env-file             ~/.opam/log/conf-dwarfutils-7-3b0b41.env
# output-file          ~/.opam/log/conf-dwarfutils-7-3b0b41.out
### output ###
# Package zlib was not found in the pkg-config search path.
# Perhaps you should add the directory containing `zlib.pc'
# to the PKG_CONFIG_PATH environment variable
# Package 'zlib', required by 'libdwarf', not found
# Package 'libzstd', required by 'libdwarf', not found

There are other ones too, indicating that on some setups the right pkg_config path is not set up:
https://opam.ci.ocaml.org/github/ocaml/opam-repository/commit/4f48a01f4520ed3840d1d67ec392d24869f36ff1/variant/distributions,ubuntu-25.04-ocaml-4.14,conf-dwarfutils.1

#=== ERROR while compiling conf-dwarfutils.1 ==================================#
# context              2.5.0 | linux/x86_64 | ocaml-base-compiler.4.14.2 | pinned
# path                 ~/.opam/4.14/.opam-switch/build/conf-dwarfutils.1
# command              ~/.opam/opam-init/hooks/sandbox.sh build pkg-config --print-errors --exists libdwarf
# exit-code            1
# env-file             ~/.opam/log/conf-dwarfutils-8-edc1b7.env
# output-file          ~/.opam/log/conf-dwarfutils-8-edc1b7.out
### output ###
# Package libdwarf was not found in the pkg-config search path.
# Perhaps you should add the directory containing `libdwarf.pc'
# to the PKG_CONFIG_PATH environment variable
# Package 'libdwarf', required by 'virtual:world', not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants