Chunky | Goodness

Building RedCloth With Bundler and GCC 4.6

Getting ready to work on a problem in Rails on an Ubuntu Oneiric (11.10) machine, I ran across the following problem running bundle install for Rails core:

$ bundle install
Updating git://github.com/rails/arel
Updating git://github.com/rails/journey
Fetching source index for http://rubygems.org/
Using rake (0.8.7) 
Installing RedCloth (4.2.7) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /home/malc/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb 
checking for main() in -lc... yes
creating Makefile

gcc -I. -I/home/malc/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/x86_64-linux -I/home/malc/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/home/malc/.rvm/rubies/ruby-1.9.2-p290/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_scan.o -c redcloth_scan.c
gcc -I. -I/home/malc/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/x86_64-linux -I/home/malc/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/home/malc/.rvm/rubies/ruby-1.9.2-p290/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 /home/malc/.gem/ruby/1.9.1/gems/RedCloth-4.2.7 for inspection.
Results logged to /home/malc/.gem/ruby/1.9.1/gems/RedCloth-4.2.7/ext/redcloth_scan/gem_make.out
An error occured while installing RedCloth (4.2.7), and Bundler cannot continue.
Make sure that `gem install RedCloth -v '4.2.7'` succeeds before bundling.

Start as You Mean to Go On

Those who know me know I’m a keen cyclist. Not in the lycra clad, ultra high tech, kilometre counting way, but in the cruise to the dairy, 3 speed, lazy cruiser, ride the kids to school way.

The short time I spent living in the Netherlands has made me aware of how Christchurch could be one of the worlds great cycling cities. Flat as a pancake, a favourable climate and super wide streets, all the ingredients are in place.

But biking in Christchurch is, quite frankly, hellish. It’s mostly a cultural problem. The city is built for cars, and bikes and pedestrians are very much second class citizens.

But then the earthquakes happened, and the landscape changed, both physically and in the hearts of the cities people.

The Mystery of Tuenti Mobile for Android

I’m not quite sure what to make of this, and google is so far not throwing anything up for me. I’ve put this post up to see if anyone else who’s seeing the same thing as me could leave some comments to shed some light on the subject.