`nimble install dnsclient` fails with nim devel, works with nim 1.2.6
timotheecour opened this issue · comments
Timothee Cour commented
nim -v
Nim Compiler Version 1.3.5 [MacOSX: amd64]
Compiled at 2020-07-28
Copyright (c) 2006-2020 by Andreas Rumpf
git hash: e6f0d4a5a59f8230133481d25ce1c3f6e8daf0a5
active boot switches: -d:release -d:nimUseLinenoise
iterators_1.nim(85, 12) Error: type mismatch: got
NIMBLE_DIR=$HOME/.nimble_fake34b nimble install dnsclient
Prompt: No local packages.json found, download it from internet? [y/N]
Answer: y
Downloading official package list
Success Package list downloaded.
Downloading https://github.com/ba0f3/dnsclient.nim using git
Warning: Package 'dnsclient' has an incorrect structure. It should contain a single directory hierarchy for source files, named 'dnsclientpkg', but file 'cname.nim' is in a directory named 'private/records' instead. This will be an error in the future.
Hint: If 'private/records' contains source files for building 'dnsclient', rename it to 'dnsclientpkg'. Otherwise, prevent its installation by adding `skipDirs = @["private/records"]` to the .nimble file.
Verifying dependencies for dnsclient@0.0.2
Installing dnsclient@0.0.2
Building dnsclient/dnsclient using c backend
Prompt: Build failed for 'dnsclient@0.0.2', would you like to try installing 'dnsclient@#head' (latest unstable)? [y/N]
Answer: y
Downloading https://github.com/ba0f3/dnsclient.nim using git
Warning: Package 'dnsclient' has an incorrect structure. It should contain a single directory hierarchy for source files, named 'dnsclientpkg', but file 'srv.nim' is in a directory named 'private/records' instead. This will be an error in the future.
Verifying dependencies for dnsclient@#head
Installing dnsclient@#head
Building dnsclient/dnsclient using c backend
Tip: 14 messages have been suppressed, use --verbose to show them.
Error: Build failed for package: dnsclient
... Details:
... Execution failed with exit code 1
... Command: "/Users/timothee/.nimble/bin/nim" c --noNimblePath -d:NimblePkgVersion=0.0.2 -d:release -o:"/var/folders/ll/dtd6ksrn50n3xkdy4y61tf_80000gn/T/nimble_97155/githubcom_ba0f3dnsclientnim_#head/dnsclient" "/var/folders/ll/dtd6ksrn50n3xkdy4y61tf_80000gn/T/nimble_97155/githubcom_ba0f3dnsclientnim_#head/src/dnsclient.nim"
... Output: /private/var/folders/ll/dtd6ksrn50n3xkdy4y61tf_80000gn/T/nimble_97155/githubcom_ba0f3dnsclientnim_#head/src/dnsclient.nim(6, 1) template/generic instantiation from here
... /private/var/folders/ll/dtd6ksrn50n3xkdy4y61tf_80000gn/T/nimble_97155/githubcom_ba0f3dnsclientnim_#head/src/private/protocol.nim(2, 1) template/generic instantiation from here
... /private/var/folders/ll/dtd6ksrn50n3xkdy4y61tf_80000gn/T/nimble_97155/githubcom_ba0f3dnsclientnim_#head/src/private/records.nim(3, 1) template/generic instantiation from here
... /private/var/folders/ll/dtd6ksrn50n3xkdy4y61tf_80000gn/T/nimble_97155/githubcom_ba0f3dnsclientnim_#head/src/private/records/cname.nim(1, 1) template/generic instantiation from here
... /private/var/folders/ll/dtd6ksrn50n3xkdy4y61tf_80000gn/T/nimble_97155/githubcom_ba0f3dnsclientnim_#head/src/private/records/cname.nim(6, 8) Warning: method has lock level <unknown>, but another method has 0 [LockLevel]
... method parse*(r: CNAMERecord, data: StringStream) =
... ^
... /Users/timothee/git_clone/nim/Nim_devel/compiler/cgmeth.nim(152, 14) compiler msg initiated here [MsgOrigin]
... /private/var/folders/ll/dtd6ksrn50n3xkdy4y61tf_80000gn/T/nimble_97155/githubcom_ba0f3dnsclientnim_#head/src/dnsclient.nim(6, 1) template/generic instantiation from here
... /private/var/folders/ll/dtd6ksrn50n3xkdy4y61tf_80000gn/T/nimble_97155/githubcom_ba0f3dnsclientnim_#head/src/private/protocol.nim(2, 1) template/generic instantiation from here
... /private/var/folders/ll/dtd6ksrn50n3xkdy4y61tf_80000gn/T/nimble_97155/githubcom_ba0f3dnsclientnim_#head/src/private/records.nim(3, 1) template/generic instantiation from here
... /private/var/folders/ll/dtd6ksrn50n3xkdy4y61tf_80000gn/T/nimble_97155/githubcom_ba0f3dnsclientnim_#head/src/private/records/hinfo.nim(1, 1) template/generic instantiation from here
... /private/var/folders/ll/dtd6ksrn50n3xkdy4y61tf_80000gn/T/nimble_97155/githubcom_ba0f3dnsclientnim_#head/src/private/records/hinfo.nim(7, 8) Warning: method has lock level 0, but another method has <unknown> [LockLevel]
... method parse*(r: HINFORecord, data: StringStream) =
... ^
... /Users/timothee/git_clone/nim/Nim_devel/compiler/cgmeth.nim(152, 14) compiler msg initiated here [MsgOrigin]
... /private/var/folders/ll/dtd6ksrn50n3xkdy4y61tf_80000gn/T/nimble_97155/githubcom_ba0f3dnsclientnim_#head/src/dnsclient.nim(6, 1) template/generic instantiation from here
... /private/var/folders/ll/dtd6ksrn50n3xkdy4y61tf_80000gn/T/nimble_97155/githubcom_ba0f3dnsclientnim_#head/src/private/protocol.nim(2, 1) template/generic instantiation from here
... /private/var/folders/ll/dtd6ksrn50n3xkdy4y61tf_80000gn/T/nimble_97155/githubcom_ba0f3dnsclientnim_#head/src/private/records.nim(3, 1) template/generic instantiation from here
... /private/var/folders/ll/dtd6ksrn50n3xkdy4y61tf_80000gn/T/nimble_97155/githubcom_ba0f3dnsclientnim_#head/src/private/records/txt.nim(1, 1) template/generic instantiation from here
... /private/var/folders/ll/dtd6ksrn50n3xkdy4y61tf_80000gn/T/nimble_97155/githubcom_ba0f3dnsclientnim_#head/src/private/records/txt.nim(7, 8) Warning: method has lock level 0, but another method has <unknown> [LockLevel]
... method parse*(r: TXTRecord, data: StringStream) =
... ^
... /Users/timothee/git_clone/nim/Nim_devel/compiler/cgmeth.nim(152, 14) compiler msg initiated here [MsgOrigin]
... /private/var/folders/ll/dtd6ksrn50n3xkdy4y61tf_80000gn/T/nimble_97155/githubcom_ba0f3dnsclientnim_#head/src/dnsclient.nim(58, 1) template/generic instantiation from here
... /private/var/folders/ll/dtd6ksrn50n3xkdy4y61tf_80000gn/T/nimble_97155/githubcom_ba0f3dnsclientnim_#head/src/dnsclient.nim(67, 21) template/generic instantiation of `..` from here
... /Users/timothee/git_clone/nim/Nim_devel/lib/system/iterators_1.nim(84, 9) template/generic instantiation from here
... /Users/timothee/git_clone/nim/Nim_devel/lib/system/iterators_1.nim(85, 12) Error: type mismatch: got <QKind>
... but expected one of:
... proc inc[T: Ordinal](x: var T; y = 1)
... first type mismatch at position: 1
... required type for x: var T: Ordinal
... but expression 'res' is of type: QKind
... expression: inc(res)
... inc(res)
... ^
... /Users/timothee/git_clone/nim/Nim_devel/compiler/semcall.nim(292, 13) compiler msg initiated here [MsgOrigin]
... No stack traceback available
EDIT:
might be caused by nim-lang/Nim#14004 (which closed nim-lang/Nim#14001 by banning inc on enum with holes)