sass / sassc-ruby

Use libsass with Ruby!
MIT License
364 stars 157 forks source link

Sassc 2.4.0 installation error in Mac 14.7 (Sonoma) with Ruby 3.3.4 #248

Open AdamJacobson opened 3 weeks ago

AdamJacobson commented 3 weeks ago

Been trying to bundle install but it keeps failing on sassc.

Here's the tail end of running gem install sassc -v '2.4.0' --verbose

HEAD https://index.rubygems.org/
200 OK
GET https://index.rubygems.org/info/sassc
200 OK
GET https://index.rubygems.org/info/ffi
200 OK
/Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/.gitignore
/Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/.gitmodules
<.... TRUNCATED FOR BREVITY ....>
/Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/test/sass_2_scss_test.rb
/Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/test/test_helper.rb
Building native extensions. This could take a while...
current directory: /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/ext
["/Users/adam.jacobson/.asdf/installs/ruby/3.3.0/bin/ruby", "extconf.rb"]
creating Makefile
current directory: /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/ext
["make", "DESTDIR=", "sitearchdir=./.gem.20241008-94702-ngoxqy", "sitelibdir=./.gem.20241008-94702-ngoxqy", "clean"]
current directory: /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/ext
["make", "DESTDIR=", "sitearchdir=./.gem.20241008-94702-ngoxqy", "sitelibdir=./.gem.20241008-94702-ngoxqy"]
compiling ./libsass/src/ast.cpp
make: *** [ast.o] Error 1
ERROR:  Error installing sassc:
    ERROR: Failed to build gem native extension.

    current directory: /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/ext
/Users/adam.jacobson/.asdf/installs/ruby/3.3.0/bin/ruby extconf.rb
current directory: /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/ext
make DESTDIR\= sitearchdir\=./.gem.20241008-94702-ngoxqy sitelibdir\=./.gem.20241008-94702-ngoxqy clean
current directory: /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/ext
make DESTDIR\= sitearchdir\=./.gem.20241008-94702-ngoxqy sitelibdir\=./.gem.20241008-94702-ngoxqy
Building has failed. See above output for more information on the failure.
make failed, exit code 2

Gem files will remain installed in /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0 for inspection.
Results logged to /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/extensions/arm64-darwin-23/3.3.0/sassc-2.4.0/gem_make.out
yzhengya commented 3 weeks ago

Same issue here, but I'm using Ruby-3.2.2. @AdamJacobson Did you fix it?

yzhengya commented 3 weeks ago

FYI - this helped me resolve the issue: https://github.com/sass/sassc-ruby/issues/225#issuecomment-2391129846

AdamJacobson commented 2 weeks ago

@yzhengya Unfortunately that did not resolve it for me. I will note, I am using a company issued laptop and cannot rule out something going wrong with permissions (I need to request temporary admin access to delete /Library/Developer/CommandLineTools/).

truonglocbinh commented 1 day ago

I have same issue with sassc with ruby 3.1.1

truonglocbinh commented 19 hours ago

@AdamJacobson did you resolve this issue