Skip to content

c2rust-refactor depends on librustc_driver outside linker path #349

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

Closed
chrysn opened this issue Sep 2, 2021 · 1 comment
Closed

c2rust-refactor depends on librustc_driver outside linker path #349

chrysn opened this issue Sep 2, 2021 · 1 comment
Labels
refactorer This issue relates to the refactoring tool wontfix This will not be worked on

Comments

@chrysn
Copy link
Contributor

chrysn commented Sep 2, 2021

When c2rust is built as

$ cargo install --locked --root /usr --path ./c2rust

then the installed c2rust-refactor tool is not generally usable:

$ c2rust-refactor 
c2rust-refactor: error while loading shared libraries: librustc_driver-0f85f1014fece72d.so: cannot open shared object file: No such file or directory

It can still be executed by reaching into the build toolchain's support files for as long as they are available:

$ LD_LIBRARY_PATH=~/.rustup/toolchains/nightly-2019-12-05-x86_64-unknown-linux-gnu/lib/ c2rust-refactor
error: The following required arguments were not provided:
...

I don't understand the build system well enough to make an informed recommendation (neither do I use the refactor tool, so it's more of a curious observation from exploring #326); posting here in case anyone has a quick idea, and otherwise just to document the workaround.

@kkysen kkysen changed the title c2rust-refactor depends on librustc_driver outside linker path c2rust-refactor depends on librustc_driver outside linker path Jun 29, 2022
@kkysen kkysen added wontfix This will not be worked on refactorer This issue relates to the refactoring tool labels Jun 29, 2022
@kkysen
Copy link
Contributor

kkysen commented Jun 29, 2022

Closing as c2rust-refactor in its current form is no longer being developed.

@kkysen kkysen closed this as completed Jun 29, 2022
@kkysen kkysen closed this as not planned Won't fix, can't repro, duplicate, stale Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactorer This issue relates to the refactoring tool wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants