Skip to content

JRuby & M1 Mac: invalid arch name '-arch aarch64' #231

Open
@mohamedhafez

Description

When I try to gem install sassc under JRuby 9.3.3.0 with my M1 Macbook, I get the following error (even though it works fine under Ruby 3.0.3)

Fetching sassc-2.4.0.gem
Building native extensions. This could take a while...
ERROR:  Error installing sassc:
	ERROR: Failed to build gem native extension.

    current directory: /Users/mohamed/.rvm/gems/jruby-9.3.3.0/gems/sassc-2.4.0/ext
/Users/mohamed/.rvm/rubies/jruby-9.3.3.0/bin/jruby -I /Users/mohamed/.rvm/rubies/jruby-9.3.3.0/lib/ruby/stdlib -r ./siteconf20220222-70925-2bsyqb.rb extconf.rb
creating Makefile

current directory: /Users/mohamed/.rvm/gems/jruby-9.3.3.0/gems/sassc-2.4.0/ext
make DESTDIR\= clean

current directory: /Users/mohamed/.rvm/gems/jruby-9.3.3.0/gems/sassc-2.4.0/ext
make DESTDIR\=
compiling ./libsass/src/ast.cpp
clang: error: invalid arch name '-arch aarch64'
make: *** [ast.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/mohamed/.rvm/gems/jruby-9.3.3.0/gems/sassc-2.4.0 for inspection.
Results logged to /Users/mohamed/.rvm/gems/jruby-9.3.3.0/extensions/universal-java-17/2.6.0/sassc-2.4.0/gem_make.out

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions