I don't use Nim too often in windows. I think I have a mess up installation.
I am playing with libxlsxwriter. In order to get the required DLLs I used msys2. Then I spotted that for some reason my Nim binary was the 32bits one, and the only way to generate a working binary was within msys2. I want to change that so: 1. I downloaded choosenim. v1.4.6 installed successfully
λ nim -v
Nim Compiler Version 1.4.6 [Windows: amd64]
Compiled at 2021-04-15
Copyright (c) 2006-2020 by Andreas Rumpf
active boot switches: -d:release
2. I want to install c2nim but I am getting the error:
λ nimble install --verbose
Verifying dependencies for [email protected]
Installing [email protected]
Building c2nim/c2nim.exe using c backend
Executing C:\Users\me\.nimble\bin\nim.exe c --colors:on --noNimblePath -d:release -d:NimblePkgVersion=0.9.14 -o:C:\Users\me\Downloads\c2nim-master\c2nim.exe C:\Users\me\Downloads\c2nim-master\c2nim.nim
Hint: used config file 'C:\Users\me\.choosenim\toolchains\nim-1.4.6\config\nim.cfg' [Conf]
Hint: used config file 'C:\Users\me\.choosenim\toolchains\nim-1.4.6\config\config.nims' [Conf]
Hint: used config file 'C:\Users\me\Downloads\c2nim-master\nim.cfg' [Conf]
.......................
C:\Users\me\Downloads\c2nim-master\compiler\pathutils.nim(14, 12) Warning: imported and not used: 'strutils' [UnusedImport]
C:\Users\me\Downloads\c2nim-master\compiler\llstream.nim(13, 3) Warning: imported and not used: 'strutils' [UnusedImport]
......
C:\Users\me\Downloads\c2nim-master\compiler\lineinfos.nim(224, 19) Warning: inherit from a more precise exception type like ValueError, IOError or OSError. If these don't suit, inherit from CatchableError or Defect. [InheritFromException]
...........
C:\Users\me\Downloads\c2nim-master\compiler\options.nim(11, 26) Warning: imported and not used: 'osproc' [UnusedImport]
....
C:\Users\me\Downloads\c2nim-master\compiler\idents.nim(15, 11) Warning: imported and not used: 'strutils' [UnusedImport]
.
C:\Users\me\Downloads\c2nim-master\compiler\ast.nim(13, 41) Warning: imported and not used: 'strutils' [UnusedImport]
C:\Users\me\Downloads\c2nim-master\compiler\ast.nim(13, 55) Warning: imported and not used: 'sha1' [UnusedImport]
C:\Users\me\Downloads\c2nim-master\compiler\ast.nim(13, 22) Warning: imported and not used: 'nversion' [UnusedImport]
C:\Users\me\Downloads\c2nim-master\compiler\ast.nim(13, 32) Warning: imported and not used: 'options' [UnusedImport]
....
C:\Users\me\Downloads\c2nim-master\compiler\lexer.nim(574, 30) Warning: See corresponding Defect; OverflowError is deprecated [Deprecated]
C:\Users\me\Downloads\c2nim-master\compiler\lexer.nim(584, 30) Warning: See corresponding Defect; OverflowError is deprecated [Deprecated]
C:\Users\me\Downloads\c2nim-master\compiler\lexer.nim(610, 10) Warning: See corresponding Defect; OverflowError is deprecated [Deprecated]
C:\Users\me\Downloads\c2nim-master\compiler\lexer.nim(610, 25) Warning: See corresponding Defect; RangeError is deprecated [Deprecated]
C:\Users\me\Downloads\c2nim-master\compiler\lexer.nim(70, 3) Hint: 'weakTokens' is declared but not used [XDeclaredButNotUsed]
.
C:\Users\me\Downloads\c2nim-master\clex.nim(385, 10) Warning: See corresponding Defect; OverflowError is deprecated [Deprecated]
C:\Users\me\Downloads\c2nim-master\clex.nim(16, 17) Warning: imported and not used: 'nversion' [UnusedImport]
..
C:\Users\me\Downloads\c2nim-master\cparse.nim(90, 19) Warning: inherit from a more precise exception type like ValueError, IOError or OSError. If these don't suit, inherit from CatchableError or Defect. [InheritFromException]
C:\Users\me\Downloads\c2nim-master\cparse.nim(21, 12) Warning: imported and not used: 'hashes' [UnusedImport]
C:\Users\me\Downloads\c2nim-master\cparse.nim(21, 39) Warning: imported and not used: 'nversion' [UnusedImport]
.
C:\Users\me\Downloads\c2nim-master\compiler\ast.nim(1063, 15) Warning: Potential object case transition, instantiate new object instead [CaseTransition]
C:\Users\me\Downloads\c2nim-master\compiler\ast.nim(1186, 15) Warning: Potential object case transition, instantiate new object instead [CaseTransition]
C:\Users\me\Downloads\c2nim-master\cparse.nim(1428, 33) Warning: Potential object case transition, instantiate new object instead [CaseTransition]
C:\Users\me\Downloads\c2nim-master\cparse.nim(2526, 21) Warning: Potential object case transition, instantiate new object instead [CaseTransition]
C:\Users\me\Downloads\c2nim-master\cparse.nim(2549, 43) Warning: Potential object case transition, instantiate new object instead [CaseTransition]
C:\Users\me\Downloads\c2nim-master\c2nim.nim(12, 30) Warning: imported and not used: 'options' [UnusedImport]
C:\Users\me\Downloads\c2nim-master\c2nim.nim(13, 40) Warning: imported and not used: 'nversion' [UnusedImport]
CC: stdlib_assertions.nim
CC: stdlib_dollars.nim
CC: stdlib_formatfloat.nim
CC: stdlib_widestrs.nim
CC: stdlib_io.nim
CC: stdlib_system.nim
CC: stdlib_parseutils.nim
CC: stdlib_math.nim
gcc.exe: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory
compilation terminated.
gcc.exe: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory
compilation terminated.
gcc.exe: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory
compilation terminated.
Error: execution of an external compiler program 'gcc.exe -c -w -fmax-errors=3 -mno-ms-bitfields -DWIN32_LEAN_AND_MEAN -O3 -fno-strict-aliasing -fno-ident -IC:\Users\me\.choosenim\toolchains\nim-1.4.6\lib -IC:\Users\me\Downloads\c2nim-master -o C:\Users\me\nimcache\c2nim_r\stdlib_assertions.nim.c.o C:\Users\me\nimcache\c2nim_r\stdlib_assertions.nim.c' failed with exit code: 1
gcc.exe: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory
compilation terminated.
Error: Build failed for package: c2nim
... Execution failed with exit code 1
... Command: C:\Users\me\.nimble\bin\nim.exe c --colors:on --noNimblePath -d:release -d:NimblePkgVersion=0.9.14 -o:C:\Users\me\Downloads\c2nim-master\c2nim.exe C:\Users\me\Downloads\c2nim-master\c2nim.nim
C:\Users\me\Downloads\c2nim-master
λ gcc.exe: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory
compilation terminated.
gcc.exe: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory
compilation terminated.
gcc.exe: fatal error: cannot execute 'cc1 ': CreateProcess: No such file or directory
ofatal error: mcannot execute 'picc1 a': CreateProcess: No such file or directory
tcioomnp itleartmiionna tteedr.m
inated.
Any idea about where should I look at?