Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!gandalf.srv.welterde.de!feeder.erje.net!talisker.lacave.net!lacave.net!not-for-mail From: Quintus Newsgroups: comp.lang.ruby Subject: RubyGems 1.8 treats warnings as errors for C extensions, fails to install RedCloth? Date: Thu, 12 May 2011 05:35:16 -0500 Organization: Service de news de lacave.net Lines: 100 Message-ID: <4DCBB7B2.3060802@gmx.net> NNTP-Posting-Host: bristol.highgroove.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: talisker.lacave.net 1305198885 45091 65.111.164.187 (12 May 2011 11:14:45 GMT) X-Complaints-To: abuse@lacave.net NNTP-Posting-Date: Thu, 12 May 2011 11:14:45 +0000 (UTC) X-Received-From: This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway X-Mail-Count: 383047 X-Ml-Name: ruby-talk X-Rubymirror: Yes X-Ruby-Talk: <4DCBB7B2.3060802@gmx.net> Xref: x330-a1.tempe.blueboxinc.net comp.lang.ruby:4341 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there, I just tried to install the RedCloth gem: ======================================== $ LANG=en_US.utf8 sudo gem install RedCloth Fetching: RedCloth-4.2.7.gem (100%) Building native extensions. This could take a while... ERROR: Error installing RedCloth: ERROR: Failed to build gem native extension. /opt/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb checking for main() in -lc... yes creating Makefile make gcc -I. -I/opt/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux - -I/opt/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward - -I/opt/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I. -fPIC -O3 -ggdb - -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith - -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC - -O0 -Wall -Werror -o redcloth_inline.o -c redcloth_inline.c ragel/redcloth_inline.c.rl: In function ‘red_block’: ragel/redcloth_inline.c.rl:99:9: error: variable ‘attr_regs’ set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors make: *** [redcloth_inline.o] Error 1 Gem files will remain installed in /opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/RedCloth-4.2.7 for inspection. Results logged to /opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/RedCloth-4.2.7/ext/redcloth_scan/gem_make.out ======================================== Obviously RedCloth generates some warnings during compilation, and now RubyGems advises the compiler to treat them as errors--as far as I know this wasn't the case with previous versions of RubyGems, because some days ago RedCloth installed without problems (no, no new release of RedCloth happened in the meantime). This causes the installation of RedCloth to fail. I'm not against treating warnings as errors, but there should be a way to disable this setting, maybe via a commandline option - --ignore-compilation-warnings or something like that, because I'm not a RedCloth developer and therefore not interested in the warnings. Further information on my system: uname -a: Linux hades 2.6.38-ARCH #1 SMP PREEMPT Tue May 3 07:40:34 CEST 2011 x86_64 AMD Athlon(tm) II X4 640 Processor AuthenticAMD GNU/Linux ruby -v: ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux] gem env: RubyGems Environment: - RUBYGEMS VERSION: 1.8.2 - RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [x86_64-linux] - INSTALLATION DIRECTORY: /opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1 - RUBY EXECUTABLE: /opt/rubies/ruby-1.9.2-p180/bin/ruby - EXECUTABLE DIRECTORY: /opt/rubies/ruby-1.9.2-p180/bin - RUBYGEMS PLATFORMS: - ruby - x86_64-linux - GEM PATHS: - /opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1 - /home/quintus/.gem/ruby/1.9.1 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - "install" => "--format-executable" - "update" => "--format-executable" - "rdoc" => "--format=hanna" - REMOTE SOURCES: - http://rubygems.org/ Valete, Marvin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJNy7euAAoJELh1XLHFkqhaAiYH/23x5jFcqXKWKRe9xEitCvcj js+ZxO6oNyDOiMxL7qD9GaCXywbU6/0ivPyueoVVj8f1sR47omhe9v/iZiKUtEpq 5YGMF5CsgmLV5rIzoFq8RghccDGTYyM8PMJiHwSp7oNv2JZuQvG7NLpPOG8lnHKh XupTuS/7jq+K6g/Ddy1GW6/UhPj3FjZ2jaGoFHW7vZvGmCvER2xu/JsuvIgU1bYZ 78KhxExSrM/REAoGfWv0kuKtablfkSqnvO1nzxzr4MSOwXao7M2Lw7fFnuUVsbjO vXuSa93Fut/kwtvOdDB3uAkTrICV1plEAehfyaflg7YCSMPsMO+n5u3CqUs0evU= =n68h -----END PGP SIGNATURE-----