" /> Status for Andrew DeFaria: December 12, 2004 - December 18, 2004 Archives

« December 5, 2004 - December 11, 2004 | Main | December 19, 2004 - December 25, 2004 »

December 17, 2004

LOS178 Build/5.0.0 native toolchain build

  • LOS178 build after copyright fix builds with 12 errors. Test build of LOS178 without copyright fix also builds with 12 errors!
  • Building of 5.0.0 toolchain natively is failing

LOS178 copyright fix

The Perl script to fix the copyrights in LOS178 sources needs detect if there was a prior copyright block and replace it if necessary. Finding old copyright blocks is hueristic in nature and thus fallable. The problem is there are no sentenals clearly marking our copyright. The best the script can do is attempt to find a comment block that starts and ends with a particular comment line based on the "/" and a number of "*"'s for the start and a number of "*"'s and a "/" for the end. Problem is we do not know if what's inbetween is really our copyright. The hueristic can be tuned finer with some difficulty but currently it does not.

The real difficulty is that there is no real standard in our copyright blocks thus it is hard to get this right

As it stands the script occasionally misinterprets a comment block, sometimes just the ending comment block, and alters the file in such a way that it introduces compile errors.

There were a number of files that this occurred in and they were hand edited

5.0.0 Native Toolchain Build

In picking up ECR 23084 I was able to build the toolchain for both cross x86 and ppc. In building the native toolchain there is an error:

Configuring texinfo...
configure: error: invalid package name: gcc-version-trigger
Configure in /mnt/toolchain/build-i386/texinfo failed, exiting.
make: *** [stamp-configure-i386] Error 1

Thu says that I didn't run fixup.sh but I did. The toolchain does not package up fixup.sh so I grabbed one from somewhere. Thu suggests that we file an ECR for this and fix the Makefile.

December 16, 2004

LOS178 & ECR 23084

  • Wrote a Perl script to fix up copyrights on LynxOS (178). Working on running that and getting the build to work
  • Pulled ECR 23084 and built toolchain for x86 & ppc. Need to build native

December 14, 2004

ECRs 23079 & 23080

  • Submitted ECR: 23079: PPC: target elf32-powerpc-lynx not found
  • Submitted ECR: 23080: OUTPUT_FORMAT directive should be adjusted to elf32-powerpc-lynx

Thu determined that we have a toolchain problem here so she had me submit ECR 23079. Adam debugged the problem which produced 23080

December 13, 2004

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"