jaylib icon indicating copy to clipboard operation
jaylib copied to clipboard

Build error on macos x

Open bentxt opened this issue 4 years ago • 3 comments

Hi The following error after running jpm build

git clone https://github.com/janet-lang/jaylib
cd jaylib/
git submodule update --init --recursive
jpm build
compiling build/src___main.o...
cc1: error: argument to '-O' should be a non-negative integer, 'g', 's' or 'fast'
error: command exited with status 1
  in shell [/Users/ben/builds/bin/jpm] (tailcall) on line 264, column 5
  in do-rule [/Users/ben/builds/bin/jpm] on line 100, column 24
  in do-rule [/Users/ben/builds/bin/jpm] on line 98, column 44
  in do-rule [/Users/ben/builds/bin/jpm] (tailcall) on line 98, column 44

My system:

ProductName: Mac OS X ProductVersion: 10.15.4 BuildVersion: 19E287

cc --version cc (Homebrew GCC 9.3.0_1) 9.3.0

bentxt avatar May 26 '20 14:05 bentxt

Can you please provide version of Janet? And I assume you are using homebrew to install it?

pepe avatar May 26 '20 18:05 pepe

No I used my self-built janet janet -v 1.9.0-dev-dd458c8

but I unlink it and I'm switching to brew now

brew install janet janet -v 1.9.1-meson

And again the latest from jaylib git clone https://github.com/janet-lang/jaylib git submodule update --init --recursive

Still the same

jpm build

compiling build/src___main.o...
cc1: error: argument to '-O' should be a non-negative integer, 'g', 's' or 'fast'
error: command exited with status 1
  in shell [/usr/local/bin/jpm] (tailcall) on line 128, column 5
  in do-rule [/usr/local/bin/jpm] on line 239, column 24
  in do-rule [/usr/local/bin/jpm] on line 237, column 44
  in do-rule [/usr/local/bin/jpm] (tailcall) on line 237, column 44

bentxt avatar May 27 '20 00:05 bentxt

Thank you. It seems like macos related thing.

pepe avatar May 27 '20 05:05 pepe