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.
Platform details:
Arch Linux x86_64
RVM 1.6.5
Ruby 1.9.2p180
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
-

c00kiemon5ter May 12th, 2011 @ 07:38 PM
This is the same as #215-native-ext-compilation-failure
http://jgarber.lighthouseapp.com/projects/13054/tickets/215-native-...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".
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
RedCloth is a Ruby library for converting Textile into HTML