pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: firefox (pkgsrc-2015Q4) build fails on i386-7.99.26



On Fri, Feb 19, 2016 at 02:15:14PM -0600, John D. Baker wrote:
> Trying to build firefox from pkgsrc-2015Q4 on i386-7.99.26 fails with:
> 
> [...]
> ld: ../../xpcom/components/nsComponentManager.o: relocation R_386_GOTOFF against protected data `start_kPStaticModules_NSModule' can not be used when making a shared object
> ld: final link failed: Bad value

Hi, see the following:
http://gnats.netbsd.org/50767

This is a problem that is appearing in multiple places.
I'm sharing my related issues/attempts in case anyone else is struggling
and can make use of them.
I've wasted a lot of time before discovering ryoon's identical reports.

This seems to be from a binutils update to 2.26

lang/go14 is also problematic because it is generating new relocations
not familiar to the old Go linker.
Maybe unrelated, R_386_GOTOFF is not new?

Related to go:
Upstream explanation / fix for newer version:
https://github.com/golang/go/commit/914db9f060b1fd3eb1f74d48f3bd46a73d4ae9c7
Backported by ryoon:
http://gnats.netbsd.org/50777


Possible GNU binutils fix:
https://sourceware.org/ml/binutils/2016-02/msg00062.html
I've tried to patch my NetBSD tree as follows:
http://coypu.sdf.org/gas-patch

and built with -DDEFAULT_GENERATE_X86_RELAX_RELOCATIONS=1
Still somewhat unsuccessful.


Home | Main Index | Thread Index | Old Index