carlhuda/bundler — Issue #1703: cc1.exe: error: unrecognized command line option "-Wno-missing-field-initializers"
Author: dhinged
Created: 2012-03-08 01:32:27+00:00
State: open

I was walking through a tutorial on Rails and I tried to run the "rails generate controller" command, and I got "Could not find gem 'jquery-rails (>= 0) x86-mingw32' in the gems available on this machine.", so I ran the suggested "bundle install" command, and got a fatal error while it was compiling parser.c.

c:\xampp\htdocs\railsProject>bundle install
Fetching gem metadata from https://rubygems.org/.........
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.1.0)
Using activesupport (3.2.2)
Using builder (3.0.0)
Using activemodel (3.2.2)
Using erubis (2.7.0)
Using journey (1.0.3)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.2)
Using actionpack (3.2.2)
Using mime-types (1.17.2)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.3)
Using actionmailer (3.2.2)
Using arel (3.0.2)
Using tzinfo (0.3.32)
Using activerecord (3.2.2)
Using activeresource (3.2.2)
Using bundler (1.1.0)
Using coffee-script-source (1.2.0)
Using execjs (1.3.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Installing json (1.6.5) with native extensions Unfortunately, a fatal error has occurred. Please report this error to th
e Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!
C:/xampp/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:552:in `rescue in block in build_extensions': ERROR: Fai
led to build gem native extension. (Gem::Installer::ExtensionBuildError)

C:/xampp/Ruby193/bin/ruby.exe extconf.rb
creating Makefile

make
generating parser-i386-mingw32.def
compiling parser.c
cc1.exe: error: unrecognized command line option "-Wno-missing-field-initializers"
make: *** [parser.o] Error 1

Gem files will remain installed in C:/xampp/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.6.5 for inspection.
Results logged to C:/xampp/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.6.5/ext/json/ext/parser/gem_make.out
from C:/xampp/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:530:in `block in build_extensions'
from C:/xampp/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:505:in `each'
from C:/xampp/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:505:in `build_extensions'
from C:/xampp/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:180:in `install'
from C:/xampp/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/source.rb:90:in `block in install'
from C:/xampp/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/rubygems_integration.rb:82:in `preserve
_paths'
from C:/xampp/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/source.rb:89:in `install'
from C:/xampp/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/installer.rb:73:in `block in install_ge
m_from_spec'
from C:/xampp/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/rubygems_integration.rb:97:in `with_bui
ld_args'
from C:/xampp/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/installer.rb:72:in `install_gem_from_sp
ec'
from C:/xampp/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/installer.rb:56:in `block in run'
from C:/xampp/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/installer.rb:55:in `run'
from C:/xampp/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/installer.rb:12:in `install'
from C:/xampp/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/cli.rb:220:in `install'
from C:/xampp/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/vendor/thor/task.rb:22:in `run'
from C:/xampp/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/vendor/thor/invocation.rb:118:in `invok
e_task'
from C:/xampp/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/vendor/thor.rb:263:in `dispatch'
from C:/xampp/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/vendor/thor/base.rb:386:in `start'
from C:/xampp/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/bin/bundle:13:in `'
from C:/xampp/Ruby193/bin/bundle:19:in `load'
from C:/xampp/Ruby193/bin/bundle:19:in `

'