X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=INSTALL%2Fbuild.html;h=30f2b6b0a564f2530e44eeb4743c2ec1208f8488;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=9c5fd524ea75f9220a4e82bd9986b7b1eca02133;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/INSTALL/build.html b/INSTALL/build.html index 9c5fd524..30f2b6b0 100644 --- a/INSTALL/build.html +++ b/INSTALL/build.html @@ -3,35 +3,63 @@ Installing GCC: Building - - + + + + + +

Installing GCC: Building

+ Now that GCC is configured, you are ready to build the compiler and runtime libraries. -

We highly recommend that GCC be built using GNU make; -other versions may work, then again they might not. -GNU make is required for compiling GNAT (the Ada compiler) and the Java -runtime library. - -

(For example, many broken versions of make will fail if you use the -recommended setup where objdir is different from srcdir. -Other broken versions may recompile parts of the compiler when -installing the compiler.) -

Some commands executed when making the compiler may fail (return a -nonzero status) and be ignored by make. These failures, which +nonzero status) and be ignored by make. These failures, which are often due to files that were not found, are expected, and can safely be ignored.

It is normal to have compiler warnings when compiling certain files. Unless you are a GCC developer, you can generally ignore these warnings -unless they cause compilation to fail. +unless they cause compilation to fail. Developers should attempt to fix +any warnings encountered, however they can temporarily continue past +warnings-as-errors by specifying the configure flag +--disable-werror.

On certain old systems, defining certain environment variables such as -CC can interfere with the functioning of make. +CC can interfere with the functioning of make.

If you encounter seemingly strange errors when trying to build the compiler in a directory other than the source directory, it could be @@ -39,40 +67,47 @@ because you have previously configured the compiler in the source directory. Make sure you have done all the necessary preparations.

If you build GCC on a BSD system using a directory stored in an old System -V file system, problems may occur in running fixincludes if the +V file system, problems may occur in running fixincludes if the System V file system doesn't support symbolic links. These problems result in a failure to fix the declaration of size_t in -sys/types.h. If you find that size_t is a signed type and +sys/types.h. If you find that size_t is a signed type and that type mismatches occur, this could be the cause.

The solution is not to use such a directory for building GCC. -

When building from CVS or snapshots, or if you modify parser sources, -you need the Bison parser generator installed. Any version 1.25 or -later should work; older versions may also work. If you do not modify -parser sources, releases contain the Bison-generated files and you do -not need Bison installed to build them. +

Similarly, when building from SVN or snapshots, or if you modify +*.l files, you need the Flex lexical analyzer generator +installed. If you do not modify *.l files, releases contain +the Flex-generated files and you do not need Flex installed to build +them. There is still one Flex-based lexical analyzer (part of the +build machinery, not of GCC itself) that is used even if you only +build the C front end. -

When building from CVS or snapshots, or if you modify Texinfo -documentation, you need version 4.1 or later of Texinfo installed if you +

When building from SVN or snapshots, or if you modify Texinfo +documentation, you need version 4.7 or later of Texinfo installed if you want Info documentation to be regenerated. Releases contain Info documentation pre-built for the unmodified documentation in the release.

Building a native compiler

-

For a native build issue the command make bootstrap. This -will build the entire GCC system, which includes the following steps: +

For a native build, the default configuration is to perform +a 3-stage bootstrap of the compiler when ‘make’ is invoked. +This will build the entire GCC system and ensure that it compiles +itself correctly. It can be disabled with the --disable-bootstrap +parameter to ‘configure’, but bootstrapping is suggested because +the compiler will be tested more completely and could also have +better performance. -