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

Unable to install ffi version 1.11.1 on apple silicon M2 #1068

Closed
artoodeeto opened this issue Dec 30, 2023 · 2 comments
Closed

Unable to install ffi version 1.11.1 on apple silicon M2 #1068

artoodeeto opened this issue Dec 30, 2023 · 2 comments

Comments

@artoodeeto
Copy link

Hello. Would like to apologize for posting another apple silicon issue, but I don't know who to ask for help. Im trying to install ```ffi 1.11.1` using bundle install but I get this error:

An error occurred while installing ffi (1.11.1), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.11.1' --source 'http://rubygems.org/'` succeeds before bundling.

In Gemfile:
  spree was resolved to 3.1.3, which depends on
    spree_backend was resolved to 3.1.3, which depends on
      bootstrap-sass was resolved to 3.3.7, which depends on
        sass was resolved to 3.7.4, which depends on
          sass-listen was resolved to 4.0.0, which depends on
            rb-inotify was resolved to 0.10.0, which depends on
              ffi

so I did what it ask. I ran command:

gem install ffi -v '1.11.1' --source 'http://rubygems.org/'

then get this error. This is where I'm stuck:

current directory: /Users/marialuisagako/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/ffi-1.11.1/ext/ffi_c
make "DESTDIR=" clean

current directory: /Users/marialuisagako/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/ffi-1.11.1/ext/ffi_c
make "DESTDIR="
compiling Thread.c
compiling Buffer.c
Buffer.c:266:45: warning: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts
[-Wcompound-token-split-by-macro]
        return order == BIG_ENDIAN ? ID2SYM(rb_intern("big")) : ID2SYM(rb_intern("little"));
                                            ^~~~~~~~~~~~~~~~
/Users/marialuisagako/.rbenv/versions/2.3.6/include/ruby-2.3.0/ruby/ruby.h:1733:23: note: expanded from macro 'rb_intern'
        __extension__ (CONST_ID_CACHE((ID), (str))) : \
                      ^
/Users/marialuisagako/.rbenv/versions/2.3.6/include/ruby-2.3.0/ruby/ruby.h:406:29: note: expanded from macro 'ID2SYM'
#define ID2SYM(x) RB_ID2SYM(x)
                            ^
/Users/marialuisagako/.rbenv/versions/2.3.6/include/ruby-2.3.0/ruby/ruby.h:401:33: note: expanded from macro 'RB_ID2SYM'
#define RB_ID2SYM(x) (rb_id2sym(x))
                                ^
Buffer.c:266:45: note: '{' token is here
        return order == BIG_ENDIAN ? ID2SYM(rb_intern("big")) : ID2SYM(rb_intern("little"));
                                            ^~~~~~~~~~~~~~~~
/Users/marialuisagako/.rbenv/versions/2.3.6/include/ruby-2.3.0/ruby/ruby.h:1733:24: note: expanded from macro 'rb_intern'
        __extension__ (CONST_ID_CACHE((ID), (str))) : \
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/marialuisagako/.rbenv/versions/2.3.6/include/ruby-2.3.0/ruby/ruby.h:1726:37: note: expanded from macro 'CONST_ID_CACHE'
#define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/marialuisagako/.rbenv/versions/2.3.6/include/ruby-2.3.0/ruby/ruby.h:1718:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
    {                                                   \
    ^
/Users/marialuisagako/.rbenv/versions/2.3.6/include/ruby-2.3.0/ruby/ruby.h:406:29: note: expanded from macro 'ID2SYM'
#define ID2SYM(x) RB_ID2SYM(x)
                            ^
/Users/marialuisagako/.rbenv/versions/2.3.6/include/ruby-2.3.0/ruby/ruby.h:401:33: note: expanded from macro 'RB_ID2SYM'
#define RB_ID2SYM(x) (rb_id2sym(x))
                                ^
Buffer.c:266:45: warning: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts
[-Wcompound-token-split-by-macro]
        return order == BIG_ENDIAN ? ID2SYM(rb_intern("big")) : ID2SYM(rb_intern("little"));
                                            ^~~~~~~~~~~~~~~~
/Users/marialuisagako/.rbenv/versions/2.3.6/include/ruby-2.3.0/ruby/ruby.h:1733:24: note: expanded from macro 'rb_intern'
        __extension__ (CONST_ID_CACHE((ID), (str))) : \
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/marialuisagako/.rbenv/versions/2.3.6/include/ruby-2.3.0/ruby/ruby.h:1726:37: note: expanded from macro 'CONST_ID_CACHE'
#define CONST_ID_CACHE(result, str) RUBY_CONST_ID_CACHE(result, str)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/marialuisagako/.rbenv/versions/2.3.6/include/ruby-2.3.0/ruby/ruby.h:1723:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
    }
    ^
/Users/marialuisagako/.rbenv/versions/2.3.6/include/ruby-2.3.0/ruby/ruby.h:406:29: note: expanded from macro 'ID2SYM'
#define ID2SYM(x) RB_ID2SYM(x)
                            ^
/Users/marialuisagako/.rbenv/versions/2.3.6/include/ruby-2.3.0/ruby/ruby.h:401:33: note: expanded from macro 'RB_ID2SYM'
#define RB_ID2SYM(x) (rb_id2sym(x))

its a long error so I redacted part of it but its just the same. I tried a lot of different things. ive been stuck on this error for 3 days now and I'm ready to give up. sorry for the drama but I'm really tired. thank you

@Bluesands
Copy link

i have the same error

@larskanis
Copy link
Member

Please update to a newer ffi version and probably other gems as well by using the bundler tools. We can't support such old versions.

@larskanis larskanis closed this as not planned Won't fix, can't repro, duplicate, stale May 14, 2024
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

3 participants