Hello. I'm just start out with nim on a RHEL 7 system with gcc installed. I 
installed nim from the binary tar ball, wrote the _greetings.nim_ from the 
tutorial and tried to compile it with `nim compile greetings.nim`, but I get an 
error from the underlying C compiler. Here the complete output of the nim 
command
    
    
    Hint: used config file '/data/opt/nim/config/nim.cfg' [Conf]
    Hint: system [Processing]
    Hint: widestrs [Processing]
    Hint: io [Processing]
    Hint: greetings [Processing]
    CC: stdlib_io.nim
    CC: stdlib_system.nim
    CC: greetings.nim
    Hint:  [Link]
    /home/hl/.cache/nim/greetings_d/stdlib_io.nim.c.o: In function 
`echoBinSafe':
    stdlib_io.nim.c:(.text+0x246): undefined reference to 
`__builtin_saddll_overflow'
    /home/hl/.cache/nim/greetings_d/stdlib_io.nim.c.o: In function 
`readLine__FbqDHP9bu7nqCh9c04dnSOxw':
    stdlib_io.nim.c:(.text+0xdaf): undefined reference to 
`__builtin_saddll_overflow'
    stdlib_io.nim.c:(.text+0xe68): undefined reference to 
`__builtin_saddll_overflow'
    stdlib_io.nim.c:(.text+0x111a): undefined reference to 
`__builtin_ssubll_overflow'
    stdlib_io.nim.c:(.text+0x11ba): undefined reference to 
`__builtin_ssubll_overflow'
    stdlib_io.nim.c:(.text+0x1215): undefined reference to 
`__builtin_ssubll_overflow'
    stdlib_io.nim.c:(.text+0x130a): undefined reference to 
`__builtin_ssubll_overflow'
    stdlib_io.nim.c:(.text+0x13ca): undefined reference to 
`__builtin_ssubll_overflow'
    stdlib_io.nim.c:(.text+0x149b): undefined reference to 
`__builtin_saddll_overflow'
    stdlib_io.nim.c:(.text+0x14c4): undefined reference to 
`__builtin_ssubll_overflow'
    stdlib_io.nim.c:(.text+0x1506): undefined reference to 
`__builtin_saddll_overflow'
    stdlib_io.nim.c:(.text+0x15cf): undefined reference to 
`__builtin_ssubll_overflow'
    stdlib_io.nim.c:(.text+0x16be): undefined reference to 
`__builtin_saddll_overflow'
    stdlib_io.nim.c:(.text+0x1719): undefined reference to 
`__builtin_saddll_overflow'
    /home/hl/.cache/nim/greetings_d/stdlib_system.nim.c.o: In function `newSeq':
    stdlib_system.nim.c:(.text+0xa3c0): undefined reference to 
`__builtin_smulll_overflow'
    stdlib_system.nim.c:(.text+0xa3e3): undefined reference to 
`__builtin_saddll_overflow'
    /home/hl/.cache/nim/greetings_d/stdlib_system.nim.c.o: In function 
`atomicInc__v6qORsZ9azlHHhOL1JYACRAsystem':
    stdlib_system.nim.c:(.text+0xb98a): undefined reference to 
`__builtin_saddll_overflow'
    collect2: error: ld returned 1 exit status
    Error: execution of an external program failed: 'gcc   -o 
/data/hl/devel/nim/begin/greetings  
/home/hl/.cache/nim/greetings_d/stdlib_io.nim.c.o 
/home/hl/.cache/nim/greetings_d/stdlib_system.nim.c.o 
/home/hl/.cache/nim/greetings_d/@mgreetings.nim.c.o    -ldl'

Any idea how to rectify this? 

Reply via email to