Bug 196543

Summary: make xdev for mips fails PC relative code linking to non PC relative code R_MIPS_PC16
Product: Base System Reporter: mmitchel
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: 10.0-STABLE   
Hardware: mips   
OS: Any   

Description mmitchel 2015-01-06 15:52:23 UTC
To Duplicate:

cd /usr/src
make XDEV=mips XDEV_ARCH=mips xdev

Resulting Output

clang -fpic -DPIC  -O -pipe -G0   -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/mips  -DSOFTFLOAT -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -I/usr/src/lib/libc/../../contrib/libc-vis -DINET6 -I/usr/obj/mips-freebsd/usr/src/lib/libc -I/usr/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libmd -I/usr/src/lib/libc/../../contrib/jemalloc/include -I/usr/src/lib/libc/../../contrib/tzcode/stdtime -I/usr/src/lib/libc/stdtime  -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -I/usr/src/lib/libc/mips/softfloat -I/usr/src/lib/libc/softfloat -DSOFTFLOAT_FOR_GCC -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -Qunused-arguments  -w -c /usr/src/lib/libc/string/wmemset.c -o wmemset.So
building shared library libc.so.7
//usr/mips-freebsd/usr/bin/ld: /usr/mips-freebsd/usr/lib/crtbeginS.o: warning: linking PIC files with non-PIC files
//usr/mips-freebsd/usr/bin/ld: /usr/mips-freebsd/usr/lib/crtn.o: warning: linking PIC files with non-PIC files
exect.So: In function `exect':
(.text+0x18): relocation truncated to fit: R_MIPS_PC16 against `__cerror'
setjmp.So: In function `botch':
(.text+0x118): relocation truncated to fit: R_MIPS_PC16 against `abort'
_setjmp.So: In function `botch':
(.text+0xa0): relocation truncated to fit: R_MIPS_PC16 against `abort'
_sigwait.So: In function `err':
(.text+0x18): relocation truncated to fit: R_MIPS_PC16 against `__cerror'
_getlogin.So: In function `err':
(.text+0x18): relocation truncated to fit: R_MIPS_PC16 against `__cerror'
ppoll.So: In function `err':
(.text+0x18): relocation truncated to fit: R_MIPS_PC16 against `__cerror'
procctl.So: In function `err':
(.text+0x18): relocation truncated to fit: R_MIPS_PC16 against `__cerror'
aio_mlock.So: In function `err':
(.text+0x18): relocation truncated to fit: R_MIPS_PC16 against `__cerror'
pipe2.So: In function `err':
(.text+0x18): relocation truncated to fit: R_MIPS_PC16 against `__cerror'
accept4.So: In function `err':
(.text+0x18): relocation truncated to fit: R_MIPS_PC16 against `__cerror'
chflagsat.So: In function `err':
(.text+0x18): additional relocation overflows omitted from the output
clang: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make[4]: stopped in /usr/src/lib/libc
*** Error code 1

Stop.
make[3]: stopped in /usr/src
*** Error code 1

Stop.
make[2]: stopped in /usr/src
*** Error code 1

Stop.
make[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src