Handbook Talk:PPC64/Full/Installation
From Gentoo Wiki
C compiler cannot create executables
Hello!
I used the current snapshot for ppc64-ul64 and found that CFLAGS with "-march" caused a "C compiler cannot create executables" error. I now use "-mcpu=G5 -mtune=G5" which works. (I know, mtune may not be necessary.)
If someone gets this error, a note describing that it might help adjusting the CFLAGS and CXXFLAGS will be helpful!