[okl4-developer] Building on MacOSX

Geoffrey Lee glee at ok-labs.com
Tue Nov 20 15:36:04 EST 2007


On Tue, Nov 20, 2007 at 09:51:43AM +1030, Peter Nguyen wrote:
> Ivan,
> 
> I do indeed get the same error when compiling a simple C++ program.   
> Any idea as to whether there has to be another package installed?  
> Apart from the xcode tools (which uses gcc 4.0), i have only installed  
> the gcc3.3 package.


As of Tiger I don't think you are supposed to use gcc 3.3 to build
anything else apart from the MacOSX kernel, and as I recall that
is only for PowerPC.

As far as building OKL4 is concerned, the only version which supports the 
native compilers included in XCode is the Iguana from the Darbat project.  
The Darbat project is quite old, it is based on the ERTOS Iguana 1.1
release.  The present version has some of the infrastructure support there, but 
some things are missing.  For one thing it does not have the machine 
target which tells it to build for Mach-O format and with a proper compiler
toolchain (gcc/Mach-O rather than GNU).

The other option to build it on a Mac is to use an ELF cross
toolchain.  (built with something like crosstool).  This
should let you build up to to the part with the OKL4 bootimage.
The grub in the build system does not work on anything other than
x86/Linux so you will need to copy the image.elf to an existing
grub installation. 


	-gl
> 
> Peter
> 
> On 20/11/2007, at 9:21 AM, Ivan Pulleyn wrote:
> 
> > On Nov 19, 2007 2:45 PM, Peter Nguyen <peter.nguyen at adelaide.edu.au>  
> > wrote:
> >> Hi,
> >>
> >> Having just purchased a spanking new macbook pro, i was wondering
> >> whether it is at all possible to build okl4 in MacOSX (i recall
> >> someone saying that you can't run wombat which i don't really care
> >> about at this stage, i just want to be able to build iguana).  The
> >> reason i ask is that i keep getting the following error:
> >>
> >> gcc-3.3: installation problem, cannot exec `cc1plus': No such file or
> >> directory
> >
> >
> > Have you installed XCode and does it run properly? That error looks
> > like C++ is not available. Try compiling a simple C++ program just to
> > make sure.
> >
> > Ivan...
> 
> 
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer
> 



More information about the Developer mailing list