Skip to content

Installation broken on both 0.17.2 and on HEAD #115

@wizzardx

Description

@wizzardx

If I try to run 'nimble install c2nim' (with github HEAD), then I get this output and error:

david@david-pc:/tmp$ nimble install c2nim       
Downloading https://github.com/nim-lang/c2nim using git
   Warning: Package 'c2nim' has an incorrect structure. It should contain a single directory hierarchy for source files, named 'c2nimpkg', but file 'tester.nim' is in a directory named 'testsuite' instead. This will be an error in the future.
      Hint: If 'testsuite' contains source files for building 'c2nim', rename it to 'c2nimpkg'. Otherwise, prevent its installation by adding `skipDirs = @["testsuite"]` to the .nimble file.
  Verifying dependencies for c2nim@0.9.13
 Installing compiler@>= 0.16.0
Downloading https://github.com/nim-lang/Nim.git using git
  Verifying dependencies for compiler@0.17.3
 Installing compiler@0.17.3
   Success: compiler installed successfully.
 Installing c2nim@0.9.13
   Building c2nim/c2nim using c backend
       Tip: 131 messages have been suppressed, use --verbose to show them.
     Error: Build failed for package: c2nim
        ... Details:
        ... Execution failed with exit code 1
        ... Command: "/home/david/learning/dev/misc/nim/misc/github/Nim/bin/nim" c --noBabelPath -d:release --path:"/tmp/nimble_22314/githubcom_nimlangNimgit_0.16.0"  -o:"/tmp/nimble_22314/githubcom_nimlangc2nim/c2nim" "/tmp/nimble_22314/githubcom_nimlangc2nim/c2nim.nim"
        ... Output: Hint: used config file '/home/david/learning/dev/misc/nim/misc/github/Nim/config/nim.cfg' [Conf]
        ... Hint: system [Processing]
        ... Hint: c2nim [Processing]
        ... Hint: strutils [Processing]
        ... Hint: parseutils [Processing]
        ... Hint: math [Processing]
        ... Hint: algorithm [Processing]
        ... Hint: os [Processing]
        ... Hint: times [Processing]
        ... Hint: posix [Processing]
        ... Hint: ospaths [Processing]
        ... Hint: parseopt [Processing]
        ... Hint: llstream [Processing]
        ... Hint: ast [Processing]
        ... Hint: msgs [Processing]
        ... Hint: options [Processing]
        ... Hint: strtabs [Processing]
        ... Hint: hashes [Processing]
        ... Hint: osproc [Processing]
        ... Hint: streams [Processing]
        ... Hint: cpuinfo [Processing]
        ... Hint: linux [Processing]
        ... Hint: sets [Processing]
        ... Hint: tables [Processing]
        ... Hint: ropes [Processing]
        ... Hint: platform [Processing]
        ... Hint: terminal [Processing]
        ... Hint: macros [Processing]
        ... Hint: termios [Processing]
        ... Hint: nversion [Processing]
        ... Hint: securehash [Processing]
        ... Hint: idents [Processing]
        ... Hint: wordrecg [Processing]
        ... Hint: intsets [Processing]
        ... Hint: idgen [Processing]
        ... Hint: renderer [Processing]
        ... Hint: lexer [Processing]
        ... Hint: nimlexbase [Processing]
        ... Hint: clex [Processing]
        ... Hint: cparse [Processing]
        ... Hint: pegs [Processing]
        ... Hint: unicode [Processing]
        ... Hint: astalgo [Processing]
        ... Hint: rodutils [Processing]
        ... /tmp/nimble_22314/githubcom_nimlangNimgit_0.16.0/compiler/rodutils.nim(25, 14) Error: type mismatch: got (array[0..80, char], string, BiggestFloat)
        ... but expected one of: 
        ... proc c_sprintf(buf, frmt: cstring)

And on Nim stable, 0.17.2:

david@david-pc:/tmp$ nimble install c2nim
    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/nim-lang/c2nim using git
   Warning: Package 'c2nim' has an incorrect structure. It should contain a single directory hierarchy for source files, named 'c2nimpkg', but file 'tester.nim' is in a directory named 'testsuite' instead. This will be an error in the future.
      Hint: If 'testsuite' contains source files for building 'c2nim', rename it to 'c2nimpkg'. Otherwise, prevent its installation by adding `skipDirs = @["testsuite"]` to the .nimble file.
  Verifying dependencies for c2nim@0.9.13
 Installing compiler@>= 0.16.0
Downloading https://github.com/nim-lang/Nim.git using git
  Verifying dependencies for compiler@0.17.2
 Installing compiler@0.17.2
   Success: compiler installed successfully.
 Installing c2nim@0.9.13
   Building c2nim/c2nim using c backend
       Tip: 132 messages have been suppressed, use --verbose to show them.
     Error: Build failed for package: c2nim
        ... Details:
        ... Execution failed with exit code 1
        ... Command: "/usr/bin/nim" c --noBabelPath -d:release --path:"/tmp/nimble_23250/githubcom_nimlangNimgit_0.16.0"  -o:"/tmp/nimble_23250/githubcom_nimlangc2nim/c2nim" "/tmp/nimble_23250/githubcom_nimlangc2nim/c2nim.nim"
        ... Output: Hint: used config file '/etc/nim.cfg' [Conf]
        ... Hint: system [Processing]
        ... Hint: c2nim [Processing]
        ... Hint: strutils [Processing]
        ... Hint: parseutils [Processing]
        ... Hint: math [Processing]
        ... Hint: algorithm [Processing]
        ... Hint: os [Processing]
        ... Hint: times [Processing]
        ... Hint: posix [Processing]
        ... Hint: ospaths [Processing]
        ... Hint: parseopt [Processing]
        ... Hint: llstream [Processing]
        ... Hint: ast [Processing]
        ... Hint: msgs [Processing]
        ... Hint: options [Processing]
        ... Hint: strtabs [Processing]
        ... Hint: hashes [Processing]
        ... Hint: osproc [Processing]
        ... Hint: streams [Processing]
        ... Hint: cpuinfo [Processing]
        ... Hint: linux [Processing]
        ... Hint: sets [Processing]
        ... Hint: tables [Processing]
        ... Hint: ropes [Processing]
        ... Hint: platform [Processing]
        ... Hint: terminal [Processing]
        ... Hint: macros [Processing]
        ... Hint: termios [Processing]
        ... Hint: nversion [Processing]
        ... Hint: securehash [Processing]
        ... Hint: idents [Processing]
        ... Hint: wordrecg [Processing]
        ... Hint: intsets [Processing]
        ... Hint: idgen [Processing]
        ... Hint: renderer [Processing]
        ... Hint: lexer [Processing]
        ... Hint: nimlexbase [Processing]
        ... Hint: clex [Processing]
        ... Hint: cparse [Processing]
        ... Hint: pegs [Processing]
        ... Hint: unicode [Processing]
        ... Hint: astalgo [Processing]
        ... Hint: rodutils [Processing]
        ... Hint: postprocessor [Processing]
        ... c2nim.nim(87, 17) Error: type mismatch: got (PNode, string, string)
        ... but expected one of: 
        ... proc renderModule(n: PNode; filename: string; renderFlags: TRenderFlags = {})

I'm running Debian Sid on my PC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions