Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / week_2005_06_19.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 19, 2005 - June 25, 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_12.html" title="June 12, 2005 - June 18, 2005" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/week_2005_06_26.html" title="June 26, 2005 - July  2, 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_12.html">&laquo; June 12, 2005 - June 18, 2005</a> |
36                         <a href="http://defaria.com/blogs/Status/">Main</a>
37                         | <a href="http://defaria.com/blogs/Status/archives/week_2005_06_26.html">June 26, 2005 - July  2, 2005 &raquo;</a>
38                      </p>
39                      
40                      
41                      
42
43                      <h2 class="date-header">June 23, 2005</h2>
44                      <a id="a000377"></a>
45                      <div class="entry" id="entry-377">
46                         <h3 class="entry-header">Building CDK under Windows</h3>
47                         <div class="entry-content">
48                            <div class="entry-body">
49                               <ul>
50   <li>Build Windows version of the CDK</li>
51
52   <li>Submitted CR 659: cdk tool mkimage fails to build under Windows</li>
53 </ul>
54                               
55                               <h3>Building Windows CDK</h3>
56
57 <p>In order to build the CDK under Windows one must use an ancient version of Cygwin - B20 (it is assumed that that is already installed). Additionally one must perform certain actions in a certain order:</p>
58
59 <ol>
60   <li>Obtain the latest versions of the following tar images from the archive area:
61     <ul>
62       <li>2000-00.los178_rsc_src.tar.gz</li>
63
64       <li>2001-00.los178_src.tar.gz</li>
65
66       <li>2013-00.los178_dev.tar.gz</li>
67
68       <li>2015-00.los178_rsc_dev.tar.gz</li>
69
70       <li>(From cvs bin-image) ppc.cdkwin32.tar.gz</li>
71     </ul>
72   </li>
73
74   <li>Create an area to do the build and extract the above into that area</li>
75
76   <li>Exit this bash shell</li>
77
78   <li>Start a cmd shell</li>
79
80   <li>Execute the VCVARS32.BAT file. This is normally found in C:\Program Files\Microsoft Visual Studio\VS98\Bin. Note that this implies that Visual Studio is also installed. Also, often people will copy this bat file to C:\ for easier execution. This bat file sets certain environment variables including PATH such that nmake can be found. Under Windows we lean on VS's nmake. Also, this must be done from a cmd shell before starting Cygwin so that the changes to the environment can be picked up. Why don't we just make a script or enhance SETUP.bash to take into account for this?</li>
81
82   <li>Start Cygwin using the appropriate cygnus.bat file. This was given to me by Moscow. Doesn't seem to do that much fancy stuff:
83
84 <div class="code"><pre>
85 @ECHO OFF
86 SET TARGET_PATH=C:\LynuxWorks\2.0.0
87 SET MAKE_MODE=UNIX
88 SET TERM=cygwin
89 SET HOME=/
90
91 set PATH=%TARGET_PATH%\bin;%TARGET_PATH%\usr\bin:%PATH%
92
93 echo "TARGET_PATH is %TARGET_PATH%
94
95 if not exist %TARGET_PATH%\bin\sh.exe goto error_no_sh
96
97 ver > %TARGET_PATH%\_tmp
98 goto the_end
99
100 :error_no_sh
101 echo "Installation Error -- no %TARGET_PATH%\bin\sh.exe found"
102
103 :the_end
104 del %TARGET_PATH%\_tmp
105 bash
106 </pre></div>
107   </li>
108
109   <li>cd to the directory that you created to perform the build</li>
110
111   <li>Source SETUP.bash</li
112
113   <li>cd to src/cdk</li>
114
115   <li>make install > install.log 2>&1</li>
116
117   <li>Check install.log for errors</li>
118 </ol>
119
120 <h3>CR 659: cdk tool mkimage fails to build under Windows</h3>
121
122 <p>Build of cdk tool mkimage files under Windows. This is a make install in src/cdk of LOS178. The specific error is:</p>
123
124 <div class="code"><pre>
125 Compiling coff.o
126 coff.c
127 coff.c(91) : fatal error C1083: Cannot open include file: 'family/ppc/arch_mem.h': No such file or directory
128 NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
129 Stop.
130 make[1]: *** [WIN32_VS_UTIL] Error 2 
131 </pre></div>
132
133 <p>Problem seems to be that the fix for src/cdk/common/mkimage/Makefile in CR #539 of adding -I$(ENV_PREFIX)/sys/include does not work under Windows with nmake.</p>
134                               
135                               <p class="entry-footer">
136                                  <span class="post-footers">Posted by  at 10:35 AM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000377.html">Permalink</a>
137                                  
138                                  
139                               </p>
140                            </div>
141                         </div>
142                      </div>
143                      
144                      
145
146                      <h2 class="date-header">June 22, 2005</h2>
147                      <a id="a000376"></a>
148                      <div class="entry" id="entry-376">
149                         <h3 class="entry-header">LOS178 2.1.0 build</h3>
150                         <div class="entry-content">
151                            <div class="entry-body">
152                               <ul>
153   <li>After two bugs in the GDB 6.0 build process on Solaris were fixed I was finally able to build GDB 6.0 on Solaris</li>
154
155   <li>Built LOS178 for both dev and pdn</li>
156
157   <li>Packaged up and released onto t3</li>
158
159   <li>Tagged release with DEV_LOS178_2p1p0_ppc_20050622</li>
160 </ul>
161                               
162                               <p class="entry-footer">
163                                  <span class="post-footers">Posted by  at  7:19 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000376.html">Permalink</a>
164                                  
165                                  
166                               </p>
167                            </div>
168                         </div>
169                      </div>
170                      
171                      
172
173                      <h2 class="date-header">June 21, 2005</h2>
174                      <a id="a000375"></a>
175                      <div class="entry" id="entry-375">
176                         <h3 class="entry-header">LOS178 2.1.0 + GDB</h3>
177                         <div class="entry-content">
178                            <div class="entry-body">
179                               <ul>
180   <li>Managed to build los178 for dev and pdn. Pdn still has CONSOLE_DEVICE error on ibm44ep.</li>
181
182   <li>Working with Adam re: GDB build on Rock</li>
183 </ul>
184                               
185                               <h3>Rock (Solaris) build</h3>
186
187 <p>Building on Rock is building on Solaris. We have to rebuild parts of the cdk by cd'ing into src/cdk and doing make install. This puts stuff into the cdk/<host>-[xcoff|elf]-<target> area. Now on Linux everything builds OK and I believe we also did the Window portion too. But Solaris was yet undone.</p>
188
189 <p>Turns out that not much builds successfully on Solaris but all that is required at this time is mkimage. With mkimage successfully built the process of building LOS178 on Solaria remains largely the same in that you checkout/export the sources and untar the ppc.cdksol.tar.gz. The difference is that you inject your newly built mkimage into the cdk area before building.</p>
190
191 <h3>Packaging and Structuring</h3>
192
193 <p>Vinnie attempted to describe the packaging structuring. I'm still not sure i have it all in my head yet but here goes:</p>
194
195 <p>Note that we are only currently building for release on Rock or Solaris. Still cdk's for other targets need to be built and included. Also, we use the bin-image/ppc.cdk<host>.tar.gz prebuilt software for building things and we also package up cdk tarballs in the release area (e.g. 2011-01.cdksol.tar.gz).</p>
196
197 <p>For GDB we must source SETUP.bash pointing to some LOS178 area and then we go to the toolchain and make install-gdb. The end result of this build are two executables, one of which we are concerned with - gdbserver. However there are also various things deposited in the cdk for gdb, the client and for insight and Tcl/Tk stuff.</p>
198
199 <p>The gdbserver and it's client require packaging of Linux, Windows and Solaris cdk's that contain the necessary gdb parts. The current package.sh should automatically handle this because it packages up things based on directory names.</p>
200                               
201                               <p class="entry-footer">
202                                  <span class="post-footers">Posted by  at  3:57 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000375.html">Permalink</a>
203                                  
204                                  
205                               </p>
206                            </div>
207                         </div>
208                      </div>
209                      
210                      
211
212                      <h2 class="date-header">June 20, 2005</h2>
213                      <a id="a000374"></a>
214                      <div class="entry" id="entry-374">
215                         <h3 class="entry-header">2.1.0 GDB Build</h3>
216                         <div class="entry-content">
217                            <div class="entry-body">
218                               <ul>
219   <li>Built LOS178 2.1.0 on Rock including CR638. Was able to build dev but not pdn.</li>
220
221   <li>Having some problems with GDB build on Solaris</li>
222 </ul>
223                               
224                               <p>I was able to build LOS178 2.1.0 dev build on rock but had errors in building the pdn portion:</p>
225
226 <div class="code"><pre>
227     rock:check -t -v ../los178.pdn/install.log
228     ERRORS:
229     conf.c(98) : error: `CONSOLE_DEVICE' undeclared here (not in a function)
230     make[4]: *** [conf.o] Error 1
231     make[3]: *** [re_all] Error 2
232     make[4]: *** [common_all] Error 1
233     make[3]: *** [re_all] Error 2
234     make[4]: *** [a.out] Error 1
235     make[3]: *** [re_all] Error 2
236     make[2]: *** [real] Error 2
237     make[1]: *** [install] Error 2
238     File: ../los178.pdn/install.log Errors: 9 Warnings: 1140
239     rock:pwd
240     /export/home/adefaria/2.1.0/los178/los178.cvs
241 </pre></div>
242
243 <p>Also, I was only able to build mkimage for the cdk on Solaris. Vinnie says this is expected.</p>
244
245 <p>I have not managed to build gdb on Solaris, I'm working with Adam about that problem.</p>
246                               
247                               <p class="entry-footer">
248                                  <span class="post-footers">Posted by  at  8:32 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000374.html">Permalink</a>
249                                  
250                                  
251                               </p>
252                            </div>
253                         </div>
254                      </div>
255                      
256                   </div>
257                </div>
258             </div>
259          </div>
260       </div>
261    </div>
262 </body>
263 </html>