4.2.7 installation issue on arch linux x64
Reported by Sharagoz | May 10th, 2011 @ 05:09 AM
The 4.2.3 release installs fine, 4.2.7 does not.
Arch Linux x86_64
I have tested with Ruby 1.8.7 too and the issue is the same.
Here's the output:
Building native extensions. This could take a while... ERROR: Error installing RedCloth: ERROR: Failed to build gem native extension. /usr/local/rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb checking for main() in -lc... yes creating Makefile make gcc -I. -I/usr/local/rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/usr/local/rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/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_attributes.o -c redcloth_attributes.c ragel/redcloth_attributes.c.rl: In function ‘redcloth_attribute_parser’: ragel/redcloth_attributes.c.rl:26:11: error: variable ‘act’ set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors make: *** [redcloth_attributes.o] Error 1 Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.2-p180/gems/RedCloth-4.2.7 for inspection. Results logged to /usr/local/rvm/gems/ruby-1.9.2-p180/gems/RedCloth-4.2.7/ext/redcloth_scan/gem_make.out
Comments and changes to this ticket
This is the same as #215-native-ext-compilation-failure
The problem actually is the -Werror switch passed to gcc.
The gcc man page says:
-Werror Make all warnings into errors.
so I guess it's obvious why the compilation fails - "variable ‘act’ set but not used".