Not sure about the error, but just wanted to check:
You're setting CC to match, but do also actually have that version of gcc installed? You should have the full compiler package installed so it can really use it.