Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug info file gets removed #453

Open
chrismgrayftsinc opened this issue Aug 29, 2024 · 1 comment
Open

debug info file gets removed #453

chrismgrayftsinc opened this issue Aug 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@chrismgrayftsinc
Copy link
Contributor

After compiling a native image in debug mode, the .debug file is not kept in bazel-out/k8-dbg/bin. This leads gdb to report that no debug symbols are found.

However, running the command line printed when using the -s flag does retain the .debug file, so likely the .debug file is not being reported to bazel as an output and that causes bazel to remove it.

@chrismgrayftsinc
Copy link
Contributor Author

My setup:

bazel_dep(name = "rules_graalvm", version = "0.11.2")
archive_override(
    module_name = "rules_graalvm",
    integrity = "sha256-PvLxWDpISdAyCaQ7C1B/FyKZwwReWFtv+nFEorwSrhg=",
    strip_prefix = "rules_graalvm-0.11.2",
    urls = ["https://github.com/sgammon/rules_graalvm/releases/download/v0.11.2/rules_graalvm-0.11.2.zip"],
)

gvm = use_extension("@rules_graalvm//:extensions.bzl", "graalvm")

gvm.graalvm(
    name = "graalvm",
    version = "21.0.2",  # gvm sdk version format like `24.x.x` also supported
    distribution = "ce",  # `oracle`, `ce`, or `community`
    java_version = "21",  # `17`, `20`, `21`, or `22` as supported by the version provided
)
use_repo(gvm, "graalvm")
register_toolchains("@graalvm//:jvm")
register_toolchains("@graalvm//:sdk")

@sgammon sgammon added bug Something isn't working feature Mainline feature work labels Sep 19, 2024
@sgammon sgammon removed the feature Mainline feature work label Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants