nim-lang / Nim

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
https://nim-lang.org
Other
16.54k stars 1.47k forks source link

Compiler can't handle nimble pkg file paths with spaces (Windows). #18334

Closed idakandrew closed 3 years ago

idakandrew commented 3 years ago

When attempting to compile projects located in a file path with spaces and / or dependent on nimble packages installed under file paths with spaces, the compiler will fail to find the folders / files because the paths are getting split along the spaces. i.e:

C:\Users\Idak Andrew\.nimble\pkgs becomes C:\Users\Idak and Andrew\.nimble\pkgs before being passed to GCC, neither of which can be found.

This occurs regardless of what directory I cd into.

Nim Compiler Version 1.4.8
timotheecour commented 3 years ago

check whether this is fixed in latest devel (and report the git hash), IIRC a similar bug was fixed recently in devel

idakandrew commented 3 years ago

I attempted to follow the recompilations steps for the compiler, but koch failed during the second step, seemingly because of the same quotation issue. (At least it appears that way, because I noticed an unquoted argument in the error).

Edit: Yes, it seems like this time the error occurred when the path split at Program Files (x86) -> Program Files & (x86)

timotheecour commented 3 years ago

can you post full reproduction for your issue, starting from scratch, along with full logs showing error messages you get

and show logs you get when doing:

git clone https://github.com/nim-lang/Nim
cd Nim
build_all.bat
idakandrew commented 3 years ago

Error: execution of an external compiler pro ram 'gcc.gcc.exe:e e -c -w error: - maxIdak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled: No such file or directory -errors 3 gcc.exe:-m o- s- gcc.exe: tfieerror: l s Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\include: No such file or directory -error: D N32_Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylibmangled: No such file or directory gcc.exe:L EA N ND_ error: gcc.exe: AN -Werror: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\deps\mingw: No such file or directory alIdak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled: No such file or directory -D_D E AIdak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\include: No such file or directory ULgcc.exe:T S URCgcc.exe: - no-merror: error: i sinIdak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\deps\mingw: No such file or directory Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\include: No such file or directory g-br cesgcc.exe: Werror=pointer-ar it -fno-strict-alierror: a inIdak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\deps\mingw: No such file or directory g -std=c99 -s -O1 -Werror=implicit-function-declaration -IC:\Users\Andrew Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled -IC:\Users\Andrew Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\include -IC:\Users\Andrew Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\deps\mingw -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33 -DPHYSAC_IMPLEMENTATION -DPHYSAC_NO_THREADS -DRAYGUI_IMPLEMENTATION -O3 -fno-strict-aliasing -fno-ident -I"X:\Program Files (x86)\nim-1.4.8\lib" -I"C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks" -o "C:\Users\Andrew Idak\nimcache\crown_r\rglfw.c.o" "C:\Users\Andrew Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\rglfw.c"' failed with exit code: 1


- Running via code runner instead with ```nim compile --verbosity:0 --hints:off --run "c:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\crown.nim"``` produces:

[Running] nim compile --verbosity:0 --hints:off --run "c:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\crown.nim" gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\include: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\deps\mingw: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\include: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\deps\mingw: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\include: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\deps\mingw: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\include: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\deps\mingw: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\include: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\deps\mingw: No such file or directory Error: execution of an external compiler program 'gcc.exe -c -w -fmax-errors=3 -mno-ms-bitfields -DWIN32_LEAN_AND_MEAN -Wall -D_DEFAULT_SOURCE -Wno-missing-braces -Werror=pointer-arith -fno-strict-aliasing -std=c99 -s -O1 -Werror=implicit-function-declaration -IC:\Users\Andrew Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled -IC:\Users\Andrew Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\include -IC:\Users\Andrew Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\deps\mingw -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33 -DPHYSAC_IMPLEMENTATION -DPHYSAC_NO_THREADS -DRAYGUI_IMPLEMENTATION -I"X:\Program Files (x86)\nim-1.4.8\lib" -I"c:\Users\Andrew Idak\Desktop\Coding Projects\Stocks" -o "C:\Users\Andrew Idak\nimcache\crown_d\rglfw.c.o" "C:\Users\Andrew Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\rglfw.c"' failed with exit code: 1

gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\include: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\deps\mingw: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\include: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\deps\mingw: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\include: No such file or directory gcc.exe: error: Idak.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\deps\mingw: No such file or directory


- build_all.bat produces:

