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

ffi 1.11 fails to build on ruby 1.9.3 #699

Closed
aflat opened this issue May 17, 2019 · 2 comments
Closed

ffi 1.11 fails to build on ruby 1.9.3 #699

aflat opened this issue May 17, 2019 · 2 comments

Comments

@aflat
Copy link

aflat commented May 17, 2019

I can't build fpm on centos6 because it requires me to build ruby 1.9.3. I can compile ruby 1.9.3, then I try to gem install fpm, which depends on ffi. When it tries to compile ffi 1.11 it fails

make[3]: Leaving directory `/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.11.0/ext/ffi_c/libffi-x86_64-linux'
make[2]: Leaving directory `/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.11.0/ext/ffi_c/libffi-
make[1]: Leaving directory `/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.11.0/ext/ffi_c/libffi-x86_64-linux'
compiling Pointer.c
compiling Platform.c
compiling StructLayout.c
compiling Buffer.c
compiling MethodHandle.c
compiling LongDouble.c
compiling Type.c
compiling StructByValue.c
compiling Call.c
Call.c:46:25: error: ruby/thread.h: No such file or directory

using ffi 1.10 works fine.

larskanis added a commit that referenced this issue May 18, 2019
@larskanis
Copy link
Member

ffi-1.11.0 will no longer work on Ruby-1.9. We removed the old compatibility code in #683 . I just forgot to raise the ruby version requirement in the gemspec. You'll have to stay at ffi-1.10.0 or update ruby.

benoittgt added a commit to rspec/rspec-support that referenced this issue May 18, 2019
CI was failing for 1.9.2 and 1.9.3. This is due to
ffi/ffi#683

Related:
- ffi/ffi#699
benoittgt added a commit to rspec/rspec-expectations that referenced this issue May 18, 2019
benoittgt added a commit to rspec/rspec-collection_matchers that referenced this issue May 18, 2019
benoittgt added a commit to rspec/rspec-collection_matchers that referenced this issue May 18, 2019
CI was failing for 1.9.2 and 1.9.3. This is due to
ffi/ffi#683

Related:
- ffi/ffi#699
benoittgt added a commit to rspec/rspec-collection_matchers that referenced this issue May 18, 2019
CI was failing for 1.9.2 and 1.9.3. This is due to
ffi/ffi#683

Related:
- ffi/ffi#699
benoittgt added a commit to rspec/rspec-support that referenced this issue May 18, 2019
CI was failing for 1.9.2 and 1.9.3. This is due to
ffi/ffi#683

Related:
- ffi/ffi#699
benoittgt added a commit to rspec/rspec-expectations that referenced this issue May 18, 2019
CI was failing for 1.9.2 and 1.9.3. This is due to
ffi/ffi#683

Related:
- ffi/ffi#699
benoittgt added a commit to benoittgt/rspec-mocks that referenced this issue May 18, 2019
benoittgt added a commit to rspec/rspec-mocks that referenced this issue May 18, 2019
@mvz
Copy link
Contributor

mvz commented May 19, 2019

How about testing down to version 2.0 on Travis to avoid this happening in the future?

JonRowe pushed a commit to rspec/rspec-mocks that referenced this issue May 19, 2019
benoittgt added a commit to rspec/rspec-collection_matchers that referenced this issue May 19, 2019
CI was failing for 1.9.2 and 1.9.3. This is due to
ffi/ffi#683

Related:
- ffi/ffi#699
benoittgt added a commit to rspec/rspec-expectations that referenced this issue May 19, 2019
CI was failing for 1.9.2 and 1.9.3. This is due to
ffi/ffi#683

Related:
- ffi/ffi#699
benoittgt added a commit to rspec/rspec-support that referenced this issue May 19, 2019
CI was failing for 1.9.2 and 1.9.3. This is due to
ffi/ffi#683

Related:
- ffi/ffi#699
benoittgt added a commit to rspec/rspec-collection_matchers that referenced this issue May 19, 2019
CI was failing for 1.9.2 and 1.9.3. This is due to
ffi/ffi#683

Related:
- ffi/ffi#699
benoittgt added a commit to rspec/rspec-expectations that referenced this issue May 19, 2019
CI was failing for 1.9.2 and 1.9.3. This is due to
ffi/ffi#683

Related:
- ffi/ffi#699
JonRowe pushed a commit to rspec/rspec-expectations that referenced this issue May 20, 2019
CI was failing for 1.9.2 and 1.9.3. This is due to
ffi/ffi#683

Related:
- ffi/ffi#699
JonRowe pushed a commit to rspec/rspec-mocks that referenced this issue Jun 13, 2019
JonRowe pushed a commit to rspec/rspec-mocks that referenced this issue Jun 13, 2019
JonRowe pushed a commit to rspec/rspec-expectations that referenced this issue Oct 7, 2019
CI was failing for 1.9.2 and 1.9.3. This is due to
ffi/ffi#683

Related:
- ffi/ffi#699
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this issue Oct 6, 2021
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this issue Oct 6, 2021
…c-expectations#1115)

CI was failing for 1.9.2 and 1.9.3. This is due to
ffi/ffi#683

Related:
- ffi/ffi#699

---
This commit was imported from rspec/rspec-expectations@dbf72e5.
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this issue Oct 6, 2021
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this issue Oct 6, 2021
…c-expectations#1115)

CI was failing for 1.9.2 and 1.9.3. This is due to
ffi/ffi#683

Related:
- ffi/ffi#699

---
This commit was imported from rspec/rspec-expectations@1044d4e.
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