From owner-freebsd-mips@freebsd.org Wed Dec 9 20:42:03 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 23FA39D6CDC for ; Wed, 9 Dec 2015 20:42:03 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qg0-x236.google.com (mail-qg0-x236.google.com [IPv6:2607:f8b0:400d:c04::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DC7411BF6 for ; Wed, 9 Dec 2015 20:42:02 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by qgec40 with SMTP id c40so98842202qge.2 for ; Wed, 09 Dec 2015 12:42:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=9UpmEkLxG0YNBrpagMR9ukNQn4XXyMVRYEz2nnnoAZA=; b=poJ2MCq2br0oCKfrK6OtFEmYT5lfpo5f7CoyBqgai5ht/pCBJHvq7Ank+LmBwLE033 aEiFTQ5lBERu6rTc4fm+2iiiwoUpmgSvs3GWNI5X9snIixjIs3pUkuFoDjcM5BQtaW09 MjjzqfEVZ5hO+LbYWb9d1uD2UP4elXM0/zM6C1MpHvluFMp5K1PlhfldVSFoP4FZllaD qwzUNE+anPJRTe0KcZQcqaSdfLrpQhIUiQuPVZEZOCyTVFqkQBP1wiYXacnb55BxFnOh RsTE4SmlNYCYvEr1RpZad0s2znqPN5U87DZe1ZqlH4nu16o+hQu94KY7Gxf5pxxO0HJW oMkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=9UpmEkLxG0YNBrpagMR9ukNQn4XXyMVRYEz2nnnoAZA=; b=B0FvpMWDwc84pGgF6cHV3XtebFOg0La7AaElRQnDemyD0grZ4KRm55jGloY6XYigwg o2nG3mszraNPhRbR9aaU1WTleC9ljIFP/RY75+61VeBVMWIPfJ8F5iY7lwYNW7yvYnNu 3dpCBQNOc4rjSvBmu4XBFiaew7y4vNpTGLnk0PmAYkPHNeEjNS3UMpAH6JmZumcdywZe vsF3ABqfVbqsdMEV13vACtRqlM/jxCCCUslIv1GXWU2imh5aGOsmyR0mma/8L4ex7RfO z3l6S9pyRAI29qqB47aWwKCJ1ojw8pC4XOqiHHpQATNHzgIDVJvhj+qA2KWOgxMVIpsb nWuQ== X-Gm-Message-State: ALoCoQm2FjD3Vr/63+aZMc8sojZYutVrhVdbvgRH+8c++kgLphxlL0zTJaLEnv54l5zgxuLEwc83FPmixHrzfm17QLQmHI5CwA== MIME-Version: 1.0 X-Received: by 10.140.40.38 with SMTP id w35mr10210100qgw.52.1449693721642; Wed, 09 Dec 2015 12:42:01 -0800 (PST) Sender: wlosh@bsdimp.com Received: by 10.140.27.181 with HTTP; Wed, 9 Dec 2015 12:42:01 -0800 (PST) X-Originating-IP: [50.253.99.174] In-Reply-To: <566881C6.3070502@freebsd.org> References: <56605E75.5090004@freebsd.org> <20151203173806.GA39703@spindle.one-eyed-alien.net> <56608FF6.3050706@freebsd.org> <56609E80.9070803@freebsd.org> <566881C6.3070502@freebsd.org> Date: Wed, 9 Dec 2015 13:42:01 -0700 X-Google-Sender-Auth: tGnTz4phBjCJFh5mCAxXrGI5ZH8 Message-ID: Subject: Re: MIPS64 using clang head From: Warner Losh To: Sean Bruno Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Dec 2015 20:42:03 -0000 While we could fix it, this is a bug in clang's gcc emulation as well as historical practice dating back to IRIX times... Warner On Wed, Dec 9, 2015 at 12:32 PM, Sean Bruno wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > > > On 12/03/15 11:56, Sean Bruno wrote: > > > > > > On 12/03/15 10:54, Sean Bruno wrote: > > > > > >> On 12/03/15 09:38, Brooks Davis wrote: > >>> On Thu, Dec 03, 2015 at 07:23:33AM -0800, Sean Bruno wrote: > >>>> We're still making progress, with a couple more updates to > >>>> clang we've made it past libc ... now seeing a failure to > >>>> figure out what "LONG_BITS" is. > >>>> > >>>> https://people.freebsd.org/~sbruno/mips64_buildworld.log > >>>> > >>>> I'm not quite sure what's missing and I've tried a few hacks > >>>> to get it past here. > > > >>> This is due to an incompatibility with our limits.h and clang's > >>> limits.h in freestanding mode. IMO it's a bug that clang's > >>> limits.h doesn't include the system one in freestanding mode, > >>> but currently it doesn't which means LONG_BITS doesn't get set. > >>> Deleting/not installing the clang limits.h should do the job. > > > >>> -- Brooks > > > > > >> Cool! I've removed my build version of limits.h > > > >> ~/clang/build % mv ./lib/clang/3.8.0/include/limits.h /var/tmp > > > >> Restarted my freebsd build of mips64. > > > >> sean _______________________________________________ > >> freebsd-mips@freebsd.org mailing list > >> https://lists.freebsd.org/mailman/listinfo/freebsd-mips To > >> unsubscribe, send any mail to > >> "freebsd-mips-unsubscribe@freebsd.org" > > > > > > Yep, this did indeed get past the LONG_BITS things. > > > > Heh ... now hitting a clang assertion in libstand: > > > > https://llvm.org/bugs/show_bug.cgi?id=25730 > > > > The fun continues. > > > > sean _______________________________________________ > > freebsd-mips@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-mips To > > unsubscribe, send any mail to > > "freebsd-mips-unsubscribe@freebsd.org" > > > > > Made it to sys/boot today. We seem to have some clang incompatible > flags in mips/beri/boot2/Makefile: > > CFLAGS= -ffreestanding \ > -I${.CURDIR} \ > -I${.CURDIR}/../../../common \ > -I${.CURDIR}/../../../.. \ > -D_KERNEL \ > -Wall \ > -G0 -Xassembler -G0 \ > -fno-pic -mno-abicalls \ > -msoft-float \ > -g > > ===> sys/boot/mips/beri/boot2 (all) > /home/sbruno/clang/build/bin/clang -msoft-float > - -Wno-typedef-redefinition -target mips64-unknown-freebsd11.0 > - --sysroot=/var/tmp/mips.mips64/usr/home/sbruno/fbsd_head/tmp > - -B/var/tmp/mips.mips64/usr/home/sbruno/fbsd_head/tmp/usr/bin > - -ffreestanding > - -I/usr/home/sbruno/fbsd_head/sys/boot/mips/beri/boot2 > > - -I/usr/home/sbruno/fbsd_head/sys/boot/mips/beri/boot2/../../../common > -I/usr/home/sbruno/fbsd_head/sys/boot/mips/beri/boot2/../../../.. > -D_KERNEL -Wall > - -G0 -Xassembler -mno-abicalls -msoft-float > -g > - > > -I/usr/home/sbruno/fbsd_head/sys/boot/mips/beri/boot2/../../../../../lib/libstand/ > - -I/usr/home/sbruno/fbsd_head/sys/boot/mips/beri/boot2/../common > - -ffreestanding -std=gnu99 -Qunused-arguments -c > /usr/home/sbruno/fbsd_head/sys/boot/mips/beri/boot2/relocate.S -o > relocate.o > clang-3.8: error: unsupported argument '-G0' to option 'Xassembler' > *** Error code 1 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2 > > iQF8BAEBCgBmBQJWaIHCXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w > ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx > MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5k25MH/in6me/Vy+kyzpW2hgbSZOfA > bxHrXfjEjjzLwJs0B9S1ThRXqUwYlPStEor5VaKbGNeSJ3dJsNG7IjKX2AK6zzVW > sBKYQ9uM36/Utn0MwDDaup1wK5FJB8FlhHOgjEXHHhL++jf3JMQ4tbTZFpE005qh > kHNddbQDdTokvwI0CoLnUhCHjFzveq3UYFCA5y6OYFFEltl+wPKVGDmrcANHuTDN > iMxvvmqDX3P7IXr8zBdN1UkijTnpvcUrMqEo5XcCyq9bLgH9Tw6cmhnf3YVfLyXs > GiSi33HxVplbhFMSlktxy9DtDrUog1cfCUIHgZZKgG1asxLS3ePZnUfuWs+S/Qs= > =91KZ > -----END PGP SIGNATURE----- > _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" >