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

Unable to install nimble under Debian Testing #178

Closed
ghost opened this issue Dec 28, 2015 · 27 comments
Closed

Unable to install nimble under Debian Testing #178

ghost opened this issue Dec 28, 2015 · 27 comments

Comments

@ghost
Copy link

ghost commented Dec 28, 2015

Nim Compiler Version 0.12.0 (2015-10-27) [Linux: amd64]
git hash: b186493f0143fa8d977b4815e2ecda9f16a43b63

/home/ntilotta/Downloads/nimble/src/nimblepkg/options.nim(296, 5) Warning: renameBabelToNimble is deprecated [Deprecated]
Hint: download [Processing]
Hint: packageparser [Processing]
Hint: nimscriptsupport [Processing]
/home/ntilotta/Downloads/nimble/src/nimblepkg/nimscriptsupport.nim(8, 11) Error: cannot open 'compiler/ast'
@dom96
Copy link
Collaborator

dom96 commented Dec 28, 2015

Probably a Debian packaging issue. I assume you installed Nim via a debian package? (apt-get?)

@ghost
Copy link
Author

ghost commented Dec 29, 2015

Hi, nope I have installed Nim through the website's package (nim-0.12.0.tar.xz), run build.sh and everything works, but the problem is with nimble, when I try to install it, I get the error above.
I've tried with Nim installed from the master branch and I get this error instead.

Nim Compiler Version 0.12.0 (2015-12-29) [Linux: amd64]
git hash: 3892969af4a3c6f509b553f07b2a7f37aa8de967

compiler/semtypes.nim(1120, 5) Hint: 'pragmas' is declared but not used [XDeclaredButNotUsed]
compiler/semexprs.nim(494, 9) Hint: 'lastIndex' is declared but not used [XDeclaredButNotUsed]
compiler/semexprs.nim(493, 9) Hint: 'x' is declared but not used [XDeclaredButNotUsed]
compiler/seminst.nim(88, 6) Hint: 'sem.addProcDecls(c: PContext, fn: PSym)' is declared but not used [XDeclaredButNotUsed]
compiler/semmagic.nim(30, 3) Hint: 'SemAsgnMode' is declared but not used [XDeclaredButNotUsed]
compiler/semstmts.nim(1077, 5) Hint: 'stepCompileBody' is declared but not used [XDeclaredButNotUsed]
compiler/seminst.nim(57, 6) Hint: 'sem.removeDefaultParamValues(n: PNode)' is declared but not used [XDeclaredButNotUsed]
compiler/semtempl.nim(291, 6) Hint: 'sem.wrapInBind(c: var TemplCtx, n: PNode, opr: string)' is declared but not used [XDeclaredButNotUsed]
compiler/semstmts.nim(1074, 3) Hint: 'TProcCompilationSteps' is declared but not used [XDeclaredButNotUsed]
compiler/semexprs.nim(591, 6) Hint: 'sem.skipObjConv(n: PNode)' is declared but not used [XDeclaredButNotUsed]
compiler/semstmts.nim(1477, 6) Hint: 'sem.semStmtScope(c: PContext, n: PNode)' is declared but not used [XDeclaredButNotUsed]
compiler/seminst.nim(147, 6) Hint: 'sem.instGenericContainer(c: PContext, n: PNode, header: PType)' is declared but not used [XDeclaredButNotUsed]
compiler/semexprs.nim(487, 6) Hint: 'sem.arrayConstrType(c: PContext, n: PNode)' is declared but not used [XDeclaredButNotUsed]
compiler/semtempl.nim(31, 5) Hint: 'spNone' is declared but not used [XDeclaredButNotUsed]
compiler/semstmts.nim(1079, 6) Hint: 'sem.isForwardDecl(s: PSym)' is declared but not used [XDeclaredButNotUsed]
Hint: scriptconfig [Processing]
Hint: nimconf [Processing]
/home/ntilotta/Downloads/nimble/src/nimblepkg/nimscriptsupport.nim(86, 9) Warning: Special variable 'result' is shadowed. [ResultShadowed]
/home/ntilotta/Downloads/nimble/src/nimblepkg/nimscriptsupport.nim(283, 20) Error: undeclared identifier: 'getModule'

@dom96
Copy link
Collaborator

dom96 commented Dec 29, 2015

