Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000370.html
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">
4 <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta name="generator" content="Movable Type 5.2.3" />
7
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" />
11
12    <title>Status for Andrew DeFaria: Issues building LOS178 with 3.4.3 toolchain</title>
13
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" />
17
18    
19
20    
21
22    <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
23 </head>
24 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
25    <div id="container">
26       <div id="container-inner" class="pkg">
27
28          <div id="banner">
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>
32             </div>
33          </div>
34
35          <div id="pagebody">
36             <div id="pagebody-inner" class="pkg">
37                <div id="alpha">
38                   <div id="alpha-inner" class="pkg">
39
40                      <p class="content-nav">
41                         <a href="http://defaria.com/blogs/Status/archives/000369.html">&laquo; 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 &raquo;</a>
44                      </p>
45
46                      <a id="a000370"></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>
52
53 <h3>Need to have xcoff cdk</h3>
54
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>
56
57 <div class="code"><pre>
58     $ tar -zxpf ../1033-00.cdklinux.tar.gz
59 </pre></div>
60
61 <br>
62
63 <h3>Need to get files from ppc.cdksol.tar.gz from sys/miscgcc</h3>
64
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>
66
67 <div class="code"><pre>
68     $ tar -zxpf ../bin-image/ppc.cdksol.tar.gz sys/miscgcc
69 </pre></div>
70
71 <br>
72
73 <h3>Need to extract 3.4.3 toolchain</h3>
74
75 <p>After successfully building 3.4.3 gcc, package it up and then use it to extract here:</p>
76
77 <div class="code"><pre>
78 $ tar -zxpf ../toolchain/toolchain-i686-pc-linux-gnu-powerpc178.tar.gz
79 </pre></div>
80
81 <br>
82
83 <h3>Toolchain's cdk/linux-elf-ppc lacks a bin directory</h3>
84
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>
86
87 <ol>
88   <li>Create a bin directory in cdk/linux-xcoff.ppc</li>
89
90   <li>Create symlinks to ../usr/bin:
91
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
96       > done
97 </pre></div>
98
99       Note: Some of these are probably not necessary</li>
100
101   <li>Copy the following files from linux-xcoff-ppc/bin -> linux-elf-ppc/bin:
102
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 \
107       > zmore znew; do
108       > cp ../../linux-xcoff-ppc/bin/$file $file
109       > done
110 </pre></div>
111
112       Note: Some of these are probably not necessary</li>
113 </ol>
114
115 <h3>libgcc.a not present</h3>
116
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>
118
119 <div class="code"><pre>
120     $ mkdir lib
121     $ cp cdk/linux-elf-ppc/usr/lib/gcc/powerpc-lynx-lynxos178/3.4.3/libgcc.a lib
122 </pre></div>
123                            </div>
124                            <div id="more" class="entry-more">
125                               
126                            </div>
127                         </div>
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>
130                         </p>
131                      </div>
132
133                      
134
135                      
136                   </div>
137                </div>
138             </div>
139          </div>
140       </div>
141    </div>
142 </body>
143 </html>