HEAD is now at a8a5241 Support for Apple's M1 "AMD64" Forcing gcc arch Building with 64 bit gcc gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_assertions.nim.c -o c_code\1_2\stdlib_assertions.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_dollars.nim.c -o c_code\1_2\stdlib_dollars.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_formatfloat.nim.c -o c_code\1_2\stdlib_formatfloat.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_widestrs.nim.c -o c_code\1_2\stdlib_widestrs.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_io.nim.c -o c_code\1_2\stdlib_io.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_system.nim.c -o c_code\1_2\stdlib_system.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_parseutils.nim.c -o c_code\1_2\stdlib_parseutils.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_math.nim.c -o c_code\1_2\stdlib_math.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_algorithm.nim.c -o c_code\1_2\stdlib_algorithm.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_unicode.nim.c -o c_code\1_2\stdlib_unicode.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_strutils.nim.c -o c_code\1_2\stdlib_strutils.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_pathnorm.nim.c -o c_code\1_2\stdlib_pathnorm.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_dynlib.nim.c -o c_code\1_2\stdlib_dynlib.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_winlean.nim.c -o c_code\1_2\stdlib_winlean.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_times.nim.c -o c_code\1_2\stdlib_times.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_os.nim.c -o c_code\1_2\stdlib_os.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_hashes.nim.c -o c_code\1_2\stdlib_hashes.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_strtabs.nim.c -o c_code\1_2\stdlib_strtabs.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_sets.nim.c -o c_code\1_2\stdlib_sets.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mpathutils.nim.c -o c_code\1_2\@mpathutils.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mropes.nim.c -o c_code\1_2\@mropes.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_tables.nim.c -o c_code\1_2\stdlib_tables.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mlineinfos.nim.c -o c_code\1_2\@mlineinfos.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mplatform.nim.c -o c_code\1_2\@mplatform.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mprefixmatches.nim.c -o c_code\1_2\@mprefixmatches.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_terminal.nim.c -o c_code\1_2\stdlib_terminal.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@moptions.nim.c -o c_code\1_2\@moptions.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mmsgs.nim.c -o c_code\1_2\@mmsgs.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mcondsyms.nim.c -o c_code\1_2\@mcondsyms.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_streams.nim.c -o c_code\1_2\stdlib_streams.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_cpuinfo.nim.c -o c_code\1_2\stdlib_cpuinfo.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_osproc.nim.c -o c_code\1_2\stdlib_osproc.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_sha1.nim.c -o c_code\1_2\stdlib_sha1.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_lexbase.nim.c -o c_code\1_2\stdlib_lexbase.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_parsejson.nim.c -o c_code\1_2\stdlib_parsejson.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_json.nim.c -o c_code\1_2\stdlib_json.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mextccomp.nim.c -o c_code\1_2\@mextccomp.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mwordrecg.nim.c -o c_code\1_2\@mwordrecg.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mnimblecmd.nim.c -o c_code\1_2\@mnimblecmd.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_parseopt.nim.c -o c_code\1_2\stdlib_parseopt.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mincremental.nim.c -o c_code\1_2\@mincremental.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mcommands.nim.c -o c_code\1_2\@mcommands.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mllstream.nim.c -o c_code\1_2\@mllstream.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@midents.nim.c -o c_code\1_2\@midents.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@midgen.nim.c -o c_code\1_2\@midgen.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mint128.nim.c -o c_code\1_2\@mint128.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mast.nim.c -o c_code\1_2\@mast.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mnimlexbase.nim.c -o c_code\1_2\@mnimlexbase.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mlexer.nim.c -o c_code\1_2\@mlexer.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mparser.nim.c -o c_code\1_2\@mparser.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mrenderer.nim.c -o c_code\1_2\@mrenderer.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mfilters.nim.c -o c_code\1_2\@mfilters.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mfilter_tmpl.nim.c -o c_code\1_2\@mfilter_tmpl.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@msyntaxes.nim.c -o c_code\1_2\@msyntaxes.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_intsets.nim.c -o c_code\1_2\stdlib_intsets.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mrodutils.nim.c -o c_code\1_2\@mrodutils.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mastalgo.nim.c -o c_code\1_2\@mastalgo.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mtrees.nim.c -o c_code\1_2\@mtrees.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mtypes.nim.c -o c_code\1_2\@mtypes.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mbtrees.nim.c -o c_code\1_2\@mbtrees.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_md5.nim.c -o c_code\1_2\stdlib_md5.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mmodulegraphs.nim.c -o c_code\1_2\@mmodulegraphs.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mmagicsys.nim.c -o c_code\1_2\@mmagicsys.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mbitsets.nim.c -o c_code\1_2\@mbitsets.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mnimsets.nim.c -o c_code\1_2\@mnimsets.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@msemfold.nim.c -o c_code\1_2\@msemfold.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mmodulepaths.nim.c -o c_code\1_2\@mmodulepaths.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mvmdef.nim.c -o c_code\1_2\@mvmdef.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@msemdata.nim.c -o c_code\1_2\@msemdata.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mlinter.nim.c -o c_code\1_2\@mlinter.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mnimfix@sprettybase.nim.c -o c_code\1_2\@mnimfix@sprettybase.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mlookups.nim.c -o c_code\1_2\@mlookups.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@msemtypinst.nim.c -o c_code\1_2\@msemtypinst.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mparampatterns.nim.c -o c_code\1_2\@mparampatterns.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mlowerings.nim.c -o c_code\1_2\@mlowerings.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@m..@slib@spackages@sdocutils@srstast.nim.c -o c_code\1_2\@m..@slib@spackages@sdocutils@srstast.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@m..@slib@spackages@sdocutils@srst.nim.c -o c_code\1_2\@m..@slib@spackages@sdocutils@srst.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@m..@slib@spackages@sdocutils@shighlite.nim.c -o c_code\1_2\@m..@slib@spackages@sdocutils@shighlite.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@m..@slib@spackages@sdocutils@srstgen.nim.c -o c_code\1_2\@m..@slib@spackages@sdocutils@srstgen.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_xmltree.nim.c -o c_code\1_2\stdlib_xmltree.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_uri.nim.c -o c_code\1_2\stdlib_uri.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\stdlib_cgi.nim.c -o c_code\1_2\stdlib_cgi.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mtypesrenderer.nim.c -o c_code\1_2\@mtypesrenderer.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mdocgen.nim.c -o c_code\1_2\@mdocgen.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@msigmatch.nim.c -o c_code\1_2\@msigmatch.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mimporter.nim.c -o c_code\1_2\@mimporter.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mprocfind.nim.c -o c_code\1_2\@mprocfind.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mpragmas.nim.c -o c_code\1_2\@mpragmas.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mreorder.nim.c -o c_code\1_2\@mreorder.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mpasses.nim.c -o c_code\1_2\@mpasses.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@msaturate.nim.c -o c_code\1_2\@msaturate.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mguards.nim.c -o c_code\1_2\@mguards.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@msighashes.nim.c -o c_code\1_2\@msighashes.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mliftdestructors.nim.c -o c_code\1_2\@mliftdestructors.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@msempass2.nim.c -o c_code\1_2\@msempass2.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mcgmeth.nim.c -o c_code\1_2\@mcgmeth.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@maliases.nim.c -o c_code\1_2\@maliases.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mpatterns.nim.c -o c_code\1_2\@mpatterns.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mdfa.nim.c -o c_code\1_2\@mdfa.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@minjectdestructors.nim.c -o c_code\1_2\@minjectdestructors.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mliftlocals.nim.c -o c_code\1_2\@mliftlocals.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mlambdalifting.nim.c -o c_code\1_2\@mlambdalifting.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mclosureiters.nim.c -o c_code\1_2\@mclosureiters.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mtransf.nim.c -o c_code\1_2\@mtransf.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mvmgen.nim.c -o c_code\1_2\@mvmgen.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mvmdeps.nim.c -o c_code\1_2\@mvmdeps.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mvmmarshal.nim.c -o c_code\1_2\@mvmmarshal.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mgorgeimpl.nim.c -o c_code\1_2\@mgorgeimpl.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mmacrocacheimpl.nim.c -o c_code\1_2\@mmacrocacheimpl.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mevaltempl.nim.c -o c_code\1_2\@mevaltempl.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mvm.nim.c -o c_code\1_2\@mvm.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@msemmacrosanity.nim.c -o c_code\1_2\@msemmacrosanity.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mpluginsupport.nim.c -o c_code\1_2\@mpluginsupport.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mplugins@slocals.nim.c -o c_code\1_2\@mplugins@slocals.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mplugins@sitersgen.nim.c -o c_code\1_2\@mplugins@sitersgen.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mplugins@sactive.nim.c -o c_code\1_2\@mplugins@sactive.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mspawn.nim.c -o c_code\1_2\@mspawn.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@msemparallel.nim.c -o c_code\1_2\@msemparallel.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@msem.nim.c -o c_code\1_2\@msem.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mccgutils.nim.c -o c_code\1_2\@mccgutils.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mtreetab.nim.c -o c_code\1_2\@mtreetab.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mndi.nim.c -o c_code\1_2\@mndi.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mcgendata.nim.c -o c_code\1_2\@mcgendata.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mccgmerge.nim.c -o c_code\1_2\@mccgmerge.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@menumtostr.nim.c -o c_code\1_2\@menumtostr.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mcgen.nim.c -o c_code\1_2\@mcgen.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mnimconf.nim.c -o c_code\1_2\@mnimconf.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mpassaux.nim.c -o c_code\1_2\@mpassaux.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mdepends.nim.c -o c_code\1_2\@mdepends.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mmodules.nim.c -o c_code\1_2\@mmodules.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mjsgen.nim.c -o c_code\1_2\@mjsgen.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mdocgen2.nim.c -o c_code\1_2\@mdocgen2.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mmain.nim.c -o c_code\1_2\@mmain.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mscriptconfig.nim.c -o c_code\1_2\@mscriptconfig.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mcmdlinehelper.nim.c -o c_code\1_2\@mcmdlinehelper.nim.o gcc -w -O3 -fno-strict-aliasing -Ic_code -c c_code\1_2\@mnim.nim.c -o c_code\1_2\@mnim.nim.o gcc -o ..\bin\nim.exe c_code\1_2\stdlib_assertions.nim.o c_code\1_2\stdlib_dollars.nim.o c_code\1_2\stdlib_formatfloat.nim.o c_code\1_2\stdlib_widestrs.nim.o c_code\1_2\stdlib_io.nim.o c_code\1_2\stdlib_system.nim.o c_code\1_2\stdlib_parseutils.nim.o c_code\1_2\stdlib_math.nim.o c_code\1_2\stdlib_algorithm.nim.o c_code\1_2\stdlib_unicode.nim.o c_code\1_2\stdlib_strutils.nim.o c_code\1_2\stdlib_pathnorm.nim.o c_code\1_2\stdlib_dynlib.nim.o c_code\1_2\stdlib_winlean.nim.o c_code\1_2\stdlib_times.nim.o c_code\1_2\stdlib_os.nim.o c_code\1_2\stdlib_hashes.nim.o c_code\1_2\stdlib_strtabs.nim.o c_code\1_2\stdlib_sets.nim.o c_code\1_2\@mpathutils.nim.o c_code\1_2\@mropes.nim.o c_code\1_2\stdlib_tables.nim.o c_code\1_2\@mlineinfos.nim.o c_code\1_2\@mplatform.nim.o c_code\1_2\@mprefixmatches.nim.o c_code\1_2\stdlib_terminal.nim.o c_code\1_2\@moptions.nim.o c_code\1_2\@mmsgs.nim.o c_code\1_2\@mcondsyms.nim.o c_code\1_2\stdlib_streams.nim.o c_code\1_2\stdlib_cpuinfo.nim.o c_code\1_2\stdlib_osproc.nim.o c_code\1_2\stdlib_sha1.nim.o c_code\1_2\stdlib_lexbase.nim.o c_code\1_2\stdlib_parsejson.nim.o c_code\1_2\stdlib_json.nim.o c_code\1_2\@mextccomp.nim.o c_code\1_2\@mwordrecg.nim.o c_code\1_2\@mnimblecmd.nim.o c_code\1_2\stdlib_parseopt.nim.o c_code\1_2\@mincremental.nim.o c_code\1_2\@mcommands.nim.o c_code\1_2\@mllstream.nim.o c_code\1_2\@midents.nim.o c_code\1_2\@midgen.nim.o c_code\1_2\@mint128.nim.o c_code\1_2\@mast.nim.o c_code\1_2\@mnimlexbase.nim.o c_code\1_2\@mlexer.nim.o c_code\1_2\@mparser.nim.o c_code\1_2\@mrenderer.nim.o c_code\1_2\@mfilters.nim.o c_code\1_2\@mfilter_tmpl.nim.o c_code\1_2\@msyntaxes.nim.o c_code\1_2\stdlib_intsets.nim.o c_code\1_2\@mrodutils.nim.o c_code\1_2\@mastalgo.nim.o c_code\1_2\@mtrees.nim.o c_code\1_2\@mtypes.nim.o c_code\1_2\@mbtrees.nim.o c_code\1_2\stdlib_md5.nim.o c_code\1_2\@mmodulegraphs.nim.o c_code\1_2\@mmagicsys.nim.o c_code\1_2\@mbitsets.nim.o c_code\1_2\@mnimsets.nim.o c_code\1_2\@msemfold.nim.o c_code\1_2\@mmodulepaths.nim.o c_code\1_2\@mvmdef.nim.o c_code\1_2\@msemdata.nim.o c_code\1_2\@mlinter.nim.o c_code\1_2\@mnimfix@sprettybase.nim.o c_code\1_2\@mlookups.nim.o c_code\1_2\@msemtypinst.nim.o c_code\1_2\@mparampatterns.nim.o c_code\1_2\@mlowerings.nim.o c_code\1_2\@m..@slib@spackages@sdocutils@srstast.nim.o c_code\1_2\@m..@slib@spackages@sdocutils@srst.nim.o c_code\1_2\@m..@slib@spackages@sdocutils@shighlite.nim.o c_code\1_2\@m..@slib@spackages@sdocutils@srstgen.nim.o c_code\1_2\stdlib_xmltree.nim.o c_code\1_2\stdlib_uri.nim.o c_code\1_2\stdlib_cgi.nim.o c_code\1_2\@mtypesrenderer.nim.o c_code\1_2\@mdocgen.nim.o c_code\1_2\@msigmatch.nim.o c_code\1_2\@mimporter.nim.o c_code\1_2\@mprocfind.nim.o c_code\1_2\@mpragmas.nim.o c_code\1_2\@mreorder.nim.o c_code\1_2\@mpasses.nim.o c_code\1_2\@msaturate.nim.o c_code\1_2\@mguards.nim.o c_code\1_2\@msighashes.nim.o c_code\1_2\@mliftdestructors.nim.o c_code\1_2\@msempass2.nim.o c_code\1_2\@mcgmeth.nim.o c_code\1_2\@maliases.nim.o c_code\1_2\@mpatterns.nim.o c_code\1_2\@mdfa.nim.o c_code\1_2\@minjectdestructors.nim.o c_code\1_2\@mliftlocals.nim.o c_code\1_2\@mlambdalifting.nim.o c_code\1_2\@mclosureiters.nim.o c_code\1_2\@mtransf.nim.o c_code\1_2\@mvmgen.nim.o c_code\1_2\@mvmdeps.nim.o c_code\1_2\@mvmmarshal.nim.o c_code\1_2\@mgorgeimpl.nim.o c_code\1_2\@mmacrocacheimpl.nim.o c_code\1_2\@mevaltempl.nim.o c_code\1_2\@mvm.nim.o c_code\1_2\@msemmacrosanity.nim.o c_code\1_2\@mpluginsupport.nim.o c_code\1_2\@mplugins@slocals.nim.o c_code\1_2\@mplugins@sitersgen.nim.o c_code\1_2\@mplugins@sactive.nim.o c_code\1_2\@mspawn.nim.o c_code\1_2\@msemparallel.nim.o c_code\1_2\@msem.nim.o c_code\1_2\@mccgutils.nim.o c_code\1_2\@mtreetab.nim.o c_code\1_2\@mndi.nim.o c_code\1_2\@mcgendata.nim.o c_code\1_2\@mccgmerge.nim.o c_code\1_2\@menumtostr.nim.o c_code\1_2\@mcgen.nim.o c_code\1_2\@mnimconf.nim.o c_code\1_2\@mpassaux.nim.o c_code\1_2\@mdepends.nim.o c_code\1_2\@mmodules.nim.o c_code\1_2\@mjsgen.nim.o c_code\1_2\@mdocgen2.nim.o c_code\1_2\@mmain.nim.o c_code\1_2\@mscriptconfig.nim.o c_code\1_2\@mcmdlinehelper.nim.o c_code\1_2\@mnim.nim.o SUCCESS 1 file(s) copied. CC: stdlib_assertions.nim CC: stdlib_digitsutils.nim CC: stdlib_dollars.nim CC: stdlib_widestrs.nim CC: stdlib_io.nim CC: stdlib_system.nim CC: stdlib_parseutils.nim CC: stdlib_math.nim CC: stdlib_algorithm.nim CC: stdlib_unicode.nim CC: stdlib_strutils.nim CC: stdlib_pathnorm.nim CC: stdlib_dynlib.nim CC: stdlib_winlean.nim CC: stdlib_times.nim CC: stdlib_os.nim CC: stdlib_parseopt.nim CC: stdlib_hashes.nim CC: stdlib_streams.nim CC: stdlib_cpuinfo.nim CC: stdlib_osproc.nim CC: stdlib_sets.nim CC: stdlib_pegs.nim CC: stdlib_globs.nim CC: compiler/nimpaths.nim CC: tools/kochdocs.nim CC: stdlib_base64.nim CC: stdlib_uri.nim CC: stdlib_strformat.nim CC: stdlib_random.nim CC: stdlib_gitutils.nim CC: tools/deps.nim CC: koch.nim iteration: 1 bin\nim.exe c --skipUserCfg --skipParentCfg --nimcache:nimcache/r_windows_amd64 -d:release --skipUserCfg --skipParentCfg --hints:off --compileOnly compiler\nim.nim C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\compiler\dfa.nim(32, 13) Warning: imported and not used: 'types' [UnusedImport] C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\compiler\passaux.nim(13, 16) Warning: imported and not used: 'idents' [UnusedImport] bin\nim.exe jsonscript --nimcache:nimcache/r_windows_amd64 -d:release --skipUserCfg --skipParentCfg --hints:off compiler\nim.nim CC: stdlib_assertions.nim CC: stdlib_digitsutils.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 CC: stdlib_algorithm.nim CC: stdlib_enumutils.nim CC: stdlib_unicode.nim CC: stdlib_strutils.nim CC: stdlib_pathnorm.nim CC: stdlib_dynlib.nim CC: stdlib_winlean.nim CC: stdlib_times.nim CC: stdlib_os.nim CC: stdlib_parseopt.nim CC: stdlib_hashes.nim CC: stdlib_strtabs.nim CC: stdlib_tables.nim CC: stdlib_strformat.nim CC: stdlib_terminal.nim CC: stdlib_sets.nim CC: pathutils.nim CC: ropes.nim CC: lineinfos.nim CC: platform.nim CC: prefixmatches.nim CC: nimpaths.nim CC: stdlib_globs.nim CC: options.nim CC: strutils2.nim CC: msgs.nim CC: condsyms.nim CC: stdlib_streams.nim CC: stdlib_cpuinfo.nim CC: stdlib_osproc.nim CC: stdlib_sha1.nim CC: stdlib_lexbase.nim CC: stdlib_parsejson.nim CC: stdlib_json.nim CC: stdlib_jsonutils.nim CC: extccomp.nim CC: wordrecg.nim CC: nimblecmd.nim CC: idents.nim CC: int128.nim CC: ast.nim CC: commands.nim CC: llstream.nim CC: nimlexbase.nim CC: lexer.nim CC: parser.nim CC: renderer.nim CC: filters.nim CC: filter_tmpl.nim CC: syntaxes.nim CC: stdlib_packedsets.nim CC: rodutils.nim CC: astalgo.nim CC: trees.nim CC: stdlib_md5.nim CC: btrees.nim CC: ic/rodfiles.nim CC: ic/bitabs.nim CC: ic/packed_ast.nim CC: ic/ic.nim CC: modulegraphs.nim CC: astmsgs.nim CC: types.nim CC: magicsys.nim CC: bitsets.nim CC: nimsets.nim CC: semfold.nim CC: modulepaths.nim CC: vmdef.nim CC: semdata.nim CC: linter.nim CC: nimfix/prettybase.nim CC: stdlib_editdistance.nim CC: stdlib_heapqueue.nim CC: lookups.nim CC: concepts.nim CC: semtypinst.nim CC: parampatterns.nim CC: lowerings.nim CC: sigmatch.nim CC: importer.nim CC: procfind.nim CC: pragmas.nim CC: reorder.nim CC: passes.nim CC: saturate.nim CC: guards.nim CC: typeallowed.nim CC: isolation_check.nim CC: varpartitions.nim CC: treetab.nim CC: nilcheck.nim CC: errorhandling.nim CC: sighashes.nim CC: ndi.nim CC: cgendata.nim CC: ccgutils.nim CC: liftdestructors.nim CC: sempass2.nim CC: cgmeth.nim CC: liftlocals.nim CC: lambdalifting.nim CC: closureiters.nim CC: transf.nim CC: vmgen.nim CC: vmdeps.nim CC: vmmarshal.nim CC: gorgeimpl.nim CC: macrocacheimpl.nim CC: vmprofiler.nim CC: evaltempl.nim CC: vmconv.nim CC: vm.nim CC: aliases.nim CC: patterns.nim CC: semmacrosanity.nim CC: pluginsupport.nim CC: plugins/locals.nim CC: plugins/itersgen.nim CC: plugins/active.nim CC: enumtostr.nim CC: spawn.nim CC: sem.nim CC: dfa.nim CC: optimizer.nim CC: injectdestructors.nim CC: semparallel.nim CC: cgen.nim CC: ic/replayer.nim CC: modules.nim CC: scriptconfig.nim CC: nimconf.nim CC: passaux.nim CC: depends.nim CC: ic/dce.nim CC: ic/cbackend.nim CC: ic/integrity.nim CC: ic/navigator.nim CC: sourcemap.nim CC: jsgen.nim CC: stdlib_rstast.nim CC: stdlib_lists.nim CC: stdlib_highlite.nim CC: stdlib_rst.nim CC: stdlib_rstgen.nim CC: stdlib_xmltree.nim CC: typesrenderer.nim CC: renderverbatim.nim CC: stdlib_base64.nim CC: stdlib_uri.nim CC: docgen.nim CC: docgen2.nim CC: main.nim CC: cmdlinehelper.nim CC: stdlib_browsers.nim CC: nim.nim gcc.exe: error: Idak\Desktop\Coding: No such file or directory gcc.exe: error: Projects\Stocks\Nim\icons\nim_icon.o: No such file or directory Error: execution of an external program failed: 'gcc.exe -o "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\compiler\nim.exe" C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\icons\nim_icon.o "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_assertions.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_digitsutils.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_dollars.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_formatfloat.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_widestrs.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_io.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_system.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_parseutils.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_math.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_algorithm.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_enumutils.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_unicode.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_strutils.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_pathnorm.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_dynlib.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_winlean.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_times.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_os.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_parseopt.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_hashes.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_strtabs.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_tables.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_strformat.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_terminal.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_sets.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mpathutils.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mropes.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mlineinfos.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mplatform.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mprefixmatches.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mnimpaths.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_globs.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@moptions.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mstrutils2.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mmsgs.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mcondsyms.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_streams.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_cpuinfo.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_osproc.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_sha1.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_lexbase.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_parsejson.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_json.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_jsonutils.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mextccomp.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mwordrecg.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mnimblecmd.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@midents.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mint128.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mast.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mcommands.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mllstream.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mnimlexbase.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mlexer.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mparser.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mrenderer.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mfilters.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mfilter_tmpl.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@msyntaxes.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_packedsets.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mrodutils.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mastalgo.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mtrees.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_md5.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mbtrees.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mic@srodfiles.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mic@sbitabs.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mic@spacked_ast.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mic@sic.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mmodulegraphs.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mastmsgs.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mtypes.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mmagicsys.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mbitsets.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mnimsets.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@msemfold.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mmodulepaths.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mvmdef.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@msemdata.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mlinter.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mnimfix@sprettybase.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_editdistance.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_heapqueue.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mlookups.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mconcepts.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@msemtypinst.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mparampatterns.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mlowerings.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@msigmatch.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mimporter.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mprocfind.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mpragmas.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mreorder.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mpasses.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@msaturate.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mguards.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mtypeallowed.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@misolation_check.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mvarpartitions.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mtreetab.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mnilcheck.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@merrorhandling.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@msighashes.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mndi.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mcgendata.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mccgutils.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mliftdestructors.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@msempass2.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mcgmeth.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mliftlocals.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mlambdalifting.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mclosureiters.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mtransf.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mvmgen.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mvmdeps.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mvmmarshal.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mgorgeimpl.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mmacrocacheimpl.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mvmprofiler.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mevaltempl.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mvmconv.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mvm.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@maliases.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mpatterns.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@msemmacrosanity.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mpluginsupport.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mplugins@slocals.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mplugins@sitersgen.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mplugins@sactive.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@menumtostr.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mspawn.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@msem.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mdfa.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@moptimizer.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@minjectdestructors.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@msemparallel.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mcgen.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mic@sreplayer.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mmodules.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mscriptconfig.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mnimconf.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mpassaux.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mdepends.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mic@sdce.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mic@scbackend.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mic@sintegrity.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mic@snavigator.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@msourcemap.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mjsgen.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_rstast.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_lists.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_highlite.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_rst.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_rstgen.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_xmltree.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mtypesrenderer.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mrenderverbatim.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_base64.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_uri.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mdocgen.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mdocgen2.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mmain.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mcmdlinehelper.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\stdlib_browsers.nim.c.o" "C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimcache\r_windows_amd64\@mnim.nim.c.o" ' FAILURE bin\nim.exe c -o:bin\nimsuggest.exe -d:danger --skipUserCfg --skipParentCfg --hints:off nimsuggest/nimsuggest.nim C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\nimsuggest\config.nims(1, 2) Error: invalid command line option: '--filenames' FAILURE PS C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim>

