Issues building LOS178 with 3.4.3 toolchain

I experienced the following issues when attempting to build LOS178 with the 3.4.3 toolchain:

Need to have xcoff cdk

In order to perform the build the xcoff version of the cdk needs to be untarred. This was obtained from 2.0.0 (98r2) tarball:

    $ tar -zxpf ../1033-00.cdklinux.tar.gz

Need to get files from ppc.cdksol.tar.gz from sys/miscgcc

In order to perform the build one needs to extract files from bin-image/ppc.cdksol.tar.gz, specifically the sys/miscgcc area:

    $ tar -zxpf ../bin-image/ppc.cdksol.tar.gz sys/miscgcc

Need to extract 3.4.3 toolchain

After successfully building 3.4.3 gcc, package it up and then use it to extract here:

$ tar -zxpf ../toolchain/toolchain-i686-pc-linux-gnu-powerpc178.tar.gz

Toolchain's cdk/linux-elf-ppc lacks a bin directory

Normally under cdk/linux-xcoff-ppc there is both a usr and a bin directory. Some entities are just a symlink back to their counterparts in ../usr/bin (e.g. ld -> ../usr/bin/ld). This bin directory structure is not present after untarring toolchain-i686-pc-linux-gnu-powerpc178.tar.gz. For building purposes the following was done:

  1. Create a bin directory in cdk/linux-xcoff.ppc
  2. Create symlinks to ../usr/bin:
          $ for link in ar as byacc c++ cmp diff diff3 expect flex gcc ld \
          > make nm ranlib size strip; do
          > ln -s ../usr/bin/$link $link
          > done
    
    Note: Some of these are probably not necessary
  3. Copy the following files from linux-xcoff-ppc/bin -> linux-elf-ppc/bin:
          $ for file in bison bison.hairy bison.simple coffcorrupt cofflook \
          > config crc elflook gnutar gunzip gzcat gzexe gzip install mkbootprep \
          > mkimage mktimestamp prepend-crc vctchk yacc zcmp zdiff zforce zgrep \
          > zmore znew; do
          > cp ../../linux-xcoff-ppc/bin/$file $file
          > done
    
    Note: Some of these are probably not necessary

libgcc.a not present

The build failed because it was unable to find libgcc.a. The solution was to copy libgcc.a into the right place:

    $ mkdir lib
    $ cp cdk/linux-elf-ppc/usr/lib/gcc/powerpc-lynx-lynxos178/3.4.3/libgcc.a lib