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

Fix CI #832

Merged
merged 1 commit into from Jan 10, 2019
Merged

Fix CI #832

merged 1 commit into from Jan 10, 2019

Conversation

ichizok
Copy link
Member

@ichizok ichizok commented Jan 10, 2019

build error in if_ruby.c:

if_ruby.c:1069:9: error: use of unknown builtin '__builtin_alloca_with_align' [-Wimplicit-function-declaration]
        buff = ALLOCA_N(char, RSTRING_LEN(str) + 1);
               ^
/usr/local/Cellar/ruby/2.6.0/include/ruby-2.6.0/ruby/ruby.h:1666:12: note: expanded from macro 'ALLOCA_N'
    (type*)__builtin_alloca_with_align((sizeof(type)*(n)), \
           ^
if_ruby.c:1069:9: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
/usr/local/Cellar/ruby/2.6.0/include/ruby-2.6.0/ruby/ruby.h:1666:5: note: expanded from macro 'ALLOCA_N'
    (type*)__builtin_alloca_with_align((sizeof(type)*(n)), \
    ^

Homebrew's ruby bottle for sierra has built by Xcode 9.x, which supports '__builtin_alloca_with_align' so 'ALLOCA_N' macro in ruby.h uses it, but Xcode 8.x doesn't support it then causes the above error.

For workaround, should reinstall ruby from source in xcode8.3.

build error in if_ruby.c:

```
if_ruby.c:1069:9: error: use of unknown builtin '__builtin_alloca_with_align' [-Wimplicit-function-declaration]
        buff = ALLOCA_N(char, RSTRING_LEN(str) + 1);
               ^
/usr/local/Cellar/ruby/2.6.0/include/ruby-2.6.0/ruby/ruby.h:1666:12: note: expanded from macro 'ALLOCA_N'
    (type*)__builtin_alloca_with_align((sizeof(type)*(n)), \
           ^
if_ruby.c:1069:9: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
/usr/local/Cellar/ruby/2.6.0/include/ruby-2.6.0/ruby/ruby.h:1666:5: note: expanded from macro 'ALLOCA_N'
    (type*)__builtin_alloca_with_align((sizeof(type)*(n)), \
    ^
```

Homebrew's ruby bottle for sierra has built by Xcode 9.x, which supports
'__builtin_alloca_with_align' so 'ALLOCA_N' macro in ruby.h uses it, but
Xcode 8.x doesn't support it then causes the above error.

For workaround, should reinstall ruby from source in xcode8.3.
@ychin
Copy link
Member

ychin commented Jan 10, 2019

Thanks. I have been meaning to look into this. Will merge this in once it passes Travis. It's unfortunate we have to do this though.

@ychin ychin merged commit 75ee1a5 into macvim-dev:master Jan 10, 2019
@ichizok ichizok deleted the fix/ci branch January 10, 2019 11:24
ichizok pushed a commit to ichizok/macvim that referenced this pull request Jan 18, 2019
Problem:    argv() and argc() only work on the current argument list.
Solution:   Add a window ID argument. (Yegappan Lakshmanan, closes macvim-dev#832)
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

Successfully merging this pull request may close these issues.

None yet

2 participants