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

dub run drepl error #70

Open
alexfalkowski opened this issue Jun 14, 2018 · 5 comments
Open

dub run drepl error #70

alexfalkowski opened this issue Jun 14, 2018 · 5 comments

Comments

@alexfalkowski
Copy link

λ  languages/d/playground arf/dpl ✓ dub fetch drepl
Fetching drepl 0.2.0...
Please note that you need to use `dub run <pkgname>` or add it to dependencies of your package to actually use/run it. dub does not do actual installation of packages outside of its own ecosystem.

λ  languages/d/playground arf/dpl ✓ dub run drepl
Building package drepl in /Users/alexfalkowski/.dub/packages/drepl-0.2.0/drepl/
Fetching stdx-allocator 2.77.0 (getting selected version)...
Fetching linenoise 1.1.0+1.0.0 (getting selected version)...
Fetching libdparse 0.8.0 (getting selected version)...
Fetching colorize 1.0.5 (getting selected version)...
Package stdx-allocator can be upgraded from 2.77.0 to 2.77.2.
Package libdparse can be upgraded from 0.8.0 to 0.8.7.
Use "dub upgrade" to perform those changes.
Performing "debug" build using dmd for x86_64.
colorize 1.0.5: building configuration "library"...
stdx-allocator 2.77.0: building configuration "library"...
libdparse 0.8.0: building configuration "library"...
drepl 0.2.0: building configuration "console"...
Running pre-build commands...
Linking...
Undefined symbols for architecture x86_64:
  "_rt_loadLibrary", referenced from:
      __D4core7runtime7Runtime__T11loadLibraryZQoFxAaZPv in drepl.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: linker exited with status 1
dmd failed with exit code 1.

λ  languages/d/playground arf/dpl ✓ dub --version
DUB version 1.9.0, built on May  2 2018

λ  languages/d/playground arf/dpl ✓ dmd --version
DMD64 D Compiler v2.080.1
Copyright (C) 1999-2018 by The D Language Foundation, All Rights Reserved written by Walter Bright

λ  languages/d/playground arf/dpl ✓ uname -a
Darwin Alexs-Computer.local 17.6.0 Darwin Kernel Version 17.6.0: Tue May  8 15:22:16 PDT 2018; root:xnu-4570.61.1~1/RELEASE_X86_64 x86_64
@alexfalkowski
Copy link
Author

What am I missing?

@jondegenhardt
Copy link

I get the same error. I'm using OSX. Fails with both ldc (1.12.0) and dmd (2.082.0). Any thoughts on what the problem might be?

@jondegenhardt
Copy link

Turns out this is a duplicate of #39. drepl won't work on OS X until OS X has shared library support.

@wilzbach
Copy link
Member

For people bumping into this, using the docker image might work for you:

docker run -ti dlanguage/drepl

@dgellow
Copy link
Contributor

dgellow commented Apr 30, 2020

If macOS isn't supported, shouldn't the README be updated to specify that's the case? Currently I can read:

Works on any OS with full shared library support by DMD (currently linux, OSX, and FreeBSD).

That's incorrect, right?

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

4 participants