Varriount commented 3 years ago

On a related note, perhaps the best way to test for these kinds of bugs is to have all the CICD stuff run in paths with spaces & other odd characters.

timotheecour commented 3 years ago

logs from https://github.com/nim-lang/Nim/issues/18334#issuecomment-867074611 shows:

gcc.exe: error: Projects\Stocks\Nim\icons\nim_icon.o: No such file or directory

which is same error as https://github.com/nim-lang/Nim/pull/17857, which I've already fixed in https://github.com/nim-lang/Nim/pull/17875; are you sure you're running from a fresh clone of nim?

idakandrew commented 3 years ago

I ran exactly what you provided, so it would be a fresh clone:

git clone https://github.com/nim-lang/Nim
cd Nim
build_all.bat
timotheecour commented 3 years ago

I see; looking at my own PR I did note the following:

there's still a bug which is bootstrap won't work if there's a space in dir until bootstrap version >= this PR ; until then we may need to change bootstrap logic to remove jsonscript (see proposal in https://github.com/nim-lang/Nim/pull/17875#issuecomment-829001197)

the fix suggested by araq is https://github.com/nim-lang/Nim/pull/17875#issuecomment-829142033

we can always leave out the icon linking in the first bootstrapping iteration instead

timotheecour commented 3 years ago

