Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000380.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: Test build of LOS178 2.1.0</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/000379.html" title="Building CDK on Windows" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/000381.html" title="Building LOS178 2.1.0 on Linux" />
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/000379.html">&laquo; Building CDK on Windows</a> |
42                         <a href="http://defaria.com/blogs/Status/">Main</a>
43                         | <a href="http://defaria.com/blogs/Status/archives/000381.html">Building LOS178 2.1.0 on Linux &raquo;</a>
44                      </p>
45
46                      <a id="a000380"></a>
47                      <div class="entry" id="entry-380">
48                         <h3 class="entry-header">Test build of LOS178 2.1.0</h3>
49                         <div class="entry-content">
50                            <div class="entry-body">
51                               <ul>
52   <li>Rebuilt LOS178 2.1.0 in preparation for release of LOS178 2.1.0</li>
53 </ul>
54                            </div>
55                            <div id="more" class="entry-more">
56                               <h3>Building LOS178</h3>
57
58 <h4>Solaris</h4>
59
60 <p>Use /int/bin/build_los178 which performs all the necessary steps. Solaris builds have not changed</p>
61
62 <h4>Linux</h4>
63
64 <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>
65
66 <p>"Building" of LOS178 on Linux therefore consists of:</p>
67
68 <ol>
69   <li>Creating a "build" area</li>
70
71   <li>Extracting sources from 2000-00.los178_rsc_src.tar.gz and 2001-00.los178_src.tar.gz</li>
72 </ol>
73
74 <h4>Windows</h4>
75
76 <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>
77
78 <p>"Building" of LOS178 on Windows therefore consists of:</p>
79
80
81 <ol>
82   <li>Setup PC with Cygwin properly (if not already set up)</li>
83
84   <li>Start a cmd shell and execute the VCVARS32.bat file</li>
85
86   <li>Execute the cygnus.bat script to enter Cygwin</li>
87
88   <li>Create build area</li>
89
90   <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>
91 </ol>
92
93 <h3>Building CDK</h3>
94
95 <h4>Solaris</h4>
96
97 <p>There is no CDK to build on Solaris as it is contained in the ppc.cdksol.tar.gz</p>
98
99 <h4>Linux</h4>
100
101 <p>For Linux, cd to your build area and:</p>
102
103 <ol>
104   <li>SETUP.bash</li>
105
106   <li>cd src/cdk and make install. This builds parts of the CDK not contained in bin-image.</li>
107 </ol>
108
109 <h4>Windows</h4>
110
111 <p>Make sure you have a proper setup:</p>
112
113 <ol>
114   <li>Setup PC with Cygwin properly (if not already set up)</li>
115
116   <li>Start a cmd shell and execute the VCVARS32.bat file</li>
117
118   <li>Execute the cygnus.bat script to enter Cygwin</li>
119
120   <li>SETUP.bash</li>
121
122   <li>cd src/cdk and make install. This builds parts of the CDK not contained in bin-image.</li>
123 </ol>
124
125 <h3>Packaging CDK</h3>
126
127 <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>
128
129 <p>The rename.sh also handles renaming cdk[sol|linux|win32] tarballs it finds with the proper package #.</p>
130
131 <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>
132
133 <h3>GDB Madness</h3>
134
135 <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>
136
137 <p>So, for example, for Linux one needs to follow the above and then:</p>
138
139 <ul>
140   <li>Check out the toolchain from CVS (tag: DEV_LOS178_2p1p0_ppc_20050705)</li>
141
142   <li>Run fixup.sh</li>
143
144   <li>Source SETUP.bash from a LOS178 area
145
146 <div class="note">
147 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!
148 </div>
149
150 <p></p>
151
152 <div class="note">
153 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).
154 </div>
155
156 </li>
157
158   <li>make install-gdb > install.log 2>&1</li>
159
160   <li>Check for errors and if successful, make package.</li>
161 </ul>
162
163 <p>With the build of gdb successful:</p>
164
165 <ul>
166   <li>Move install-powerpc178/cdk/sunos-xcoff-ppc/usr/bin/gdbserver (and gdbserver-lcs) to $ENV_PREFIX/bin.
167
168 <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>
169
170 </li>
171
172 </ul>
173
174                            </div>
175                         </div>
176                         <p class="entry-footer">
177                            <span class="post-footers">Posted by  on July  5, 2005  5:24 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000380.html">Permalink</a>
178                         </p>
179                      </div>
180
181                      
182
183                      
184                   </div>
185                </div>
186             </div>
187          </div>
188       </div>
189    </div>
190 </body>
191 </html>