gcc defaults to 64-bit on sparc64 systems when the 64-bit libc is installed and "uname" returns "sparc64". Specify the "-m32" option to force 32-bit compilation. Another way is to run your commands in a 32-bit environment via "sparc32 /bin/${MY_SHELL}"