what is minimum osx to run nim?
trying on osx 10.6.8 and having some issues.
I don't have a clue but I would try to get Homebrew with CLANG or GCC running instead of the old apple toolchains.
Still need Rosetta? I would try to switch to an VM setup instead of keeping 10.6.8 alive.
will try to go with gcc.
nim compiler compiles ok (clang), but when i compile .nim code it crashes on execution.
oterwise it is not about roseta as much as it is hardware (i think i can go up to yosemite but i am afraid that i will choke this laptop (and there is virtually no coming back once upgrade))
ljgww: nim compiler compiles ok (clang), but when i compile .nim code it crashes on execution.
This is really odd. I was using a Snow Leopard machine myself (and am still on Mountain Lion on one) until recently and didn't have any issues there (well, other than the usual ones of having to deal with an outdated version of Xcode and libraries). Can you provide a stack backtrace to show where it crashes?
stand corrected: compiler would not compile .nim (nim.cfg untouched)
$ ./nim c /Users/lj/dev/Nim/examples/hallo.nim config/nim.cfg(45, 2) Hint: added path: '/Users/lj/.babel/pkgs/' [Path] config/nim.cfg(46, 2) Hint: added path: '/Users/lj/.nimble/pkgs/' [Path] SIGSEGV: Illegal storage access. (Attempt to read from nil?)
at first I tried to compile koch
Fixed!
in csources/build.sh
changed to use gcc instead of clang
- darwin )
- myos="macosx"
CC="gcc" LINKER="gcc"
compiled Nim again, then koch and now koch is functional!!! no: SIGSEGV: Illegal storage access. (Attempt to read from nil?)
my setup:
OSX 10.6.8.
$ clang --version Apple clang version 2.0 (tags/Apple/clang-139) (based on LLVM 2.9svn) Target: x86_64-apple-darwin10 Thread model: posix
compiling with clang was success but compiler was failing
$ gcc --version i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
compiling with gcc was success and nim compiler is not failing.