Help: build failure due to relocation truncated to fit: R_MIPS_GOT16 and others
"Steve M. Robbins" <[email protected]>
| Newsgroups | gmane.linux.debian.ports.mips |
|---|---|
| Message-ID | <2045628.Jiv3R45xoF@riemann> |
Hi,
I'd appreciate some help solving a MIPS-only build failure in googletest. It
fails for arch mips [1], mipsel, and mips64el. A sample of the error output:
relocation truncated to fit: R_MIPS_GOT16 against
`__stack_chk_guard@@GLIBC_2.4'
relocation truncated to fit: R_MIPS_CALL16 against `operator new(unsigned
int)@@GLIBCXX_3.4'
[ and many similar]
I'm kind of googling blind here . I've found a smattering of similar
questions with answers that point to using '-Gn' or '-mxgot'. But I haven't a
solid grounding to understand what the implications are.
I would appreciate some guidance from knowledgeable folks.
Thanks,
-Steve
[1] https://buildd.debian.org/status/fetch.php?
pkg=googletest&arch=mips&ver=1.8.0-2&stamp=1479619898
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEy89k8fa3rclNjyokyeVeL63I9LkFAlgx07YACgkQyeVeL63I 9Lnqcw//Vt2/3+fgym9nv20B5ySeyD52VPWQ1WX+zk8MW1Qq3p7yFENKHKibG5Kb VO6AP3k5pVURB19macKjNYJp0AO7m6iW/M6VIoluhrnWaAOihHUE+SqO6cWYqgcY t6GFNpsh1fMT3tQqxrRTPUc/WYmkzayQxYyljIRRbNh5e4Js6PgCS5z/yezJTqMs FSu+bCq6mzKWgYieOdPKHOmOuO+FoB/yLG092OzYSPDafVcLBVK6Z8KVaSl3erkd /ZVbq1WQA1fpOvhF9BwBnYsiebMFRmXfM5pvenPg4bVOvxPt0RVjQCxy1Vj7psqF usuDpozKDjL/0EOxCVbK5B3x7KirS8DHi6AhiiX69YwJFpmvZI9K0T6lP5YgxsCu 2W5kXPfBJz0etehsHdf0SKqLvl2RWqcG5GD5ZG0vfdbN6aMa+w7sJLKBdmz/1I+I 7yEQJMX1p+9awhifo4UqCRodiobHVUEnfMV4I8gDltfPLdZTT5Dpg2cyasYmGi4g MKvM6vMFskDiHLDu4b3IdZryIHdoBKVyrHP1mpQjJCJQVi48DOGu0OaaA1/8S2yJ hd/6swUMhTTN0rFHRSL0d0MwPbnDVUTQcGHwFFBtda5mLP9U8slxpr/fo9KYOYrw Ynq2lEg21sfyuewSVUWsw0VAnkR8xm5j56MC6Tm3QEkmxe4ukeM= =eIfH -----END PGP SIGNATURE-----