@idakandrew please try https://github.com/nim-lang/Nim/pull/18337 and see if it solves your problem (i don't have windows, can't test)

idakandrew commented 3 years ago

build_all.bat ran successfully this time. How do I go about testing this version of the compiler? (specifically pointing the compile command at it).

timotheecour commented 3 years ago

build_all.bat ran successfully this time. How do I go about testing this version of the compiler? (specifically pointing the compile command at it).

I'm confused by those 2 statements; does https://github.com/nim-lang/Nim/pull/18337 actually fix this issue? what do you mean by "pointing the compile command at it" ?

git clone https://github.com/nim-lang/Nim
cd Nim
git fetch origin pull/18337/head
git checkout FETCH_HEAD
build_all.bat

does this work and solve this problem? if so I'll undraft the PR

idakandrew commented 3 years ago

Using your branch, build_all.bat is now able to successfully complete (which means that the compiler is fully built I think). That part I can confirm. What I need now is to check if your fix will also extend to my initial compilation issue with crown.nim. My question is how to compile that file using your compiler branch rather than the default one I already had installed, because I can't actually find a "nim_compiler.exe" or anything like that.

timotheecour commented 3 years ago

after build_all.bat in some /pathto/Nim, you can use /pathto/Nim/bin/nim directly, or add it to your PATH, or use choosenim /pathto/Nim

