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


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to