From owner-freebsd-mips@freebsd.org Thu Dec 3 19:56:54 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 6C193A407F4 for ; Thu, 3 Dec 2015 19:56:54 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 510CE1481 for ; Thu, 3 Dec 2015 19:56:53 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from [172.23.12.242] (unknown [216.221.230.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id A123B192ADC for ; Thu, 3 Dec 2015 19:56:52 +0000 (UTC) Subject: Re: MIPS64 using clang head To: freebsd-mips@freebsd.org References: <56605E75.5090004@freebsd.org> <20151203173806.GA39703@spindle.one-eyed-alien.net> <56608FF6.3050706@freebsd.org> From: Sean Bruno Message-ID: <56609E80.9070803@freebsd.org> Date: Thu, 3 Dec 2015 11:56:48 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <56608FF6.3050706@freebsd.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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: Thu, 03 Dec 2015 19:56:54 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJWYJ59XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5kUq4H/3tS3YQOd+B3ie7pi8B0a09i f2Qjhej1MFszB0O3gZPQeIuf4JmGhuCfbsoVcNIGrqXEFWQAPdbuPZYzPx3zLnxh 6MlOxzc8+goD1f4ZdU/KTrvTAa901sya6Hl6ICCiwkj4ReQd9k10e9ZkmI8JFNnA /3X2thg4zKBxpPEfKLkq8iE3ajvcWYESI0oIvwUXuAu+aHG2qeIbKaTlSwCsZQSW iL194LJH5GmZXpQVsCH+L4Vjov9o01k+wGTd1kKifNvaip3gixvCcf8dad/55krl yly6PL7ytAEeGq5DcwHmhJOAbvZYJioBnKqu7dWletHk9TAHKub2O0RnFS9lxIU= =vS4L -----END PGP SIGNATURE-----