Hello.
I compile on Ubuntu too.
Is the default Pharo VM compiled with gcc 4.9 ? I compile the it with gcc 4.6 and I am not sure it is possible out of the box with gcc 4.8+ as they changed some default settings in the compiler.
This is the script I use to setup my ubuntu (though depending on your build and plugins you may not need all):
sudo apt-get install cmake zip bash-completion ruby git xz-utils debhelper devscripts
sudo apt-get install libc6-dev:i386 libasound2:i386 libasound2-dev:i386 libasound2-plugins:i386 libssl-dev:i386 libssl0.9.8:i386 libfreetype6-dev:i386 libx11-dev:i386 libsm-dev:i386 libice-dev:i386
sudo apt-get install build-essential gcc-multilib g++
sudo apt-get install libgl1-mesa-dev libgl1-mesa-glx:i386
sudo apt-get install binutils:i386 g++-4.6:i386 gcc-4.6:i386
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so /usr/lib/i386-linux-gnu/libGL.so
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/mesa/libGL.so
sudo apt-get install uuid-dev:i386
sudo apt-get install subversion
Sometimes I also need redefine the symbolic links for gcc to use 4.6 instead of the latest installed (gcc-multilib gets me confused).
Now in my experience the easiest was to create a 32 bits Ubuntu VM and then execute this script and run the VM on it.
Have fun,