Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error on macos x #9

Open
bentxt opened this issue May 26, 2020 · 3 comments
Open

Build error on macos x #9

bentxt opened this issue May 26, 2020 · 3 comments

Comments

@bentxt
Copy link

bentxt commented May 26, 2020

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

@pepe
Copy link
Member

pepe commented May 26, 2020

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

@bentxt
Copy link
Author

bentxt commented May 27, 2020

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

@pepe
Copy link
Member

pepe commented May 27, 2020

Thank you. It seems like macos related thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants