as I said, the linker is trying to build 32 bit libraries from 64 bit (compiler-provided) objects. you should stop that. What can be done?
First thing is make sure that your LDFLAGS are set to correct 64 bit format. If your LDFLAGS are set to 32 bit, please change it in configure file or makefile like
--verbose --format elf64-x86-64
(I have added --verbose to get more information about the ld problem, you may not use it if the above works)
Also try to set GNU target (I am not sure if this works, but worths a try)
export GNUTARGET='elf64-x86-64'
If the above does not work, also try the below definitions in makefile:
CFLAGS="-m64"
LDFLAGS="-m64"