Hi all,
I am running Scientific Linux:
NAME="Scientific Linux" VERSION="7.8 (Nitrogen)"
I have installed:
gcc version 9.1.1 20190605 (Red Hat 9.1.1-2) (GCC)
My Nim version is:
Nim Compiler Version 1.2.0 [Linux: amd64] Compiled at 2020-04-03
When I create a simple "helloworld.nim" program that does a simple "echo" and try compile it I keep getting the following error:
[lgrice@adaptivebrane nim]$ nim compile --run helloworld.nim Hint: used config file '/opt/nim-1.2.0/config/nim.cfg' [Conf] Hint: system [Processing] Hint: widestrs [Processing] Hint: io [Processing] Hint: helloworld [Processing] Hint: [Link]
stdlib_io.nim.c:(.text+0x246): undefined reference to __builtin_saddll_overflow'
stdlib_system.nim.c:(.text+0xa3c0): undefined reference to __builtin_smulll_overflow
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 /home/lgrice/Desktop/nim/helloworld /home/lgrice/.cache/nim/helloworld_d/stdlib_io.nim.c.o /home/lgrice/.cache/nim/helloworld_d/stdlib_system.nim.c.o /home/lgrice/.cache/nim/helloworld_d/@mhelloworld.nim.c.o -ldl' [lgrice@adaptivebrane nim]$
I have been looking up what this issue could be and can only assume it is my GCC version somehow or something version related.
To be sure I actually compiled Nim from source using GCC 9.1.1...
Any help would be hugely appreciated
Lynton
Hi all,
Instead of downloading the source from the nim website I pulled it from github now and compiled it that way.....and working now....
Issue solved...;-)
Lynton