[DRE-maint] Bug#720231: ruby-opengl: FTBFS with ruby2.0: ruby.h:24:25: fatal error: ruby/config.h: No such file or directory

David Suárez david.sephirot at gmail.com
Mon Aug 19 19:11:36 UTC 2013


Source: ruby-opengl
Version: 0.60.1+dfsg2-1
Severity: important
Tags: jessie sid
User: debian-ruby at lists.debian.org
Usertags: ruby2-ftbfs-20130818 ruby2-ftbfs
Justification: FTBFS on amd64 with ruby2.0

Hi,

During a rebuild of all packages that build depends on gem2deb
using the new ruby2.0 interpreter, your package failed to build
on amd64.

Relevant part (hopefully):
> gcc -fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC  -Wall -DRUBY_VERSION=200  -I/usr/include/ruby-2.0.0 -I/usr/include/ruby-2.0.0/x86_64-linux-gnu -I/usr/lib/x86_64-linux-gnu/ruby/2.0.0 -I/usr/local/lib/site_ruby/2.0.0 -I. -c gl-1.0-1.1.c
> In file included from /usr/include/ruby-2.0.0/ruby.h:33:0,
>                  from ../common/common.h:25,
>                  from gl-1.0-1.1.c:18:
> /usr/include/ruby-2.0.0/ruby/ruby.h:24:25: fatal error: ruby/config.h: No such file or directory
>  #include "ruby/config.h"
>                          ^
> compilation terminated.
> rake aborted!
> Command failed with status (1): [gcc -fPIC -g -O2 -fstack-protector --param...]
> /«BUILDDIR»/ruby-opengl-0.60.1+dfsg2/ext/gl/Rakefile:29:in `block in <top (required)>'
> Tasks: TOP => install => gl.so => gl-1.0-1.1.o
> (See full trace by running task with --trace)
> 	from /usr/lib/ruby/2.0.0/rubygems/ext/rake_builder.rb:33:in `build'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:62:in `block in build_and_install'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:61:in `chdir'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:61:in `build_and_install'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:75:in `block in build_all_extensions'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:72:in `each'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:72:in `build_all_extensions'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:88:in `<main>'
> /usr/bin/ruby2.0 mkrf_conf.rb
> 
> /usr/bin/rake clobber && /usr/bin/rake install RUBYARCHDIR=/«BUILDDIR»/ruby-opengl-0.60.1+dfsg2/debian/ruby-opengl/usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/2.0.0 RUBYLIBDIR=/«BUILDDIR»/ruby-opengl-0.60.1+dfsg2/debian/ruby-opengl/usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/2.0.0
> gcc -fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC  -Wall -DRUBY_VERSION=200  -I/usr/include/ruby-2.0.0 -I/usr/include/ruby-2.0.0/x86_64-linux-gnu -I/usr/lib/x86_64-linux-gnu/ruby/2.0.0 -I/usr/local/lib/site_ruby/2.0.0 -I. -c gl-1.0-1.1.c
> In file included from /usr/include/ruby-2.0.0/ruby.h:33:0,
>                  from ../common/common.h:25,
>                  from gl-1.0-1.1.c:18:
> /usr/include/ruby-2.0.0/ruby/ruby.h:24:25: fatal error: ruby/config.h: No such file or directory
>  #include "ruby/config.h"
>                          ^
> compilation terminated.
> rake aborted!
> Command failed with status (1): [gcc -fPIC -g -O2 -fstack-protector --param...]
> /«BUILDDIR»/ruby-opengl-0.60.1+dfsg2/ext/gl/Rakefile:29:in `block in <top (required)>'
> Tasks: TOP => install => gl.so => gl-1.0-1.1.o
> (See full trace by running task with --trace)
> /usr/lib/ruby/vendor_ruby/gem2deb.rb:54:in `run': [/usr/bin/ruby2.0 -I/usr/lib/ruby/vendor_ruby /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb /«BUILDDIR»/ruby-opengl-0.60.1+dfsg2 debian/ruby-opengl failed!] (Gem2Deb::CommandFailed)
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:36:in `block in install_files_and_build_extensions'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:34:in `each'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:34:in `install_files_and_build_extensions'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:68:in `block in install'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:66:in `each'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:66:in `install'
> 	from /usr/bin/dh_ruby:62:in `block (2 levels) in <main>'
> 	from /usr/lib/ruby/1.9.1/optparse.rb:1360:in `call'
> 	from /usr/lib/ruby/1.9.1/optparse.rb:1360:in `block in parse_in_order'
> 	from /usr/lib/ruby/1.9.1/optparse.rb:1347:in `catch'
> 	from /usr/lib/ruby/1.9.1/optparse.rb:1347:in `parse_in_order'
> 	from /usr/lib/ruby/1.9.1/optparse.rb:1341:in `order!'
> 	from /usr/lib/ruby/1.9.1/optparse.rb:1432:in `permute!'
> 	from /usr/lib/ruby/1.9.1/optparse.rb:1453:in `parse!'
> 	from /usr/bin/dh_ruby:66:in `<main>'
> dh_auto_install: dh_ruby --install /«BUILDDIR»/ruby-opengl-0.60.1+dfsg2/debian/ruby-opengl returned exit code 1
> make: *** [binary] Error 1

The full build log is available from:
  http://aws-logs.debian.net/ftbfs-logs/ruby2.0/ruby-opengl_0.60.1+dfsg2-1_unstable_ruby2.log

This build is part of an effort to add gem2deb support for ruby2.0.
Information about is available at https://wiki.debian.org/Teams/Ruby/Jessie.

About the rebuild: The rebuild was done on EC2 VM instances from Amazon Web Services,
using a clean, minimal and up-to-date chroot, plus gem2deb and ruby2.0 packages from
the repository at http://people.debian.org/~terceiro/packages/. The gem2deb version
in that repository does not pull ruby1.8 as a dependency anymore, and builds packages
against ruby1.9.1 and ruby2.0. Every failed build was retried once to eliminate random
failures.

The version of gem2deb used for this rebuild, as well as ruby2.0,
will be uploaded to unstable soon.



More information about the Pkg-ruby-extras-maintainers mailing list