On Tue, Mar 29, 2016 at 8:03 AM, $rik@nth srikanth007m@gmail.com wrote:
gcc.o:(.rodata+0x5acc): undefined reference to `host_detect_local_cpu(int, char const**)'
This suggests a problem with the --host configure option. host_detect_local_cpu is used only if __arm__ is defined, which means you must be using an arm compiler to build gcc. host_detect_local_cpu comes from the driver-arm.c file, which is only added if the host is arm*-*-freebsd* or arm*-*-linux*, and the target is arm*-*-*. So it appears that the --host configure option is wrong.
Sounds like you are trying to use an x86->arm cross compiler to build a native arm gcc. In this case, the configure command needs to have --build=x86_64-pc-inux-gnu --host=arm-linux-gnueabi --target=arm-linux-gnueabi for this to work. Assuming you are building on a 64-bit x86 linux pc of course.
Jim