Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Sep 2013 16:21:41 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        Joe Holden <lists@rewt.org.uk>
Cc:        freebsd-current <freebsd-current@freebsd.org>, "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: how do i cross build world/kernel with clang?
Message-ID:  <CAJ-Vmok9oNoMKF8NgLyaW9=%2B2MnNr-nEQCbAcLVWiTiJBH0a4A@mail.gmail.com>
In-Reply-To: <024201ceb263$1138bac0$33aa3040$@rewt.org.uk>
References:  <CAJ-Vmom3cLdEei%2BjwNRx7n_MgU0H3X0LigagNzU567tyeHBd8Q@mail.gmail.com> <024001ceb262$e87f9ea0$b97edbe0$@rewt.org.uk> <024201ceb263$1138bac0$33aa3040$@rewt.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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@rewt.org.uk> wrote:

> Doh should have checked the thread before sending - is there any news on
> this?
>
> > -----Original Message-----
> > From: owner-freebsd-mips@freebsd.org [mailto:owner-freebsd-
> > mips@freebsd.org] On Behalf Of Joe Holden
> > Sent: 15 September 2013 23:28
> > To: 'Adrian Chadd'; 'freebsd-current'; freebsd-mips@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@freebsd.org [mailto:owner-freebsd-
> > > mips@freebsd.org] On Behalf Of Adrian Chadd
> > > Sent: 01 September 2013 03:30
> > > To: freebsd-current; freebsd-mips@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@freebsd.org mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-mips
> > > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org
> "
> >
> >
> > _______________________________________________
> > freebsd-mips@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-mips
> > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org"
>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmok9oNoMKF8NgLyaW9=%2B2MnNr-nEQCbAcLVWiTiJBH0a4A>