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

Not installing with DUB version 1.8.1 #69

Open
spikespaz opened this issue Jun 9, 2018 · 2 comments
Open

Not installing with DUB version 1.8.1 #69

spikespaz opened this issue Jun 9, 2018 · 2 comments

Comments

@spikespaz
Copy link

spikespaz commented Jun 9, 2018

These are the logs, just going to paste them here.

spike@jacob-windows MINGW64 ~/Documents/github.com/spikespaz/search-deflector (master)
$ 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.

spike@jacob-windows MINGW64 ~/Documents/github.com/spikespaz/search-deflector (master)
$ dub run drepl
Building package drepl in C:\Users\spike\AppData\Local\dub\packages\drepl-0.2.0\drepl\
Fetching linenoise 1.1.0+1.0.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.6.
Use "dub upgrade" to perform those changes.
Performing "debug" build using C:\D\dmd2\windows\bin\dmd.exe for x86.
colorize 1.0.5: building configuration "library"...
stdx-allocator 2.77.0: target for configuration "library" is up to date.
libdparse 0.8.0: target for configuration "library" is up to date.
drepl 0.2.0: building configuration "console"...
..\..\..\..\AppData\Local\dub\packages\drepl-0.2.0\drepl\src\drepl\engines\dmd.d(146,26): Error: template object.dup cannot deduce function from argument types !()(int), candidates are:
C:\D\dmd2\windows\bin\..\..\src\druntime\import\object.d(2086,6):        object.dup(T : V[K], K, V)(T aa)
C:\D\dmd2\windows\bin\..\..\src\druntime\import\object.d(2122,6):        object.dup(T : V[K], K, V)(T* aa)
C:\D\dmd2\windows\bin\..\..\src\druntime\import\object.d(4191,16):        object.dup(T)(T[] a) if (!is(const(T) : T))
C:\D\dmd2\windows\bin\..\..\src\druntime\import\object.d(4207,15):        object.dup(T)(const(T)[] a) if (is(const(T) : T))
..\..\..\..\AppData\Local\dub\packages\drepl-0.2.0\drepl\src\drepl\engines\dmd.d(147,26): Error: template object.dup cannot deduce function from argument types !()(int), candidates are:
C:\D\dmd2\windows\bin\..\..\src\druntime\import\object.d(2086,6):        object.dup(T : V[K], K, V)(T aa)
C:\D\dmd2\windows\bin\..\..\src\druntime\import\object.d(2122,6):        object.dup(T : V[K], K, V)(T* aa)
C:\D\dmd2\windows\bin\..\..\src\druntime\import\object.d(4191,16):        object.dup(T)(T[] a) if (!is(const(T) : T))
C:\D\dmd2\windows\bin\..\..\src\druntime\import\object.d(4207,15):        object.dup(T)(const(T)[] a) if (is(const(T) : T))
..\..\..\..\AppData\Local\dub\packages\drepl-0.2.0\drepl\src\drepl\engines\dmd.d(150,9): Error: undefined identifier dup2, did you mean template dup(T : V[K], K, V)(T aa)?
..\..\..\..\AppData\Local\dub\packages\drepl-0.2.0\drepl\src\drepl\engines\dmd.d(151,9): Error: undefined identifier dup2, did you mean template dup(T : V[K], K, V)(T aa)?
..\..\..\..\AppData\Local\dub\packages\drepl-0.2.0\drepl\src\drepl\engines\dmd.d(167,9): Error: undefined identifier dup2, did you mean template dup(T : V[K], K, V)(T aa)?
..\..\..\..\AppData\Local\dub\packages\drepl-0.2.0\drepl\src\drepl\engines\dmd.d(168,9): Error: undefined identifier dup2, did you mean template dup(T : V[K], K, V)(T aa)?
..\..\..\..\AppData\Local\dub\packages\drepl-0.2.0\drepl\src\drepl\engines\dmd.d(217,24): Error: undefined identifier dlerror, did you mean function ferror?
..\..\..\..\AppData\Local\dub\packages\drepl-0.2.0\drepl\src\drepl\engines\dmd.d(220,16): Error: undefined identifier dlsym
C:\D\dmd2\windows\bin\dmd.exe failed with exit code 1.
@spikespaz spikespaz changed the title Not installing with DUB dub --version Not installing with DUB version 1.8.1 Jun 9, 2018
@dgellow
Copy link
Contributor

dgellow commented Apr 30, 2020

I face the same problem using Windows. The functions dup and dup2 that are causing issues are from core.sys.posix.unistd. From what I can see, they are missing in Windows, and dup is instead resolved to object.dup which doesn't have a compatible signature.

@ljmf00
Copy link
Contributor

ljmf00 commented Oct 4, 2020

This seems the same problem of #82 and currently Windows is not supported.

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

3 participants