1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Movable Type 5.2.3" />
8 <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles-site.css" type="text/css" />
9 <link rel="alternate" type="application/atom+xml" title="Atom" href="http://defaria.com/blogs/Status/atom.xml" />
10 <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://defaria.com/blogs/Status/index.xml" />
12 <title>Status for Andrew DeFaria: Issues building LOS178 with 3.4.3 toolchain</title>
14 <link rel="start" href="http://defaria.com/blogs/Status/" title="Home" />
15 <link rel="prev" href="http://defaria.com/blogs/Status/archives/000369.html" title="3.4.3 toolchain build/LOS178 Makefile global clean/clobber" />
16 <link rel="next" href="http://defaria.com/blogs/Status/archives/000371.html" title="3.4.3 toolchain build/LOS178 Makefile global clean/clobber" />
22 <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
24 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
26 <div id="container-inner" class="pkg">
29 <div id="banner-inner" class="pkg">
30 <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
31 <h2 id="banner-description">Searchable status reports and work log</h2>
36 <div id="pagebody-inner" class="pkg">
38 <div id="alpha-inner" class="pkg">
40 <p class="content-nav">
41 <a href="http://defaria.com/blogs/Status/archives/000369.html">« 3.4.3 toolchain build/LOS178 Makefile global clean/clobber</a> |
42 <a href="http://defaria.com/blogs/Status/">Main</a>
43 | <a href="http://defaria.com/blogs/Status/archives/000371.html">3.4.3 toolchain build/LOS178 Makefile global clean/clobber »</a>
47 <div class="entry" id="entry-370">
48 <h3 class="entry-header">Issues building LOS178 with 3.4.3 toolchain</h3>
49 <div class="entry-content">
50 <div class="entry-body">
51 <p>I experienced the following issues when attempting to build LOS178 with the 3.4.3 toolchain:</p>
53 <h3>Need to have xcoff cdk</h3>
55 <p>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:</p>
57 <div class="code"><pre>
58 $ tar -zxpf ../1033-00.cdklinux.tar.gz
63 <h3>Need to get files from ppc.cdksol.tar.gz from sys/miscgcc</h3>
65 <p>In order to perform the build one needs to extract files from bin-image/ppc.cdksol.tar.gz, specifically the sys/miscgcc area:</p>
67 <div class="code"><pre>
68 $ tar -zxpf ../bin-image/ppc.cdksol.tar.gz sys/miscgcc
73 <h3>Need to extract 3.4.3 toolchain</h3>
75 <p>After successfully building 3.4.3 gcc, package it up and then use it to extract here:</p>
77 <div class="code"><pre>
78 $ tar -zxpf ../toolchain/toolchain-i686-pc-linux-gnu-powerpc178.tar.gz
83 <h3>Toolchain's cdk/linux-elf-ppc lacks a bin directory</h3>
85 <p>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:</p>
88 <li>Create a bin directory in cdk/linux-xcoff.ppc</li>
90 <li>Create symlinks to ../usr/bin:
92 <div class="code"><pre>
93 $ for link in ar as byacc c++ cmp diff diff3 expect flex gcc ld \
94 > make nm ranlib size strip; do
95 > ln -s ../usr/bin/$link $link
99 Note: Some of these are probably not necessary</li>
101 <li>Copy the following files from linux-xcoff-ppc/bin -> linux-elf-ppc/bin:
103 <div class="code"><pre>
104 $ for file in bison bison.hairy bison.simple coffcorrupt cofflook \
105 > config crc elflook gnutar gunzip gzcat gzexe gzip install mkbootprep \
106 > mkimage mktimestamp prepend-crc vctchk yacc zcmp zdiff zforce zgrep \
108 > cp ../../linux-xcoff-ppc/bin/$file $file
112 Note: Some of these are probably not necessary</li>
115 <h3>libgcc.a not present</h3>
117 <p>The build failed because it was unable to find libgcc.a. The solution was to copy libgcc.a into the right place:</p>
119 <div class="code"><pre>
121 $ cp cdk/linux-elf-ppc/usr/lib/gcc/powerpc-lynx-lynxos178/3.4.3/libgcc.a lib
124 <div id="more" class="entry-more">
128 <p class="entry-footer">
129 <span class="post-footers">Posted by on June 10, 2005 3:53 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000370.html">Permalink</a>