Using Tutorial Part 1 from nim-lang.org.
    
    > nim compile --run greetings.nim
    Hint: used config file '/etc/nim.cfg' [Conf]
    Hint: system [Processing]
    Hint: greetings [Processing]
    Hint: gcc -c  -w  -I/usr/lib/nim -o 
$HOME/.cache/nim/greetings_d/stdlib_io.nim.c.o 
$HOME/.cache/nim/greetings_d/stdlib_io.nim.c [Exec]
    In file included from 
/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed/syslimits.h:7:0,
                     from 
/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed/limits.h:34,
                     from $HOME/Downloads/nim-1.0.6/lib/nimbase.h:257,
                     from $HOME/.cache/nim/greetings_d/stdlib_io.nim.c:9:
    /usr/lib/gcc/x86_64-linux-gnu/7/include-fixed/limits.h:194:15: fatal error: 
limits.h: No such file or directory
     #include_next <limits.h>  /* recurse down to the real one */
                   ^~~~~~~~~~
    compilation terminated.
    Error: execution of an external program failed: 'gcc -c  -w  
-I$HOME/Downloads/nim-1.0.6/lib -I$HOME/scripts/nim -o 
$HOME/.cache/nim/greetings_d/stdlib_io.nim.c.o 
$HOME/.cache/nim/greetings_d/stdlib_io.nim.c'
    
    Tried with 0.17.2 and 1.06 and got the same error. limits.h is there.
    
    ls /usr/lib/gcc/x86_64-linux-gnu/7/include-fixed/limits.h
    /usr/lib/gcc/x86_64-linux-gnu/7/include-fixed/limits.h
    
    Line 194 of limits.h
    #include_next <limits.h>            /* recurse down to the real one */
    
    I have no idea what that means but it looks like limits.h is attempting to 
include itself and cannot find itself.  

Reply via email to