From owner-freebsd-ppc@FreeBSD.ORG Thu Mar 29 16:06:06 2012 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD3031065673 for ; Thu, 29 Mar 2012 16:06:06 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from argol.doit.wisc.edu (argol.doit.wisc.edu [144.92.197.212]) by mx1.freebsd.org (Postfix) with ESMTP id AA1FA8FC15 for ; Thu, 29 Mar 2012 16:06:06 +0000 (UTC) MIME-version: 1.0 Received: from avs-daemon.smtpauth3.wiscmail.wisc.edu by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0M1N00406M1VQ400@smtpauth3.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Thu, 29 Mar 2012 11:05:55 -0500 (CDT) Received: from i3-dhcp-172-16-223-236.icecube.wisc.edu (i3-user-nat.icecube.wisc.edu [128.104.255.12]) by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0M1N00LLAM1SOY20@smtpauth3.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Thu, 29 Mar 2012 11:05:53 -0500 (CDT) Date: Thu, 29 Mar 2012 11:05:51 -0500 From: Nathan Whitehorn In-reply-to: To: Super Bisquit Message-id: <8D7C215E-DCA8-4DAB-8133-F3625DF8BD7F@freebsd.org> X-Mailer: Apple Mail (2.936) X-Spam-Report: AuthenticatedSender=yes, SenderIP=128.104.255.12 X-Spam-PmxInfo: Server=avs-13, Version=5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.3.29.155125, SenderIP=128.104.255.12 References: <20120324172025.67615299@narn.knownspace> <4F707833.8080107@freebsd.org> Content-Type: text/plain; CHARSET=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD PowerPC ML Subject: Re: wi diff X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Mar 2012 16:06:06 -0000 On Mar 29, 2012, at 10:33 AM, Super Bisquit wrote: > > > On Mon, Mar 26, 2012 at 10:07 AM, Nathan Whitehorn > wrote: > On 03/25/12 19:39, Super Bisquit wrote: > On 3/24/12, Justin Hibbits wrote: > On Sat, 24 Mar 2012 17:04:58 -0400 > Super Bisquit wrote: > > I sent two emails- the second a repeat of the first. > In GENERIC, all warnings were edited out and wi was not added in the > miibus section. > I haven't rebooted yet. The other messages show the error. > > Apologies for the sudden come and go. > > Justin, thanks for the reply in CURRENT. I think that clang, llvm, and > related need to be in the base and not in ports. Developer version > releases are different. Look on emulation for some posts I made, is > it possible to get what was sent- I think from you if I recall > correctly- to be in source? > > If it wasn't for the error, buildworld on powerpc with clang would > have worked. > > Garrett, has the error from tinderbox build been corrected and has a > build been setup with clang instead? > > From my understanding, wi(4) does not attach to the mii bus, so you > will never see it. If my understanding is correct, mii is for > physical > ethernet only (a real networking expert can correct me here, gladly). > So the attachment you see of wi(4) should only be on the macio, pci, > or > pccard buses, if in fact you have a wi(4) card (original airport, > not airport extreme in the case of my diff). > > As for the clang/llvm problems, since clang is not complete regarding > powerpc (and anything but x86/x86-64 and most of arm), it doesn't make > sense to keep updating them just to track any possible PowerPC > changes. One very important part that's missing in the PowerPC target > is position-independent code, which is required for shared libraries. > I've been working off and on with getting Thread-local storage working > for PowerPC, but have not done too much (wrote the basic function, > haven't added the codegen parts in), but will continue working on it > over the coming months, and then turn my attention to PIC (if nobody > else has stepped up to it by then). With these being the two biggest > stumbling points, solving them will go a long way to getting clang > buildworlding FreeBSD. > > - Justin > > > I emailed the Debian maintainers for clang and asked about configure > options. Although it is not FreeBSD, the information may help some. > The #llvm irc channel mentioned that FreeBSD was/is interested in > PowerPC builds. > > > You need to add -fno-strict-aliasing when building straight from > SVN, at which point everything works fine. You can see how it's done > in the FreeBSD tree. > -Nathan > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" > > Hey, Nathan, how's it going? > > Anyway, am I to add the flag to ./configure as -option or is it for > make -option? > You need to add it to CFLAGS and CXXFLAGS. -Nathan