Skip to content

Instantly share code, notes, and snippets.

@PragTob
Created September 14, 2011 13:55
Show Gist options
  • Save PragTob/1216617 to your computer and use it in GitHub Desktop.
Save PragTob/1216617 to your computer and use it in GitHub Desktop.
Error when trying to install native extensions of Ray on Linux Mint 11 64 bit (all deps installed)
Fetching source index for http://rubygems.org/
Installing ray (0.2.0) with native extensions /home/tobi/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:533:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/home/tobi/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
checking for GL/glxext.h... yes
checking for X11/extensions/Xrandr.h... yes
checking for main() in -lXrandr... yes
checking for main() in -lX11... yes
checking for main() in -lGL... yes
checking for main() in -lGLEW... yes
checking for main() in -lopenal... yes
checking for main() in -lsndfile... yes
creating Makefile
make
gcc -I. -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I. -DHAVE_GL_GLXEXT_H -DHAVE_X11_EXTENSIONS_XRANDR_H -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -Wextra -Wall -Wno-unused-parameter -std=gnu99 -I/usr/include/freetype2 -DSAY_X11 -o polygon.o -c polygon.c
gcc -I. -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I. -DHAVE_GL_GLXEXT_H -DHAVE_X11_EXTENSIONS_XRANDR_H -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -Wextra -Wall -Wno-unused-parameter -std=gnu99 -I/usr/include/freetype2 -DSAY_X11 -o shader.o -c shader.c
gcc -I. -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I. -DHAVE_GL_GLXEXT_H -DHAVE_X11_EXTENSIONS_XRANDR_H -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -Wextra -Wall -Wno-unused-parameter -std=gnu99 -I/usr/include/freetype2 -DSAY_X11 -o gl_index_buffer.o -c gl_index_buffer.c
gcc -I. -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I. -DHAVE_GL_GLXEXT_H -DHAVE_X11_EXTENSIONS_XRANDR_H -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -Wextra -Wall -Wno-unused-parameter -std=gnu99 -I/usr/include/freetype2 -DSAY_X11 -o say_renderer.o -c say_renderer.c
gcc -I. -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I. -DHAVE_GL_GLXEXT_H -DHAVE_X11_EXTENSIONS_XRANDR_H -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -Wextra -Wall -Wno-unused-parameter -std=gnu99 -I/usr/include/freetype2 -DSAY_X11 -o say_image_target.o -c say_image_target.c
gcc -I. -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I. -DHAVE_GL_GLXEXT_H -DHAVE_X11_EXTENSIONS_XRANDR_H -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -Wextra -Wall -Wno-unused-parameter -std=gnu99 -I/usr/include/freetype2 -DSAY_X11 -o say_window.o -c say_window.c
In file included from say_window.c:12:0:
say_x11_window.h: In function ‘say_imp_window_open’:
say_x11_window.h:195:18: warning: assignment discards qualifiers from pointer target type
say_x11_window.h:196:18: warning: assignment discards qualifiers from pointer target type
gcc -I. -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I. -DHAVE_GL_GLXEXT_H -DHAVE_X11_EXTENSIONS_XRANDR_H -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -Wextra -Wall -Wno-unused-parameter -std=gnu99 -I/usr/include/freetype2 -DSAY_X11 -o vector.o -c vector.c
gcc -I. -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I. -DHAVE_GL_GLXEXT_H -DHAVE_X11_EXTENSIONS_XRANDR_H -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -Wextra -Wall -Wno-unused-parameter -std=gnu99 -I/usr/include/freetype2 -DSAY_X11 -o color.o -c color.c
gcc -I. -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/tobi/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I. -DHAVE_GL_GLXEXT_H -DHAVE_X11_EXTENSIONS_XRANDR_H -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -Wextra -Wall -Wno-unused-parameter -std=gnu99 -I/usr/include/freetype2 -DSAY_X11 -o say_context.o -c say_context.c
say_context.c: In function ‘say_context_glew_init’:
say_context.c:231:3: error: ‘glVertexAttribDivisor’ undeclared (first use in this function)
say_context.c:231:3: note: each undeclared identifier is reported only once for each function it appears in
make: *** [say_context.o] Error 1
Gem files will remain installed in /home/tobi/.rvm/gems/ruby-1.9.2-p180@Pugnacious-Juices/gems/ray-0.2.0 for inspection.
Results logged to /home/tobi/.rvm/gems/ruby-1.9.2-p180@Pugnacious-Juices/gems/ray-0.2.0/ext/gem_make.out
from /home/tobi/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:511:in `block in build_extensions'
from /home/tobi/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:486:in `each'
from /home/tobi/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:486:in `build_extensions'
from /home/tobi/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:159:in `install'
from /home/tobi/.rvm/gems/ruby-1.9.2-p180@Pugnacious-Juices/gems/bundler-1.0.18/lib/bundler/source.rb:101:in `block in install'
from /home/tobi/.rvm/gems/ruby-1.9.2-p180@Pugnacious-Juices/gems/bundler-1.0.18/lib/bundler/rubygems_integration.rb:78:in `preserve_paths'
from /home/tobi/.rvm/gems/ruby-1.9.2-p180@Pugnacious-Juices/gems/bundler-1.0.18/lib/bundler/source.rb:91:in `install'
from /home/tobi/.rvm/gems/ruby-1.9.2-p180@Pugnacious-Juices/gems/bundler-1.0.18/lib/bundler/installer.rb:58:in `block (2 levels) in run'
from /home/tobi/.rvm/gems/ruby-1.9.2-p180@Pugnacious-Juices/gems/bundler-1.0.18/lib/bundler/rubygems_integration.rb:93:in `with_build_args'
from /home/tobi/.rvm/gems/ruby-1.9.2-p180@Pugnacious-Juices/gems/bundler-1.0.18/lib/bundler/installer.rb:57:in `block in run'
from /home/tobi/.rvm/gems/ruby-1.9.2-p180@Pugnacious-Juices/gems/bundler-1.0.18/lib/bundler/installer.rb:49:in `run'
from /home/tobi/.rvm/gems/ruby-1.9.2-p180@Pugnacious-Juices/gems/bundler-1.0.18/lib/bundler/installer.rb:8:in `install'
from /home/tobi/.rvm/gems/ruby-1.9.2-p180@Pugnacious-Juices/gems/bundler-1.0.18/lib/bundler/cli.rb:220:in `install'
from /home/tobi/.rvm/gems/ruby-1.9.2-p180@Pugnacious-Juices/gems/bundler-1.0.18/lib/bundler/vendor/thor/task.rb:22:in `run'
from /home/tobi/.rvm/gems/ruby-1.9.2-p180@Pugnacious-Juices/gems/bundler-1.0.18/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /home/tobi/.rvm/gems/ruby-1.9.2-p180@Pugnacious-Juices/gems/bundler-1.0.18/lib/bundler/vendor/thor.rb:263:in `dispatch'
from /home/tobi/.rvm/gems/ruby-1.9.2-p180@Pugnacious-Juices/gems/bundler-1.0.18/lib/bundler/vendor/thor/base.rb:386:in `start'
from /home/tobi/.rvm/gems/ruby-1.9.2-p180@Pugnacious-Juices/gems/bundler-1.0.18/bin/bundle:13:in `<top (required)>'
from /home/tobi/.rvm/gems/ruby-1.9.2-p180@Pugnacious-Juices/bin/bundle:19:in `load'
from /home/tobi/.rvm/gems/ruby-1.9.2-p180@Pugnacious-Juices/bin/bundle:19:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment