|
From: Maran P. <mpa...@ca...> - 2015-03-17 11:35:30
|
On 03/16/2015 10:23 AM, MUHAMMADSAHEER C wrote: > Hi, > I am trying to build valgrind for Octeon MIPS 64 architecture using cross compiler. > While linking, build gives following error, > m_main.c:(.text+0xc): undefined reference to `_gp_disp' > Can anyone suggest how to resolve this? > I searched in net, but could not find a proper solution. > I used following configuration options > --host=mips-linux-gnu -with-float=hard --with-arch-64=5kc --with-gnu-as --with-gnu-ld CFLAGS="-march=octeon2 -msoft-float -Wall -mabi=64 -G 0 -fPIC -mips64r2 -mplt" Use, --host=mips64-linux-gnu to build for MIPS64 --with-arch-64=5kc --with-gnu-as --with-gnu-ld -> these are unrecongnised options. Remove them. Also, do not specify "-march=octeon2" in CFLAGS, though your target is octeon2. Hope these changes would fix the build. -- Maran Pakkirisamy |