Building a GCC PowerPC/Linux Cross Compiler For SPARC/Solaris[4]

[入库:2005年8月19日] [更新:2007年3月24日]

本文简介:选择自 huzancheng 的 blog

  • install
    1. gmake install

      if your build process has completed successfully, the install process should go fairly smoothly. one tangle may occur when the install process attempts to run in the locale/ directory. there are either missing rules for, or the rules don't work quite correctly for, the i18n/locales/ and i18n/repertoiremaps/ targets.

      if you encounter this problem, to work around it, simply create the following directories yourself:

      1. cd <tool dir>/target/powerpc-linux-gnu/share/
      2. mkdir i18n
      3. cd i18n
      4. mkdir locales
      5. mkdir repertoiremaps
      6. cd <object dir>/glibc-2.1.3
      7. gmake install

    the install process should take about 15 or so minutes, assuming that no errors are encountered.

  • gcc
  • provided that glibc compiled successfully, you are ready to go back and rebuild the c compiler and, if you wish, build the objective c, c++ and f77 compilers.

    1. extract
      1. cd <source dir>
      2. mv gcc-2.95.2 gcc-core-2.95.2
      3. gtar zxvf <archive dir>/gcc-2.95.2.tar.gz

    2. build
      1. cd <object dir>
      2. mv gcc-2.95.2 gcc-core-2.95.2
      3. mkdir gcc-2.95.2
      4. cd gcc-2.95.2
      5. <source dir>/gcc-2.95.2/configure --host=sparc-sun-solaris --target=powerpc-linux --prefix=<tool dir>/host/sparc-sun-solaris --with-headers=<tool dir>/target/powerpc-linux-gnu/include --with-libs=<tool dir>/target/powerpc-linux-gnu/lib --enable-shared --enable-languages="c,c++,f77"
      6. gmake

    3. install
      1. gmake install

    本文关键:Building a GCC PowerPC/Linux Cross Compiler For SPARC/Solaris
      相关方案
    Google
     

    本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

    go top