mys-lang / mys

The Mys programming language - an attempt to create a statically typed Python-like language that produces fast binaries. See https://mys-lang.org for more information.
Other
132 stars 5 forks source link

linker error on MacOS #9

Closed phillvancejr closed 3 years ago

phillvancejr commented 3 years ago

Hi just trying out mys, when I try to run the foo example on MacOS High Sierra I get a linker error

ld: library not found for -lcrt0.o
eerimoq commented 3 years ago

The problem is probably the static linking. I can make it dynamic if you want to give it a try. Did you install using pip, or did you clone this repository?

phillvancejr commented 3 years ago

I used pip. And yes you're right, I went into the makefile and removed both --gc-sections and -static and it builds now. It looks like these options are not supported on MacOS

eerimoq commented 3 years ago

Ok, I'll remove these and create a new release.

eerimoq commented 3 years ago

Done. Run pip3 install -U mys, or similar. -U means upgrade.

phillvancejr commented 3 years ago

Awesome, it works!