Current-Users archive

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

Re: Build failure for mips



On Feb 29, 2012, at 9:26 AM, Paul Goyette wrote:

> With sources updated just a few minutes ago, a cross-build of mips (on a 
> amd64 host running 6.99.2) fails with the following:
> 
> #     build  libc/libc.so.12.182
> rm -f libc.so.12.182
> /build/netbsd-local/tools/x86_64/mipseb-evbmips/bin/mipseb--netbsd-gcc 
> -nodefaultlibs -Wl,-x -shared -Wl,-soname,libc.so.12 
> -Wl,--warn-shared-textrel -Wl,-z,initfirst  
> --sysroot=/build/netbsd-local/dest/mipseb-evbmips   -o libc.so.12.182  
> -Wl,-rpath,/lib  -L=/lib  -Wl,--whole-archive libc_pic.a 
> -Wl,--no-whole-archive -lgcc 
> /build/netbsd-local/tools/x86_64/mipseb-evbmips/lib/gcc/mipseb--netbsd/4.5.3/../../../../mipseb--netbsd/bin/ld:
>  BFD (NetBSD Binutils nb1) 2.21.1 assertion fail 
> /build/netbsd-local/src/tools/binutils/../../external/gpl3/binutils/dist/bfd/elfxx-mips.c:3157
> /build/netbsd-local/tools/x86_64/mipseb-evbmips/lib/gcc/mipseb--netbsd/4.5.3/../../../../mipseb--netbsd/bin/ld:
>  BFD (NetBSD Binutils nb1) 2.21.1 assertion fail 
> /build/netbsd-local/src/tools/binutils/../../external/gpl3/binutils/dist/bfd/elfxx-mips.c:3161
> libc_pic.a(writev.pico): In function `_writev':
> (.text+0x24): relocation truncated to fit: R_MIPS_CALL16 against `__cerror'
> /build/netbsd-local/tools/x86_64/mipseb-evbmips/lib/gcc/mipseb--netbsd/4.5.3/../../../../mipseb--netbsd/bin/ld:
>  BFD (NetBSD Binutils nb1) 2.21.1 assertion fail 
> /build/netbsd-local/src/tools/binutils/../../external/gpl3/binutils/dist/bfd/elfxx-mips.c:3157
> ...

It's a toolchain bug.  I have a fix for it but I'm not sure it's correct.  It 
seems to be but the mips backend is tricky.  I've sent mail to the binutils 
mailing list asking for someone to review my fix.



Home | Main Index | Thread Index | Old Index