Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changes between Version 1 and Version 2 of UsersGuide/CompilingFromSource


Ignore:
Timestamp:
2010-06-23T18:29:50Z (11 years ago)
Author:
Jiri Svoboda
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • UsersGuide/CompilingFromSource

    v1 v2  
    3434'''Note:''' In older revisions of the source tree the ''toolchain.sh'' script has present in the ''contrib'' directory (not the ''tools'' directory where it is now).
    3535
     36== 3. Did you install the compiler toolchain? Good. ==
     37
     38If you did not, it won't work! Don't even try to pester us about that. It won't work. Because it won't. It can't.
     39
     40Why can't it work?
     41 * Tool versions: We only test HelenOS on the one single version of GCC, binutils, etc. We don't have the resources to test other versions. Other versions have bugs (or lack required features). It won't compile.
     42 * Different ABIs: Each OS has a different ABI and different set of compiler settings. If you build binaries with your native compiler, they will run fine in your OS, but certainly not in HelenOS!
     43 * {{{-Werror}}}: Developer builds use -Werror and each compiler version produces different warnings. Thus, you will get warnings and these get turned into erros.
     44
     45== 4. Configure and build ==
     46
    3647Go to the source root and start the build process
    3748
     
    4455
    4556'''Note:''' Do not select a different compiler! If you use ''gcc_native'' instead of ''gcc_cross'', it won't work, so please don't ask in the mailing list! Building HelenOS with a native compiler is '''not supported'''!
    46 
    47 == 3. Did you install the compiler toolchain? Good. ==
    48 
    49 If you did not, it won't work! Don't even try to pester us about that. It won't work. Because it won't. It can't.
    50 
    51 Why can't it work?
    52  * Tool versions: We only test HelenOS on the one single version of GCC, binutils, etc. We don't have the resources to test other versions. Other versions have bugs (or lack required features). It won't compile.
    53  * Different ABIs: Each OS has a different ABI and different set of compiler settings. If you build binaries with your native compiler, they will run fine in your OS, but certainly not in HelenOS!
    54  * {{{-Werror}}}: Developer builds use -Werror and each compiler version produces different warnings. Thus, you will get warnings and these get turned into erros.
    55 
    56 
    57 Load preconfigured defaults for the platform you want to build for and select ''Done''. HelenOS will now be built.