next up previous contents
Next: Building the rest of Up: Building MOSS Previous: Building GCC

Building MOSS

You'll need to use GNU make to build MOSS itself. GNU make is usually the standard version of make on Linux machines; on FreeBSD it is usually available as `gmake'. You can supply the -r option to speed up the build process somewhat by disabling the default rules built into make; however, this isn't required.

Note that the configure script for MOSS is not in the top-level directory of the MOSS source distribution, but instead is one level deep, in the moss subdirectory. Also, you will need to include some additional options on the configure command line, as shown below. This weirdness is a temporary problem and should be fixed soon.

If you plan to do significant development on MOSS itself, you may want to add -enable-debug to the configure command line; this turns various internal assertions and debugging checks. See Section 3.6 below for more information on this and other compile-time options.

Here is a complete example demonstrating how to configure and build MOSS:

$ tar xvzf moss-0.90.tar.gz
$ cd moss-0.90
$ moss/configure --target=i386-moss --with-bsdsrc=freebsd/usr/src --prefix=/usr/local/i386-moss
$ gmake -r install
$ cd ..

Note: GCC 2.7.2 has an optimization bug that makes MOSS malfunction if it is compiled with -O2. Therefore, you should always compile MOSS with -O1 until this GCC bug has been fixed. (The MOSS distribution is set up to use -O1 by default.)



Bryan Ford