Rebuilding PPC

  • Rebuilding for the PPC. I messed up a step or two

Building cross lynxos for PPC

  • Cleaned up by removing the ppc directories (i.e. starting from scratch WRT the ppc)
  • Linked /usr/lynx/5.0.0 -> /export/build1/LYNXOS_500/build/lynxos/120604-A
  • In /export/build1/LYNXOS_500/build/lynxos/120604-A/int_tools modified START to change steps_ppc to just 1 and 2. We're gonna take this slowly.
  • Made sure that __profile.exp points to 120604-A. It still does, from before. There are a lot of settings in here that sometimes need to change depending on the situation. For example, right now the TOP_OF_TRUNK variable is set to no but it is usually set to yes.
  • Execute START and then tail -f LOGS/ppc.log.
  • Checked out with "check ppc". Seems OK.
  • Changed START to do steps 3 and 4. I think I could have done 1, 2, 3 and 4 together but Thu only wrote down 1 and 2
  • Checked again with check ppc. Still seems fine
  • Changed START to do steps 5en 5el 7 9 14 15 16 (17 doesn't work yet so why do it?) Failure: got:
    Failure reason : Compiler does not exist: /export/dev_archive/lynxos/tools-5.0.0/3.2.2-072304/toolchain-powerpc-lynx-lynxos-ppc.tar.gz
    Ah ha! See this is one of those things that just confuses me. Contained in __profile.exp there's:
                                                            # compiler binary
    #set DIR_PATH(compilers) "/usr/lynx/t3/dev_archive/lynxos/tools-5.0.0/3.2.2-072304"
    set DIR_PATH(compilers) "/export/dev_archive/lynxos/tools-5.0.0/3.2.2-072304"
    
    need to uncomment the first line and comment out the second line.
  • After making the above change I reran START. Errors in makeall.log

Build ppc toolchain

Thu said that the error sin makeall.log were acceptable. Continuing on to build the ppc toolchain...

  • cd /usr/lynx/5.0.0/ppc (note that /usr/lynx/5.0.0 still points to 120604-A)
  • Ran . SETUP.bash setting ENV_PREFIX to cwd, target = ppc. which gcc yeilds /usr/lynx/5.0.0/ppc/cdk/linux-elf-ppc/bin/gcc
  • Toolchain is in /export/build1/LYNXOS_500/build/toolchain/3.2.2/120804 so cd'ed there
  • make install > install-ppc.log 2>&1 &
  • Toolchain seemed to build OK this time. Archived toolchain by doing make package then moving toolchain-i686-pc-linux-gnu-powerpc.tar.gz to /usr/lynx/t3/dev_archive/lynxos/tools-5.0.0/3.2.2-120604. This is a little tricky because this path is a link to a mount on t3 and as such is considered a read only file system. The following worked for me, in /export/build1/LYNXOS_500/build/toolchain/3.2.2/120804:
  • $ rcp toolchain-i686-pc-linux-gnu-powerpc.tar.gz int@t3:/export/dev_archive/lynxos/tools-5.0.0/3.2.2-120604
    

Building cross lynxos for PPC (again)

  • Linked /usr/lynx/5.0.0 -> /export/build1/LYNXOS_500/build/lynxos/120604-B
  • In /export/build1/LYNXOS_500/build/lynxos/120604-B/int_tools modified START to change steps_ppc to for 1, 2, 3 and 4.
  • Execute START and then tail -f LOGS/ppc.log. Steps 1-4 seemed to have worked OK
  • Looked at __profile.exp and found
    set DIR_PATH(compilers) "/usr/lynx/t3/dev_archive/lynxos/tools-5.0.0/3.2.2-120604"
    
    The compiler exists there (because of the archiving step above). Note there was no t3 style reference here.
  • Ran START again and monitored logs... Errors stating "gcc: installation problem, cannot exec `cc1': No such file or directory"