Do check that you're following the instructions for Ubuntu 12.04 (the extra "-Wl..." flag required in MAKEFLAGS and SCONSFLAGS), as I believe the relevant change was made in Ubuntu 11. P.