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: June 19, 2005 - June 25, 2005 Archives</title>
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" />
18 <body class="layout-one-column">
20 <div id="container-inner" class="pkg">
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>
30 <div id="pagebody-inner" class="pkg">
32 <div id="alpha-inner" class="pkg">
34 <p class="content-nav">
35 <a href="http://defaria.com/blogs/Status/archives/week_2005_06_12.html">« 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 »</a>
43 <h2 class="date-header">June 23, 2005</h2>
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">
50 <li>Build Windows version of the CDK</li>
52 <li>Submitted CR 659: cdk tool mkimage fails to build under Windows</li>
55 <h3>Building Windows CDK</h3>
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>
60 <li>Obtain the latest versions of the following tar images from the archive area:
62 <li>2000-00.los178_rsc_src.tar.gz</li>
64 <li>2001-00.los178_src.tar.gz</li>
66 <li>2013-00.los178_dev.tar.gz</li>
68 <li>2015-00.los178_rsc_dev.tar.gz</li>
70 <li>(From cvs bin-image) ppc.cdkwin32.tar.gz</li>
74 <li>Create an area to do the build and extract the above into that area</li>
76 <li>Exit this bash shell</li>
78 <li>Start a cmd shell</li>
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>
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:
84 <div class="code"><pre>
86 SET TARGET_PATH=C:\LynuxWorks\2.0.0
91 set PATH=%TARGET_PATH%\bin;%TARGET_PATH%\usr\bin:%PATH%
93 echo "TARGET_PATH is %TARGET_PATH%
95 if not exist %TARGET_PATH%\bin\sh.exe goto error_no_sh
97 ver > %TARGET_PATH%\_tmp
101 echo "Installation Error -- no %TARGET_PATH%\bin\sh.exe found"
104 del %TARGET_PATH%\_tmp
109 <li>cd to the directory that you created to perform the build</li>
111 <li>Source SETUP.bash</li
113 <li>cd to src/cdk</li>
115 <li>make install > install.log 2>&1</li>
117 <li>Check install.log for errors</li>
120 <h3>CR 659: cdk tool mkimage fails to build under Windows</h3>
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>
124 <div class="code"><pre>
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'
130 make[1]: *** [WIN32_VS_UTIL] Error 2
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>
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>
146 <h2 class="date-header">June 22, 2005</h2>
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">
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>
155 <li>Built LOS178 for both dev and pdn</li>
157 <li>Packaged up and released onto t3</li>
159 <li>Tagged release with DEV_LOS178_2p1p0_ppc_20050622</li>
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>
173 <h2 class="date-header">June 21, 2005</h2>
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">
180 <li>Managed to build los178 for dev and pdn. Pdn still has CONSOLE_DEVICE error on ibm44ep.</li>
182 <li>Working with Adam re: GDB build on Rock</li>
185 <h3>Rock (Solaris) build</h3>
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>
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>
191 <h3>Packaging and Structuring</h3>
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>
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>
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>
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>
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>
212 <h2 class="date-header">June 20, 2005</h2>
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">
219 <li>Built LOS178 2.1.0 on Rock including CR638. Was able to build dev but not pdn.</li>
221 <li>Having some problems with GDB build on Solaris</li>
224 <p>I was able to build LOS178 2.1.0 dev build on rock but had errors in building the pdn portion:</p>
226 <div class="code"><pre>
227 rock:check -t -v ../los178.pdn/install.log
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
240 /export/home/adefaria/2.1.0/los178/los178.cvs
243 <p>Also, I was only able to build mkimage for the cdk on Solaris. Vinnie says this is expected.</p>
245 <p>I have not managed to build gdb on Solaris, I'm working with Adam about that problem.</p>
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>