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

crystal interpreter cannot find librt #12036

Closed
1player opened this issue Apr 29, 2022 · 0 comments · Fixed by #12038
Closed

crystal interpreter cannot find librt #12036

1player opened this issue Apr 29, 2022 · 0 comments · Fixed by #12038
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler:interpreter

Comments

@1player
Copy link
Contributor

1player commented Apr 29, 2022

Bug Report

crystal i compiled from master fails on a Fedora 36 toolbox with:

cannot find -lrt (/usr/lib64/crystal/librt.so: cannot open shared object file: No such file or directory)
Linker arguments: -L/usr/lib64/crystal -levent -lrt -ldl
Search path: /usr/lib64/llvm13/lib:/usr/lib64/pipewire-0.3/jack/:/lib64:/usr/lib64:/lib:/usr/lib:/usr/lib64/crystal (Crystal::Loader::LoadError)

Similar to #11792 but a different library, which is actually present on the system:

[sph@toolbox crystal]$ find /usr/lib64 -name "librt.*"
/usr/lib64/librt.so.1
/usr/lib64/librt.a
@1player 1player added the kind:bug A bug in the code. Does not apply to documentation, specs, etc. label Apr 29, 2022
joebonrichie pushed a commit to solus-packages/crystal that referenced this issue Aug 14, 2023
Summary:
R4308 was lucky enough to have been created 4 years ago, but has languished barren.

A previous attempt at bootstrapping was D1093. The task is much easier now, with no patching required.

The interpreter can be enabled when we update to v1.5.0 which will include a fix for [an issue caused by glibc 2.34](crystal-lang/crystal#12036).

Resolves T2215.

Test Plan: All specs pass. Also tested `crystal eval` and compiling a simple `.cr` file.

Reviewers: #triage_team, Girtablulu

Reviewed By: #triage_team, Girtablulu

Subscribers: algent, Girtablulu

Maniphest Tasks: T2215

Differential Revision: https://dev.getsol.us/D13220
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler:interpreter
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants