From owner-freebsd-mips@FreeBSD.ORG Sun Sep 15 23:21:43 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CF12BD44; Sun, 15 Sep 2013 23:21:43 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-x229.google.com (mail-wg0-x229.google.com [IPv6:2a00:1450:400c:c00::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 36C4E2B9E; Sun, 15 Sep 2013 23:21:43 +0000 (UTC) Received: by mail-wg0-f41.google.com with SMTP id l18so2529584wgh.0 for ; Sun, 15 Sep 2013 16:21:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=K3Aeiq2q4g36p+vVu2S8pfxUN49+i0vBI7iHzkHtfnA=; b=m/6YO5ZhcChoG72NG4WLOCvo6hEpA7qHEyDNbvygzTGGakU+j8GHad2bHSn//NonBT UyXNxqmGMKCXxhSUwpR7GYbrPQkd4XCJUDMOI6okWIWT6UYe4SJU0Dw1Gxgo8lUPqfcc vqh5ExVCzfoQsmPWCUIrp9nFK1HPG/Nqv1OBv+/AfzU/qltlxXjCmeCWceoZRLVkskTp OXwRIq2B/pnwkW3MQmcntGbpMAeO/qbxx/d6RyeZqhTug42PchsasT+Eb0PabrzTo9DT m+5yKsvdDcdVvydYsobE/26oIHDlTswj5LzNKRRy9KXSwjCgoKWCJ44BSqESDmA3vXOT Wp+Q== MIME-Version: 1.0 X-Received: by 10.180.109.132 with SMTP id hs4mr10979662wib.46.1379287301586; Sun, 15 Sep 2013 16:21:41 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.73.133 with HTTP; Sun, 15 Sep 2013 16:21:41 -0700 (PDT) In-Reply-To: <024201ceb263$1138bac0$33aa3040$@rewt.org.uk> References: <024001ceb262$e87f9ea0$b97edbe0$@rewt.org.uk> <024201ceb263$1138bac0$33aa3040$@rewt.org.uk> Date: Sun, 15 Sep 2013 16:21:41 -0700 X-Google-Sender-Auth: CvqeIB198OdBIz6VFiTD-HDoi3k Message-ID: Subject: Re: how do i cross build world/kernel with clang? From: Adrian Chadd To: Joe Holden Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-current , "freebsd-mips@freebsd.org" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Sep 2013 23:21:44 -0000 I don't think so. I think the MIPS compiler people are aware of it. -adrian On 15 September 2013 15:29, Joe Holden 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" > > >