You have to give it something like CXX="gcc -m64" as well. CC is used to compile C code and CXX is used to compile C++ code. I don't know why in the world you're seeing that S-rec failure still, Alan Modra absolutely fixed that bug this past week.