Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / week_2005_07_03.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: July  3, 2005 - July  9, 2005 Archives</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/week_2005_06_26.html" title="June 26, 2005 - July  2, 2005" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/week_2005_07_10.html" title="July 10, 2005 - July 16, 2005" />
17 </head>
18 <body class="layout-one-column">
19    <div id="container">
20       <div id="container-inner" class="pkg">
21
22          <div id="banner">
23             <div id="banner-inner" class="pkg">
24                <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
25                <h2 id="banner-description">Searchable status reports and work log</h2>
26             </div>
27          </div>
28
29          <div id="pagebody">
30             <div id="pagebody-inner" class="pkg">
31                <div id="alpha">
32                   <div id="alpha-inner" class="pkg">
33                      
34                      <p class="content-nav">
35                         <a href="http://defaria.com/blogs/Status/archives/week_2005_06_26.html">&laquo; June 26, 2005 - July  2, 2005</a> |
36                         <a href="http://defaria.com/blogs/Status/">Main</a>
37                         | <a href="http://defaria.com/blogs/Status/archives/week_2005_07_10.html">July 10, 2005 - July 16, 2005 &raquo;</a>
38                      </p>
39                      
40                      
41                      
42
43                      <h2 class="date-header">July  7, 2005</h2>
44                      <a id="a000383"></a>
45                      <div class="entry" id="entry-383">
46                         <h3 class="entry-header">CDK Packaging</h3>
47                         <div class="entry-content">
48                            <div class="entry-body">
49                               <p>The CDK was not properly packaged before. Here's what needs to be done. Because we built GDB we need to get the GDB client software into the LOS178 CDK area. This is done by performing a make package-gdb in toolchain to obtain a tarball for GDB. This process also creates a toolchain source tarball, which takes quite some time and space and it largely not needed.</p>
50
51 <p>Then you need to unpack this GDB tarball into the LOS178 CDK area. Then you can tar up the CDK (for Linux and Windows) or use package.sh (Solaris).</p>
52
53 <div class="note">There is a problem with make package-gdb on Solaris. It uses tar naked and also uses -z. Unfortunately Solaris' tar doesn't support -z. Aliasing tar=gnutar didn't work either. I had to, temporarily, modify the Makefile to use gnutar.</div>
54                               
55                               <p class="entry-footer">
56                                  <span class="post-footers">Posted by  at 11:50 AM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000383.html">Permalink</a>
57                                  
58                                  
59                               </p>
60                            </div>
61                         </div>
62                      </div>
63                      
64                      
65
66                      <h2 class="date-header">July  6, 2005</h2>
67                      <a id="a000382"></a>
68                      <div class="entry" id="entry-382">
69                         <h3 class="entry-header">Building LOS178 2.1.0 on Windows</h3>
70                         <div class="entry-content">
71                            <div class="entry-body">
72                               <p>In order to build LOS178 2.1.0 on Windows the following steps were performed:</p>
73
74 <h4>Create LOS178 build area</h4>
75
76 <ul>
77   <li>In /build the directory 2.1.0/los178 was created</li>
78
79   <li>From a successful build on Rock the tar images: 
80
81    <ul>
82       <li>2000-00.los178_rsc_src.tar.gz</li>
83
84       <li>2001-00.los178_src.tar.gz</li>
85
86       <li>2013-00.los178_dev.tar.gz</li>
87
88       <li>2015.los178_rsc_dev.tar.gz</li>
89     </ul>
90
91     were extracted into /build/2.1.0/los178.</li>
92
93     <li>2032-00.cdkwin32.tar.gz was obtaind from t3:/export/dev_archive/los178/2p1p0/20050622/solaris/media/ppc and extracted into /build/2.1.0/los178</li>
94 </ul>
95
96 <h4>Compile cdk</h4>
97
98 <ul>
99   <li>Sourced SETUP.bash</li>
100
101   <li>cd'ed into src/cdk</li>
102
103   <li>make install > install.log 2>&1</li>
104
105   <li>The install.log was checked for errors</li>
106 </ul>
107
108 <h4>Build GDB</h4>
109
110 <ul>
111   <li>The toolchain was exported, tarred, copied and extracted to /build/2.1.0/toolchain and fixup.sh was run</li>
112
113   <li>In order for GDB to compile successfully the liblcsapi.a library was extracted from t3:/export/rel_archive/archive-lcs-1.0.0/052703/10001.lcs_host.tar.gz tarball into the host environment ($ENV_PREFIX/lib, a directory that has to be made first) </li>
114
115   <li>The GDB module was compiled with make install-gdb > install.log 2>&1</li>
116
117   <li>The install.log was checked for errors</li>
118
119   <li>Move install-powerpc178/cdk/sunos-xcoff-ppc/usr/bin/gdbserver (and gdbserver-lcs) to $ENV_PREFIX/bin.</li>
120
121 </ul>
122                               
123                               <p class="entry-footer">
124                                  <span class="post-footers">Posted by  at 10:22 AM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000382.html">Permalink</a>
125                                  
126                                  
127                               </p>
128                            </div>
129                         </div>
130                      </div>
131                      
132                      
133
134                      <h2 class="date-header">July  5, 2005</h2>
135                      <a id="a000381"></a>
136                      <div class="entry" id="entry-381">
137                         <h3 class="entry-header">Building LOS178 2.1.0 on Linux</h3>
138                         <div class="entry-content">
139                            <div class="entry-body">
140                               <p>In order to build LOS178 2.1.0 on Linux the following steps were performed:</p>
141
142 <h4>Create LOS178 build area</h4>
143
144 <ul>
145   <li>In /build the directory 2.1.0/los178 was created</li>
146
147   <li>From a successful build on Rock the tar images: 
148
149    <ul>
150       <li>2000-00.los178_rsc_src.tar.gz</li>
151
152       <li>2001-00.los178_src.tar.gz</li>
153
154       <li>2013-00.los178_dev.tar.gz</li>
155
156       <li>2015.los178_rsc_dev.tar.gz</li>
157     </ul>
158
159     were extracted into /build/2.1.0/los178.</li>
160
161   <li>A copy of bin-image was checked out using the DEV_LOS178_2p1p0_ppc_20050705 tag to /build/2.1.0</li>
162
163   <li>The bin-image/ppc.cdklinux.tar.gz was extracted into /build/2.1.0/los178</li>
164 </ul>
165
166 <h4>Compile cdk</h4>
167
168 <ul>
169   <li>Sourced SETUP.bash</li>
170
171   <li>cd'ed into src/cdk</li>
172
173   <li>make install > install.log 2>&1</li>
174
175   <li>The install.log was checked for errors</li>
176
177   <div class="note">There was an error with disasm_mips.c under elflook but I remember Vinnie reporting that elflook was not compiling completely. I assume that this error is acceptable</div>
178 </ul>
179
180 <h4>Build GDB</h4>
181
182 <ul>
183   <li>The toolchain was checked out to /build/2.1.0/toolchain and fixup.sh was run</li>
184
185   <li>In order for GDB to compile successfully the liblcsapi.a library was extracted from t3:/export/rel_archive/archive-lcs-1.0.0/052703/10001.lcs_host.tar.gz tarball into the host environment ($ENV_PREFIX/lib, a directory that has to be made first) </li>
186
187   <li>The GDB module was compiled with make install-gdb > install.log 2>&1</li>
188
189   <li>The install.log was checked for errors</li>
190
191   <li>Move install-powerpc178/cdk/sunos-xcoff-ppc/usr/bin/gdbserver (and gdbserver-lcs) to $ENV_PREFIX/bin.</li>
192 </ul>
193                               
194                               <p class="entry-footer">
195                                  <span class="post-footers">Posted by  at  8:01 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000381.html">Permalink</a>
196                                  
197                                  
198                               </p>
199                            </div>
200                         </div>
201                      </div>
202                      
203                      
204
205                      
206                      <a id="a000380"></a>
207                      <div class="entry" id="entry-380">
208                         <h3 class="entry-header">Test build of LOS178 2.1.0</h3>
209                         <div class="entry-content">
210                            <div class="entry-body">
211                               <ul>
212   <li>Rebuilt LOS178 2.1.0 in preparation for release of LOS178 2.1.0</li>
213 </ul>
214                               
215                               <h3>Building LOS178</h3>
216
217 <h4>Solaris</h4>
218
219 <p>Use /int/bin/build_los178 which performs all the necessary steps. Solaris builds have not changed</p>
220
221 <h4>Linux</h4>
222
223 <p>There is no need to build LOS178 on Linux but there is a need to build the CDK since what is in the bin-image tarball is not complete. There's also a need to build gdb client portions.</p>
224
225 <p>"Building" of LOS178 on Linux therefore consists of:</p>
226
227 <ol>
228   <li>Creating a "build" area</li>
229
230   <li>Extracting sources from 2000-00.los178_rsc_src.tar.gz and 2001-00.los178_src.tar.gz</li>
231 </ol>
232
233 <h4>Windows</h4>
234
235 <p>Similarly there is no need to build LOS178 on Windows but there is a need to build the CDK since what is in the bin-image tarball is not complete. There's also a need to build gdb client portions.</p>
236
237 <p>"Building" of LOS178 on Windows therefore consists of:</p>
238
239
240 <ol>
241   <li>Setup PC with Cygwin properly (if not already set up)</li>
242
243   <li>Start a cmd shell and execute the VCVARS32.bat file</li>
244
245   <li>Execute the cygnus.bat script to enter Cygwin</li>
246
247   <li>Create build area</li>
248
249   <li>Extract sources from 2000-00.los178_rsc_src.tar.gz and 2001-00.los178_src.tar.gz (May also need 2013-00.los178_dev.tar.gz and 2015-00.los178_rsc_dev.tar.gz)</li>
250 </ol>
251
252 <h3>Building CDK</h3>
253
254 <h4>Solaris</h4>
255
256 <p>There is no CDK to build on Solaris as it is contained in the ppc.cdksol.tar.gz</p>
257
258 <h4>Linux</h4>
259
260 <p>For Linux, cd to your build area and:</p>
261
262 <ol>
263   <li>SETUP.bash</li>
264
265   <li>cd src/cdk and make install. This builds parts of the CDK not contained in bin-image.</li>
266 </ol>
267
268 <h4>Windows</h4>
269
270 <p>Make sure you have a proper setup:</p>
271
272 <ol>
273   <li>Setup PC with Cygwin properly (if not already set up)</li>
274
275   <li>Start a cmd shell and execute the VCVARS32.bat file</li>
276
277   <li>Execute the cygnus.bat script to enter Cygwin</li>
278
279   <li>SETUP.bash</li>
280
281   <li>cd src/cdk and make install. This builds parts of the CDK not contained in bin-image.</li>
282 </ol>
283
284 <h3>Packaging CDK</h3>
285
286 <p>The CDKs for all of Solaris, Linux and Windows need to be properly packaged for the customer. Currently package.sh is designed to handle both cdksol and cdklinux. Thus after building CDK on Linux one can tar it up and deposit it into the Solaris build area and use package.sh to create the proper packaging.</p>
287
288 <p>The rename.sh also handles renaming cdk[sol|linux|win32] tarballs it finds with the proper package #.</p>
289
290 <p>So the remaining issue is how to deal with the oddball win32... The issue is that it was thought that the cdk could not be easily tarred up and moved over because symlinks in the tar would be messed up. This does not appear to be the case as a little test shows that Cygwin's B20 tar will properly store the symlink on the Windows side and the Unix/Linux tar will properly unpack it.</p>
291
292 <h3>GDB Madness</h3>
293
294 <p>GDB, which consists of a gdbserver part that needs to eventually be put into $ENV_PREFIX/bin as it is built into a different area (why isn't a make install-gdb putting it in the right place) and some client parts (Just gdb in install-powerpc178/cdk/sunos-xcoff-ppc/usr/bin? Or do we include the other files like insight, tclsh8.4 and wish8.4?). These parts need to be placed in the build area.</p>
295
296 <p>So, for example, for Linux one needs to follow the above and then:</p>
297
298 <ul>
299   <li>Check out the toolchain from CVS (tag: DEV_LOS178_2p1p0_ppc_20050705)</li>
300
301   <li>Run fixup.sh</li>
302
303   <li>Source SETUP.bash from a LOS178 area
304
305 <div class="note">
306 Remember: You need to use SETUP.bash from a dev area build. Using pdn will result in an error as the build is unable to find libbsd.a!
307 </div>
308
309 <p></p>
310
311 <div class="note">
312 Also: Install the liblcsapi.a library from the t3:/export/rel_archive/archive-lcs-1.0.0/052703/10001.lcs_host.tar.gz tarball into the host environment ($ENV_PREFIX/lib).
313 </div>
314
315 </li>
316
317   <li>make install-gdb > install.log 2>&1</li>
318
319   <li>Check for errors and if successful, make package.</li>
320 </ul>
321
322 <p>With the build of gdb successful:</p>
323
324 <ul>
325   <li>Move install-powerpc178/cdk/sunos-xcoff-ppc/usr/bin/gdbserver (and gdbserver-lcs) to $ENV_PREFIX/bin.
326
327 <div class="note"><b>Note:</b> Since $ENV_PREFIX is set to dev then this means that gdbserver goes to dev. Should it also be put in pdn?</div>
328
329 </li>
330
331 </ul>
332
333                               
334                               <p class="entry-footer">
335                                  <span class="post-footers">Posted by  at  5:24 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000380.html">Permalink</a>
336                                  
337                                  
338                               </p>
339                            </div>
340                         </div>
341                      </div>
342                      
343                   </div>
344                </div>
345             </div>
346          </div>
347       </div>
348    </div>
349 </body>
350 </html>