Oh, sorry. To install the latest Nimble you will need Nim devel. For Nim 0.12.0 you should grab Nimble 0.6.2, you can just git checkout v0.6.2 to do that (or download it here https://github.com/nim-lang/nimble/archive/v0.6.2.tar.gz)

That being said, it is odd that the Nim compiler cannot find its compiler sources when the .tar.xz package contains them.

@ghost
Copy link
Author

ghost commented Dec 29, 2015

Thanks for your reply, now I've downloaded the v0.6.2 and when I try to compile it with Nim 0.12.0 I get this error.

use Hash instead; THash is deprecated [Deprecated]
Hint: tools [Processing]
Hint: nimbletypes [Processing]
/home/ntilotta/Downloads/nimble-0.6.2/src/nimblepkg/packageinfo.nim(113, 3) Error: undeclared identifier: 'map'

@dom96
Copy link
Collaborator

dom96 commented Dec 29, 2015

Sorry, that really sucks. v0.6.2 is broken with 0.12.0 it seems. At this point I would just grab the devel Nim compiler if I were you. You're better off using devel anyway.

Alternatively you can try grabbing this commit of Nimble, but I cannot guarantee that it will work: ffbd5f5

@ghost
Copy link
Author

ghost commented Dec 29, 2015

This time with ffbd5f5 it was compiled without problems, anyway I think than I will follow your suggestion to use Nim devel instead. Thanks again ^^

@xyproto
Copy link

xyproto commented Dec 31, 2015

Same issue when compiling Nimble 0.7.0 with Nim 0.12.0 on Arch Linux.

nimblepkg/nimscriptsupport.nim(8, 11) Error: cannot open 'compiler/ast'

@dom96
Copy link
Collaborator

dom96 commented Dec 31, 2015

You need Nim 0.12.1

On Thursday, 31 December 2015, Alexander F Rødseth notifications@github.com
wrote:

Same issue when compiling Nimble 0.7.0 with Nim 0.12.0 on Arch Linux.

nimblepkg/nimscriptsupport.nim(8, 11) Error: cannot open 'compiler/ast'


Reply to this email directly or view it on GitHub
#178 (comment).

@xyproto
Copy link

xyproto commented Dec 31, 2015

But, 0.12.1 hasn't been released yet. I'm packaging both nim and nimble for Arch Linux. We only package release versions.

@dom96
Copy link
Collaborator

dom96 commented Dec 31, 2015

Sorry, you're going to need to wait for Nim 0.12.2 (or 0.13.0) to be released.

@xyproto
Copy link

xyproto commented Dec 31, 2015

Ok, thanks.

@DoooReyn
Copy link

DoooReyn commented Jan 8, 2016

I got this error with Nim 0.12.1, too.
Hope for next version to solve it.

Nim Compiler Version 0.12.1 (2016-01-08) [MacOSX: amd64]

@dom96
Copy link
Collaborator

dom96 commented Jan 8, 2016

@DoooReyn With Nim 0.12.1 it should work. How did you install Nim 0.12.1?

@DoooReyn
Copy link

DoooReyn commented Jan 8, 2016

@dom96 Sorry for that. I try sh deinstall.sh to avoid using koch and reinstall by using nim e install_nimble.nims, now nimble works.

@xyproto
Copy link

xyproto commented Jan 8, 2016

As an apropos, Rust and the Rust package manager Cargo are released in lockstep to avoid conflicting versions.

@dom96
Copy link
Collaborator

dom96 commented Jan 18, 2016

@xyproto were they also in lockstep before Rust 1.0 was released?

@xyproto
Copy link

xyproto commented Jan 18, 2016

Yes.

Cargo is now included in the Rust release binary, even though it is a separate project.

Cargo and Rust has been released together also before version 1.0. Look at version 0.12, for instance.

@kamilchm
Copy link

Same error with Nim 0.13.0 and Nimble 0.7.0 :(
It could save time for many people if this will be noted in compiling instructions ...
I tried to build Nimble package for NixOS without success after few hours :/

@dom96
Copy link
Collaborator

dom96 commented Jan 21, 2016

@kamilchm This simply shouldn't happen anymore. Did you follow instructions in the readme precisely?

@kamilchm
Copy link

It may be only NixOS issue cause its pure nature. I tried to rewrite your instruction to nix expression and I think I got it all kamilchm/nixpkgs@c40cbf5
Is something missing there?

@dom96
Copy link
Collaborator

dom96 commented Jan 21, 2016

It could be the fact that you are creating a symlink. It's possible that Nim does not follow symlinks, if that is the case then this is a Nim bug.

@kamilchm
Copy link

@dom96
Copy link
Collaborator

dom96 commented Jan 21, 2016

oh, I think I know the problem then. You're checking out the 0.7.0 tag of Nimble, my fix for vendor/nim is in HEAD.

@kamilchm
Copy link

Works on HEAD. Thx!
It may be worth to release 0.7.1?

@cjhanks
Copy link

cjhanks commented Jan 23, 2016

I am still experiencing this issue:

$> nim --version
Nim Compiler Version 0.13.0 (2016-01-23) [Linux: amd64]
Copyright (c) 2006-2015 by Andreas Rumpf

git hash: a121c3f9eb2a348b9d6ae03ffd01aab26a238c30
active boot switches: -d:release

Nimble

$> git describe       
v0.7.0-8-g670bcec
$> nim c -r src/nimble.nim
Hint: system [Processing]
....
nimblepkg/options.nim(297, 5) Warning: renameBabelToNimble is deprecated [Deprecated]
Hint: download [Processing]
Hint: packageparser [Processing]
Hint: nimscriptsupport [Processing]
nimblepkg/nimscriptsupport.nim(8, 11) Error: cannot open 'compiler/ast'

Is there anything apparently wrong with my versions?

@dom96
Copy link
Collaborator

dom96 commented Jan 23, 2016

Make sure you have HEAD of Nimble and are using the new installation
instructions in Nimble's readme.

It seems like I should release 0.7.2...

On Saturday, 23 January 2016, Christopher J. Hanks notifications@github.com
wrote:

I am still experiencing this issue:

$> nim --version
Nim Compiler Version 0.13.0 (2016-01-23) [Linux: amd64]
Copyright (c) 2006-2015 by Andreas Rumpf

git hash: a121c3f9eb2a348b9d6ae03ffd01aab26a238c30
active boot switches: -d:release

Nimble

$> git describe
v0.7.0-8-g670bcec
$> nim c -r src/nimble.nim
Hint: system [Processing]
....
nimblepkg/options.nim(297, 5) Warning: renameBabelToNimble is deprecated [Deprecated]
Hint: download [Processing]
Hint: packageparser [Processing]
Hint: nimscriptsupport [Processing]
nimblepkg/nimscriptsupport.nim(8, 11) Error: cannot open 'compiler/ast'

Is there anything apparently wrong with my versions?


Reply to this email directly or view it on GitHub
#178 (comment).

@cjhanks
Copy link

cjhanks commented Jan 23, 2016

Thanks, I was missing: git clone -b v0.13.0 --depth 1 https://github.com/nim-lang/nim vendor/nim

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

No branches or pull requests

5 participants