how do i cross build world/kernel with clang?

Adrian Chadd adrian at freebsd.org
Sun Sep 15 23:21:44 UTC 2013


I don't think so. I think the MIPS compiler people are aware of it.



-adrian



On 15 September 2013 15:29, Joe Holden <lists at rewt.org.uk> wrote:

> Doh should have checked the thread before sending - is there any news on
> this?
>
> > -----Original Message-----
> > From: owner-freebsd-mips at freebsd.org [mailto:owner-freebsd-
> > mips at freebsd.org] On Behalf Of Joe Holden
> > Sent: 15 September 2013 23:28
> > To: 'Adrian Chadd'; 'freebsd-current'; freebsd-mips at freebsd.org
> > Subject: RE: how do i cross build world/kernel with clang?
> >
> > 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
> "
> >
> >
> > _______________________________________________
> > 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"
>
>
>


More information about the freebsd-current mailing list