[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbios
Subject:    Re: [OpenBIOS] [PATCH] Fix configuration issues on Mac OS X
From:       Blue Swirl <blauwirbel () gmail ! com>
Date:       2012-12-14 20:48:35
Message-ID: CAAu8pHs=0-zB+CqDdc7z=xiOQa03FoteHFgiSvDV038ziPNZNw () mail ! gmail ! com
[Download RAW message or body]

On Fri, Dec 14, 2012 at 5:55 PM, Programmingkid
<programmingkidx@gmail.com> wrote:
> 
> On Dec 13, 2012, at 3:10 PM, Mark Cave-Ayland wrote:
> 
> > On 12/12/12 16:53, Programmingkid wrote:
> > 
> > > This patch fixes the problem of not correctly configuring for Mac OS X.
> > > 
> > > On Mac OS X, the compiler is simply called gcc, so the names the switch-arch \
> > > script would look for were not available. Also uname -m returns i386 on Mac OS \
> > > X. This value doesn't change on 32bit or 64bit intel processors. On Linux, the \
> > > value would be x86_64 for 64bit processors and i686 for 32bit processors. The 6 \
> > > in 686 might be 3,4, or 5 depending on your processor type. 
> > > With this patch I was actually able to go pretty far in the building process of \
> > > making OpenBIOS. I stopped at an issue in elf_info.c. This is another issue to \
> > > be solved for another time. 
> > > signed-off-by: John Arbuckle<programmingkidx@gmail.com>
> > 
> > Hmmm. OS X uses LLVM instead of gcc, doesn't it? I'm not sure I know enough about \
> > LLVM cross-compile environments in order to know if this is the right thing to do \
> > or not. Any web references you can point me at, or are there any other \
> > compiler-savvy OS X users on the mailing list? 
> 
> LLVM is part of CLANG. CLANG is another compiler that is different from gcc. To use \
> CLANG, you have to specify it. GCC is still available on Mac OS X. This page should \
> make things a little more clear to you.

I used Clang analyzer to detect bugs in OpenBIOS around 2010 (r750 to
r752). Clang can be used to build at least openbios-unix on Linux just
with 'make HOSTCC=clang CC=clang'. I'm not sure about other targets
since I haven't had a cross-compiling Clang compiler or native
Sparc/PPC Clang environment.

> 
> http://lists.openbios.org/pipermail/openbios/2011-August/006642.html
> 
> 
> --
> OpenBIOS                 http://openbios.org/
> Mailinglist:  http://lists.openbios.org/mailman/listinfo
> Free your System - May the Forth be with you

-- 
OpenBIOS                 http://openbios.org/
Mailinglist:  http://lists.openbios.org/mailman/listinfo
Free your System - May the Forth be with you


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic