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

Nim fails to find libraries on compile #22369

Open
mrivnak opened this issue Aug 2, 2023 · 1 comment
Open

Nim fails to find libraries on compile #22369

mrivnak opened this issue Aug 2, 2023 · 1 comment

Comments

@mrivnak
Copy link

mrivnak commented Aug 2, 2023

Description

Platform: aarch64, nim compiled from source.nim
Nim has been compiled and installed using the provided scripts from the source tarball.

Upon attempting to compile a program with nim the following error is produced
Error: cannot open '/usr/lib/nim/lib/system.nim'

Seems that nim is looking for libraries in /usr/lib/nim/lib and they are being installed to /usr/lib/nim.
I'm not sure which repo the install script lives in so apologies if this is in the wrong place

Nim Version

Nim Compiler Version 2.0.0 [Linux: arm64]
Compiled at 2023-08-01
Copyright (c) 2006-2023 by Andreas Rumpf

git hash: a488067
active boot switches: -d:release -d:danger

Current Output

No response

Expected Output

No response

Possible Solution

No response

Additional Information

Works correctly with previous release, Nim 1.6.14

@tsoj
Copy link

tsoj commented Sep 4, 2023

I have the same issue on a Raspberry Pi 2 (linux_armv7l).

A workaround is to create a symlink:

cd /usr/lib/nim
ln -s ./ ./lib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants