RE: how do i cross build world/kernel with clang?

From: Joe Holden <lists_at_rewt.org.uk>
Date: Sun, 15 Sep 2013 23:28:29 +0100
Are you still playing with this?  Reason I ask is that I tried to build
world with clang for the crack and it bails with:

/usr/obj/mips.mips64/pseudosrc/tmp/usr/bin/ld:
/usr/obj/mips.mips64/pseudosrc/tmp/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+0x124): relocation truncated to fit: R_MIPS_PC16 against `abort'
_setjmp.So: In function `botch':
(.text+0xac): 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'
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): relocation truncated to fit: R_MIPS_PC16 against `__cerror'
connectat.So: In function `err':
(.text+0x18): relocation truncated to fit: R_MIPS_PC16 against `__cerror'
bindat.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

Built on HEAD amd64 as of a few hours ago...

Cheers
Joe

> -----Original Message-----
> From: owner-freebsd-mips_at_freebsd.org [mailto:owner-freebsd-
> mips_at_freebsd.org] On Behalf Of Adrian Chadd
> Sent: 01 September 2013 03:30
> To: freebsd-current; freebsd-mips_at_freebsd.org
> Subject: how do i cross build world/kernel with clang?
>
> Hi!
>
> How do i cross-build a mips world/kernel with clang?
>
> ie, how do I tell the build system to build a mips targetted clang instead
of gcc
> and use that to build everything?
>
> Thanks,
>
>
> -adrian
> _______________________________________________
> freebsd-mips_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-mips
> To unsubscribe, send any mail to "freebsd-mips-unsubscribe_at_freebsd.org"
Received on Sun Sep 15 2013 - 20:28:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:41 UTC