The three logs seem to be for xlC, xlC -q64 and xlc -q64. xlC is the C++ compiler. I'm not sure if Emacs is meant to be built with C++. I'd suggest trying with just vanilla xlc. The ar error you're getting with xlc -q64 is because AIX archives can be either 32-bit, 64-bit or both (containing the .o's for both). You need to add -X32, -X64 or -X32_64 to your ARFLAGS. When I was a developer on xlc, I used Emacs 24.2 on AIX6 built with gcc. Whenever I built Emacs with xlc, I'd get segfaults after some amount of time, usually corruption detected during garbage collection.