idakandrew commented 3 years ago

Ok, I tried running the new branch via & 'C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\bin\nim.exe' c -r -d:release --gc:orc crown.nim but that still seems to be throwing the same error. Am I calling it wrong?

It's strange that it would have no affect on the original issue when it seems to have fixed an identical one with building the compiler itself. Maybe nimble has a similar issue since the path breaking occurs with the package?

Edit: Once again looking at what it passes to GCC, those first three -I arguments aren't quoted for some reason.

execution of an external compiler program 'gcc.exe -c  -w -fmax-errors=3 -mno-ms-bitfields -DWIN32_LEAN_AND_MEAN -Wall -D_DEFAULT_SOURCE -Wno-missing-braces -Werror=pointer-arith -fno-strict-aliasing -std=c99 -s -O1 -Werror=implicit-function-declaration -IC:\Users\Andrew Idak\.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled -IC:\Users\Andrew Idak\.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\include -IC:\Users\Andrew Idak\.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\external\glfw\deps\mingw -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33 -DPHYSAC_IMPLEMENTATION -DPHYSAC_NO_THREADS -DRAYGUI_IMPLEMENTATION -O3 -fno-strict-aliasing -fno-ident   -I"C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim\lib" -I"C:\Users\Andrew Idak\Desktop\Coding Projects\Stocks\Nim" -o "C:\Users\Andrew Idak\nimcache\crown_r\rglfw.c.o" "C:\Users\Andrew Idak\.nimble\pkgs\nimraylib_now-0.13.1\csources\raylib_mangled\rglfw.c"' failed with exit code: 1
timotheecour commented 3 years ago

that's a separate issue. after: git clone https://github.com/greenfork/nimraylib_now cd nimraylib_now look at: nimraylib_now/src/nimraylib_now/raylib_build_static.nim

it contains: {.passC: "-I" & RaylibSrcPath.} {.passC: "-I" & RaylibSrcPath / "external"/"glfw"/"include".} {.passC: "-I" & RaylibSrcPath / "external"/"glfw"/"deps"/"mingw".}

and if you follow the code, RaylibSrcPath returns an absolute path

this looks like a library error, the code above should use quoteShell IMO, because passC flag can accept arguments that are fed to the C compilation command directly, eg allow you to write:

{.passc:"-Ifoo1 -Dbar -flto".}

nim compiler can't guess whether RaylibSrcPath should be quoted here because multiple commands could be passed.

unless I'm missing something, there is nothing to fix here apart from https://github.com/nim-lang/Nim/pull/18337 and fixing nimraylib_now

possibly we could add a note on help msg for passc to make sure people use quoteShell as needed, but that's the only thing I can think of