You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
brew install tcc
nimble install nrpl
nrpl
> echo 1
/usr/lib/crt1.o: error: unrecognized file type
tcc: error: file 'crt1.o' not found
tcc: error: file 'crti.o' not found
/usr/lib/libdl.dylib: error: bad architecture
tcc: error: library 'dl' not found
Error: execution of an external program failed: 'tcc -o /Users/timothee/git_clone/nim/timn/nrpltmp -ldl /Users/timothee/git_clone/nim/timn/nimcache/nrpltmp.o /Users/timothee/git_clone/nim/timn/nimcache/stdlib_system.o'
NOTE: tcc is potentially nice to support, for compile times (important in repl)
workaround:
after #17, use nrpl will use clang by default (also now overridable with --cc:clang )
EDIT: actually tcc -run works (with warnings) even if tcc -c doesn't, so could maybe be used like that (we can only run directly, not compile)
EDIT: see https://github.com/TinyCC/tinycc/issues/8
The text was updated successfully, but these errors were encountered:
timotheecour
changed the title
[OSX] /usr/lib/crt1.o: error: unrecognized file type
[OSX] /usr/lib/crt1.o: error: unrecognized file type (with cc:tcc)
Apr 4, 2018
timotheecour
changed the title
[OSX] /usr/lib/crt1.o: error: unrecognized file type (with cc:tcc)
tcc doesn't work on OSX: /usr/lib/crt1.o: error: unrecognized file type
Apr 4, 2018
specific to OSX
links
brew install tcc
https://lists.gnu.org/archive/html/tinycc-devel/2017-02/msg00103.html
https://stackoverflow.com/questions/3712902/problems-compiling-tcc-on-os-x
https://github.com/andreiw/tinycc possible port with improved support; but see andreiw/tinycc#1
NOTE: tcc is potentially nice to support, for compile times (important in repl)
workaround:
after #17, use nrpl will use clang by default (also now overridable with --cc:clang )
EDIT: actually
tcc -run
works (with warnings) even iftcc -c
doesn't, so could maybe be used like that (we can only run directly, not compile)EDIT: see https://github.com/TinyCC/tinycc/issues/8
The text was updated successfully, but these errors were encountered: