Welcome to LQ.
May be the "Erlend method" works too on Ubuntu 12.04 ?
http://erl1.wordpress.com/2011/10/14...neiric-ocelot/
If you fail with the above :
The dedicated "1204" gcc41-compat / g++41-compat can be used,
if you have a 32bits OS :
Please show the output from the command 'uname -m'.
.