I am trying to update Nim to 0.17.0. I am on current master branch. Since 
rebuilding with koch failed, I updated the csources and built nim from there – 
no problems.

Then, I try to rebuild koch with the new Nim. This generates the following 
error output:
    
    
    Hint: used config file '/Users/flyx/Projects/3rdParty/Nim/config/nim.cfg' 
[Conf]
    Hint: used config file '/Users/flyx/Projects/3rdParty/Nim/koch.nim.cfg' 
[Conf]
    Hint: system [Processing]
    Hint: koch [Processing]
    Hint: os [Processing]
    Hint: strutils [Processing]
    Hint: parseutils [Processing]
    Hint: math [Processing]
    Hint: algorithm [Processing]
    Hint: times [Processing]
    Hint: posix [Processing]
    Hint: parseopt [Processing]
    Hint: osproc [Processing]
    Hint: strtabs [Processing]
    Hint: hashes [Processing]
    Hint: etcpriv [Processing]
    Hint: streams [Processing]
    Hint: cpuinfo [Processing]
    Hint: kqueue [Processing]
    CC: compiler_koch
    CC: stdlib_system
    CC: stdlib_os
    CC: stdlib_strutils
    CC: stdlib_parseutils
    CC: stdlib_math
    CC: stdlib_algorithm
    CC: stdlib_times
    Error: execution of an external compiler program 'clang -c  -w  
-I/Users/flyx/Projects/3rdParty/Nim/lib -o 
/Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.o 
/Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.c' failed with exit 
code: 1
    
    /Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.c:322:30: error: 
expected ';' after expression
            nimfr_("find", "system.nim")
                                        ^
                                        ;
    /Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.c:364:34: error: 
expected ';' after expression
            nimfr_("contains", "system.nim")
                                            ^
                                            ;
    /Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.c:379:34: error: 
expected ';' after expression
            nimfr_("contains", "system.nim")
                                            ^
                                            ;
    /Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.c:393:28: error: 
expected ';' after expression
            nimfr_("*=", "system.nim")
                                      ^
                                      ;
    /Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.c:400:28: error: 
expected ';' after expression
            nimfr_("+=", "system.nim")
                                      ^
                                      ;
    /Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.c:425:36: error: 
expected ';' after expression
            nimfr_("intToStr", "strutils.nim")
                                              ^
                                              ;
    /Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.c:466:34: error: 
expected ';' after expression
            nimfr_("repeat", "strutils.nim")
                                            ^
                                            ;
    /Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.c:492:31: error: 
expected ';' after expression
            nimfr_("usrToCell", "gc.nim")
                                         ^
                                         ;
    /Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.c:501:31: error: 
expected ';' after expression
            nimfr_("rtlAddZCT", "gc.nim")
                                         ^
                                         ;
    /Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.c:508:36: error: 
expected ';' after expression
            nimfr_("asgnRefNoCycle", "gc.nim")
                                              ^
                                              ;
    /Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.c:547:36: error: 
expected ';' after expression
            nimfr_("parseInt", "strutils.nim")
                                              ^
                                              ;
    /Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.c:621:40: error: 
expected ';' after expression
            nimfr_("toLowerAscii", "strutils.nim")
                                                  ^
                                                  ;
    /Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.c:644:40: error: 
expected ';' after expression
            nimfr_("toLowerAscii", "strutils.nim")
                                                  ^
                                                  ;
    /Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.c:686:41: error: 
expected ';' after expression
            nimfr_("cmpIgnoreCase", "strutils.nim")
                                                   ^
                                                   ;
    /Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.c:732:40: error: 
expected ';' after expression
            nimfr_("toUpperAscii", "strutils.nim")
                                                  ^
                                                  ;
    /Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.c:755:40: error: 
expected ';' after expression
            nimfr_("toUpperAscii", "strutils.nim")
                                                  ^
                                                  ;
    /Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.c:794:32: error: 
expected ';' after expression
            nimfr_("find", "strutils.nim")
                                          ^
                                          ;
    /Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.c:829:33: error: 
expected ';' after expression
            nimfr_("strip", "strutils.nim")
                                           ^
                                           ;
    /Users/flyx/Projects/3rdParty/Nim/nimcache/stdlib_strutils.c:868:42: error: 
expected ';' after expression
            nimfr_("cmpIgnoreStyle", "strutils.nim")
                                                    ^
                                                    ;
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    20 errors generated.
    

What do I need to do to fix that? Seems like a code generation bug. This 
currently hinders me in actually upgrading NimYAML to 0.17.0.

Reply via email to