Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / week_2005_06_12.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: June 12, 2005 - June 18, 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_05.html" title="June  5, 2005 - June 11, 2005" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/week_2005_06_19.html" title="June 19, 2005 - June 25, 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_05.html">&laquo; June  5, 2005 - June 11, 2005</a> |
36                         <a href="http://defaria.com/blogs/Status/">Main</a>
37                         | <a href="http://defaria.com/blogs/Status/archives/week_2005_06_19.html">June 19, 2005 - June 25, 2005 &raquo;</a>
38                      </p>
39                      
40                      
41                      
42
43                      <h2 class="date-header">June 16, 2005</h2>
44                      <a id="a000373"></a>
45                      <div class="entry" id="entry-373">
46                         <h3 class="entry-header">The Quest to build 3.0.0 from 3.4.3</h3>
47                         <div class="entry-content">
48                            <div class="entry-body">
49                               <ul>
50   <li>Worked to build 3.0.0 from 3.4.3</li>
51 </ul>
52                               
53                               Andrew DeFaria wrote:
54
55 <blockquote type=cite>
56 <p>Performed the following actions:</p>
57
58 <h3>Change packaging by hand:</h3>
59
60 <ol>
61   <li>cd /build/toolchain/install-powerpc178/cdk/linux-elf-ppc</li>
62
63   <li>mkdir bin</li>
64
65   <li>cd bin</li>
66
67   <li>Created symlinks for the following: ar, as, byacc, c++, cc, cmp, diff, diff3, expect, flex, gcc, ld, make, nm, ranlib, size, strip to link to ../usr/bin (exception: cc -> ../usr/bin/gcc). <b>Note:</b> byacc, c++, cmp, diff, diff3 and expect do not exist in ../usr/bin! Removed symlinks</li>
68
69   <li>cd ../..</li>
70
71   <li>mkdir lib</li>
72
73   <li>Copied cdk/linux-elf-ppc/usr/lib/gcc/powerpc-lynx-lynxos178/3.4.3/libgcc.a -> lib <b>Note:</b> Unable to find any libstdc++.a's!</li>
74
75   <li>Created linux-elf-ppc.tar.gz with tar -zcvf ../linux-elf-ppc.tar.gz .</li>
76 </ol>
77
78 <h3>Removing libgcc from LOS178:</h3>
79
80 <ol>
81   <li>cd /build/los178/src/lib/libgcc</li>
82
83   <li>rm Makefile</li>
84
85   <li>cvs delete Makefile</li>
86
87   <li>cd ..</li>
88
89   <li>Editted Makefile to remove libgcc from SUBCOMPONENTS</li>
90
91   <li>cd /build/los178/src/cdk/common/bison-1.19</li>
92
93   <li>rm Makefile</li>
94
95   <li>cvs delete Makefile (<b>Note:</b> there are many other files here. Should they be likewise removed?)</li>
96
97   <li>cd ../links</li>
98
99   <li>rm Makefile</li>
100
101   <li>cvs delete Makefile</li>
102
103   <li>cd /build/los178/src/cdk</li>
104
105   <li>Editted Makefile to remove references to bison-1.19 and links</li>
106
107   <li>Editted Makefile to add -0.9.6 to "openssl".</li>
108 </ol>
109
110 <p>The following is the result of building src/cdk:</p>
111
112 <ul>
113   <li>coffcorrupt - for test <font color="green">PASSED</font></li>
114
115   <li>cofflook - for inspecting coff object <font color="green">PASSED</font></li>
116
117   <li>config - needed <font color="green">PASSED</font></li>
118
119   <li>crc - append script uses this <font color="green">PASSED</font></li>
120
121   <li>elflook - for inspecting elf object <font color="red">FAILED</font></li>
122
123   <li>install - use for installation <font color="green">PASSED</font></li>
124
125   <li>m4-1.4 - needed for config.tbl <font color="red">Didn't find anything about this!</font></li>
126
127   <li>man2html - html man page utility <font color="red">Didn't find anything about this!</font></li>
128
129   <li>mkbootprep - use by vmpc <font color="green">PASSED</font></li>
130
131   <li>mkimage - maybe need to be update to support elf kernel? <font color="green">PASSED</font></li>
132
133   <li>mktimestamp - needed for kernel timestamp <font color="green">PASSED</font></li>
134
135   <li>prepend-crc - mkboot178 uses this <font color="green">PASSED</font></li>
136
137   <li>gzip-1.2.4 - only for solaris host <font color="green">PASSED</font></li>
138
139   <li>tar-1.11.2 - only for solaris host <font color="red">FAILED</font></li>
140
141   <li>vctchk - use for checking vct <font color="red">FAILED</font></li>
142
143   <li>openssl <font color="red">(Failed to build saying it couldn't find /build/los178/cdk/linux-elf-ppc/bin/make)</font></li>
144 </ul>
145
146 <p>I will try to pick this up from home but I have been having some connectivity issues lately...</p>
147 </blockquote>
148
149 <p>Picking up...</p>
150
151 <h3>Building LOS178 after sections I & II above completed:</h3>
152
153 <ol>
154   <li>Logged in as int</li>
155
156   <li>Exported toolchain source -> /build/toolchain.src (via tag DEV_LOS178_3p0p0_ppc_20050607)</li>
157
158   <li>Instructions say to package source yet Makefile's package target does not include fixup.sh so performed this by hand.</li>
159
160   <li>Stored previously successfully built toolchain -> t3:/export/dev_archive/los178/3p0p0/toolchain/20050607</li>
161
162   <li>Checked that europa:/build/los178 had TOT. Only differences were the changes to the Makefile(s) describe above and the cvs deletes that I did.</li>
163
164   <li>rm sys/miscgcc/*.o</li>
165
166   <li>tar -zxvf /build/bin-image/ppc.cdksol.tar.gz sys/miscgcc</li>
167
168   <li>tar -zxpf/build/1033-00.cdklinux.tar.gz</li>
169
170   <li>Sourced SETUP.bash</li>
171
172   <li>make DEVELOPMENT=yes install > install.log 2>&1</li>
173
174   <li>make failed due to lack of crc (and a syntax error I introduced in the src/lib/Makefile - missed a "\"!). The crc was missing because I skipped a step, the make install in src/cdk. Turns out I skipped this step because I thought we had performed this yesterday - and we did - but we had some problems there and Vinnie helped me to get that to work. Unfortunately we were using make all during that time and failed to to the make install portion).</li>
175
176   <li>make failed with the following:<p>
177
178 <div class="code"><pre>
179       europa:check -t -v install.log
180       ERRORS:
181       make[3]: *** No rule to make target `_udivdi3.o', needed by `archive_step'.  Stop.
182       make[3]: *** No rule to make target `install'.  Stop.
183       make[3]: *** No rule to make target `install'.  Stop.
184       make[3]: *** No rule to make target `install'.  Stop.
185       make[3]: *** No rule to make target `install'.  Stop.
186       make[3]: *** No rule to make target `install'.  Stop.
187       /build/los178/cdk/linux-xcoff-ppc/bin/ld: cannot open -lmiscgcc: No such file or directory
188       make[4]: *** [common_all] Error 1
189       make[3]: *** [re_all] Error 2
190       /build/los178/cdk/linux-xcoff-ppc/bin/ld: cannot open -lmiscgcc: No such file or directory
191       make[4]: *** [a.out] Error 1
192       make[3]: *** [re_all] Error 2
193       make[2]: *** [real] Error 2
194       make[1]: *** [install] Error 2
195       make[3]: *** [gunzip] Error 1
196       make[3]: *** [nohup] Error 1
197       make[3]: *** [install_common] Error 1
198       make[3]: *** [install] Error 1
199       make[2]: *** [real] Error 2
200       make[1]: *** [install] Error 2
201       File: install.log Errors: 20 Warnings: 2545
202 </pre></div>
203   <p>The issues here boil down to the _udivd3.o problem mostly (the No rule to make target `install' are the csp.x86, ibm440ep stuff and there are few permissions problems with chmod since this build was done as int this time). The _udivd3.o problem results from a new .o file introduced by Gilbert and CR #542 and a corresponding change to the Makefile. The miscgcc .o files are gotten from ppc.cdksol.tar.gz but there is no _udivd3.o in ppc.cdksol.tar.gz.</p>
204
205   <p>After discussing this with Vinnie we determined that Gilbert had checked in these .o files when what really needs to be done is for us to include this new .o file into the ppc.cdk[sol|linux].tar.gz images in bin-image.</p>
206
207   <li>After building the following errors remain:</p>
208
209   <ol>
210     <li>5 "No rule to make target `install`" remains for devices.ibm440ep, drivers.ibm440ep, csp.440, csp.x86 and bsp.ibm440ep. These are known problems.</li>
211
212     <li>Various permissions problems dealing with the fact that I had initially built things as adefaria and switched to building as int.</li>
213   </ol>
214 </ol>
215
216                               
217                               <p class="entry-footer">
218                                  <span class="post-footers">Posted by  at  4:17 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000373.html">Permalink</a>
219                                  
220                                  
221                               </p>
222                            </div>
223                         </div>
224                      </div>
225                      
226                      
227
228                      <h2 class="date-header">June 15, 2005</h2>
229                      <a id="a000372"></a>
230                      <div class="entry" id="entry-372">
231                         <h3 class="entry-header">Rebuild 2.1.0/GDB 6.0</h3>
232                         <div class="entry-content">
233                            <div class="entry-body">
234                               <ul>
235   <li>Rebuilt/re-released 2.1.0 with additional CR #632</li>
236
237   <li>Built GDB 6.0 on Windows!</li>
238 </ul>
239                               
240                               <p class="entry-footer">
241                                  <span class="post-footers">Posted by  at 12:18 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000372.html">Permalink</a>
242                                  
243                                  
244                               </p>
245                            </div>
246                         </div>
247                      </div>
248                      
249                      
250
251                      <h2 class="date-header">June 13, 2005</h2>
252                      <a id="a000371"></a>
253                      <div class="entry" id="entry-371">
254                         <h3 class="entry-header">3.4.3 toolchain build/LOS178 Makefile global clean/clobber</h3>
255                         <div class="entry-content">
256                            <div class="entry-body">
257                               <ul>
258   <li>Added CR 636: LOS178 3.0.0 build fails with new 3.4.3 gcc</li>
259
260   <li>Reproduced make clobber problem</li>
261
262   <li>Added 637: 3.4.3 toolchain does not package properly</li>
263 </ul>
264                               
265                               <h3>Make clobber problem</h3>
266
267 <p>When a make clobber is performed in sys the make is propagated downward through the sub makes. However the sys level Makefile starts it's clobber target with: rm $(ENV_PREFIX)/sys/lib/* to remove all of the libraries in sys/lib.</p>
268
269 <p>When the make clobber gets propagated down to drivers/arinc653 the following happens:</p>
270
271 <div class="code"><pre>
272     make -f Makefile.real DRV_IS_DLDD=no clobber
273     make[1]: Entering directory `/build/los178/sys/drivers/arinc653'
274     /bin/rm -f arinc653drvr.lint
275     /build/los178/cdk/linux-elf-ppc/usr/bin/ar d /build/los178/sys/lib/libdrivers.a arinc653drvr.o
276     make[1]: Leaving directory `/build/los178/sys/drivers/arinc653'
277     make -f Makefile.real DRV_IS_DLDD=yes clobber
278     make[1]: Entering directory `/build/los178/sys/drivers/arinc653'
279     /bin/rm -f arinc653.*.o arinc653.*.bin arinc653.pre arinc653.import
280     /bin/rm -f arinc653.dldd arinc653.info
281     make[1]: Leaving directory `/build/los178/sys/drivers/arinc653'
282 </pre></div>
283
284 <p>At this point a small libdrivers.a is left in sys/lib:</p>
285
286 <div class="code"><pre>
287     europa:ll ../../lib/libdrivers.a
288     -rw-rw-r--    1 adefaria staff         170 Jun 13 13:02 ../../lib/libdrivers.a
289 </pre></div>
290
291 <p>Similar things happen in:</p>
292
293 <ul>
294   <li>sys/drivers/mem</li>
295
296   <li>sys/driverspmac_g5/is_sungem</li>
297
298   <li>sys/drivers.vmpc/rs232</li>
299
300   <li>sys/drivers.vmpc/bdlan</li>
301
302   <li>sys/drivers.vmpc/if_dec21040</li>
303 </ul>
304
305 <p>When we are done with a clobber we are left with:</p>
306
307 <div class="code"><pre>
308     europa:ll ../../lib/
309     total 20
310     drwxrwxr-x    2 adefaria staff        4096 Jun 13 13:16 ./
311     drwxrwxr-x   26 adefaria staff        4096 Jun 13 13:16 ../
312     -rw-rw-r--    1 adefaria staff         170 Jun 13 13:16 libdrivers.a
313     -rw-rw-r--    1 adefaria staff           8 Jun 13 13:16 libdrivers_pmac_g5.a
314     -rw-rw-r--    1 adefaria staff           8 Jun 13 13:16 libdrivers_vmpc.a
315 </pre></div>
316
317 <p>This eventually screws up the build. Doing a make clobber followed by rm lib/* then a make install works OK...</p>
318                               
319                               <p class="entry-footer">
320                                  <span class="post-footers">Posted by  at  8:57 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000371.html">Permalink</a>
321                                  
322                                  
323                               </p>
324                            </div>
325                         </div>
326                      </div>
327                      
328                   </div>
329                </div>
330             </div>
331          </div>
332       </div>
333    </div>
334 </body>
335 </html>