That's a strange line in there... almost like the OP stole it right out of another tutorial without crediting the author. This is where the line that is causing problems came from:
https://bitcointalk.org/index.php?topic=170516.0following that tutorial from the beginning causes no issues. All compiles as expected, though it's CentOS not Ubuntu. The reason I used CentOS is that I was not able to run multiple gpu's under any other flavors of linux.