Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000545.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: Building on sons-sc-cc (Fixing smake)</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/000544.html" title="gethostbyaddr fails" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/000546.html" title="Successful Build on sons-sc-cc" />
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/000544.html">&laquo; gethostbyaddr fails</a> |
42                         <a href="http://defaria.com/blogs/Status/">Main</a>
43                         | <a href="http://defaria.com/blogs/Status/archives/000546.html">Successful Build on sons-sc-cc &raquo;</a>
44                      </p>
45
46                      <a id="a000545"></a>
47                      <div class="entry" id="entry-545">
48                         <h3 class="entry-header">Building on sons-sc-cc (Fixing smake)</h3>
49                         <div class="entry-content">
50                            <div class="entry-body">
51                               <ul>
52   <li>Looked into build issues on sons-sc-cc</li>
53
54   <li>Adjusted smake</li>
55 </ul>
56
57 <p><b>Time Spent:</b> 2 hours</p>
58                            </div>
59                            <div id="more" class="entry-more">
60                               <p>This problem with drive letters being unavailable when one remotely
61 logs in is one that I had battled with for a while in the past as <a href="http://sourceware.org/cgi-bin/search.cgi?cmd=Search!&fmt=long&form=extended&GroupBySite=no&m=all&ps=10&q=network+drive+unavailable+2003&sp=1&sy=1&type=&ul=/ml/cygwin/%25&wf=2221&wm=wrd">history shows</a>.
62
63 <p>Unfortunately I don't have a great solution yet except to say that most people do not log into the server directly to do a build as you are doing. However there's a light at the end of the tunnel and that light is smake. Smake makes an optimization by setting TOOLS_DIR to the local disk drive instead of the T drive when building on sons-clearcase (and sons-cc for that matter as well as a sonsbld1 that we were once trying to set up). As a result I've changed smake to add sons-sc-cc to the list:</p>
64
65 <div class=code><pre>
66 if [ $myhost = "sons-sc-cc" ]; then
67   export TOOLS_ROOT=D:/Tools &amp;&amp; nice make -e "$@"
68 elif [ $myhost = "sons-clearcase" ]; then
69   export TOOLS_ROOT=E:/Tools &amp;&amp; nice make -e "$@"
70 elif [ $myhost = "sons-cc" -o $myhost = "sonsbld1" ]; then
71   export TOOLS_ROOT=C:/Tools &amp;&amp; nice make -e "$@"
72 else
73   nice make "$@"
74 fi
75 </pre></div>
76
77 <p>So if you use smake instead of just make on sons-sc-cc TOOLS_ROOT will
78 be set to D:/Tools (where Tools are locally on sons-sc-cc) and then it will call make. This should solve this problem for local makes. For remove smakes (an smake you invoke from your desktop - you guys still do that right?) the following code changes fix that:</p>
79
80 <div class=code><pre>
81 if [ $build_server = "sons-sc-cc" ]; then
82   rsh -n $build_server "ct $(pwd) &amp;&amp; export TOOLS_ROOT=D:/Tools
83 &amp;&amp; nice make -e $@"
84 elif [ $build_server = "sons-cc" -o $build_server = "sonsbld1" ]; then
85   rsh -n $build_server "cd $(pwd) &amp;&amp; export TOOLS_ROOT=C:/Tools
86 &amp;&amp; nice make -e $@"
87 else
88   rsh -n $build_server "cd $(pwd) &amp;&amp; export TOOLS_ROOT=E:/Tools
89 &amp;&amp; nice make -e $@"
90 fi
91 </pre></div>
92
93 <p>The added benefit of this approach is that builds a <font  color="#ff0000"><b>a lot</b></font> faster since you are not loading the compiler over the network connection of the T drive (even though the T drive points back to the local machine in the case of sons-sc-cc).</p>
94
95 <p>Oh, another optimization I did on sons-sc-cc - I change the share cache to cache programs that are run. So for users running builds locally on there desktops (well not yet but when we get fully switched over) and they load say the C compiler from vxWorks, it will be cached on their local desktop and subsequent compilations should also run a lot faster!</p>
96
97 <p>I'm still not able to build, however. Here's a build from a clean view. Note that I removed the * from your /etc/passwd line szhu so I could use rsh to switch users from ccadmin -&gt; szhu:</p>
98
99 <div class=code><pre>
100 <font color="#3366ff"><b>[ccadmin] sons-sc-cc:</b></font><u>rsh -l szhu sons-sc-cc</u>
101 No directory /us/SZhu!
102 Logging in with home = "/".
103 Last login: Tue Apr 18 11:06:10 from sc-szhu.salira.com
104 CYGWIN_NT-5.2 SONS-SC-CC 1.5.19(0.150/4/2) 2006-01-20 13:28 i686 Cygwin
105 WARNING: HOME directory did not exist! Logging in with HOME = /tmp
106
107 <b><font color="#009900">SZhu@SONS-SC-CC</font></b> <font
108  color="#cc9933">~</font>
109 $ <u>id</u>
110 uid=1143(SZhu) gid=513(Domain Users) groups=513(Domain Users)
111   
112 <b><font color="#009900">SZhu@SONS-SC-CC</font></b> <font  color="#cc9933">~</font>
113 $ <u>cd /dview/3.1.ccadmin/salira/neopon/build/</u>
114 <b><font color="#009900">SZhu@SONS-SC-CC</font></b>
115 <font color="#cc9933">/dview/3.1.ccadmin/salira/neopon/build</font>
116 $ <u>which smake</u>
117 /view/official/Tools/bin/smake
118 <b><font color="#009900">SZhu@SONS-SC-CC</font></b>
119 <font color="#cc9933">/dview/3.1.ccadmin/salira/neopon/build</font>
120 $ <u>smake</u>
121 Build server: sons-sc-cc View: 3.1.ccadmin [local]
122 User: SZhu Dir: /dview/3.1.ccadmin/salira/neopon/build
123 Performing build locally on sons-sc-cc
124 sons-sc-cc:make 
125
126 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +---------------------------+
127 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S a l i r a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /|
128 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NEOPON&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; / |
129 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /---------------------------/&nbsp; |
130 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |O|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp; /
131 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Building... |L|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | /
132 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |C|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |/
133 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +---------------------------+
134 -------------------------------------- (neopon/src/bsp) olc
135 [ASSEMBLE]&nbsp;&nbsp;&nbsp;&nbsp; sysALib.s
136 [COMPILE C]&nbsp;&nbsp;&nbsp; sysLib.c
137 [COMPILE C]&nbsp;&nbsp;&nbsp; sysTffs.c
138 D:/TOols/Tornado-2.0/target/src/drv/tffs/tffsConfig.c: In function `tffsShowAll':
139 In file included from sysTffs.c:63:
140 D:/TOols/Tornado-2.0/target/src/drv/tffs/tffsConfig.c:205: warning: comparison between signed and unsigned
141 D:/TOols/Tornado-2.0/target/src/drv/tffs/tffsConfig.c: In function `tffsBootImagePut':
142 D:/TOols/Tornado-2.0/target/src/drv/tffs/tffsConfig.c:389: warning: comparison between signed and unsigned
143 [COMPILE C]&nbsp;&nbsp;&nbsp; 8260I2C.c
144 8260I2C.c: In function `i2cInit':
145 8260I2C.c:260: warning: cast from pointer to integer of different size
146 8260I2C.c:261: warning: cast from pointer to integer of different size
147 8260I2C.c:265: warning: cast from pointer to integer of different size
148 8260I2C.c:266: warning: cast from pointer to integer of different size
149 [COMPILE C]&nbsp;&nbsp;&nbsp; Fpga_download.c
150 [COMPILE C]&nbsp;&nbsp;&nbsp; usrConfig_st.c
151 D:/TOols/Tornado-2.0/target/src/config/../../src/config/usrTffs.c: In function `usrTffsLnConfig':
152 In file included from usrExtra.c:203,
153 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from usrConfig_st.c:123:
154 D:/TOols/Tornado-2.0/target/src/config/../../src/config/usrTffs.c:154: warning: implicit declaration of function `dosFsMkfsOptionsSet'
155 D:/TOols/Tornado-2.0/target/src/config/../../src/config/usrWdb.c: In function `vxTaskCreate':
156 In file included from usrExtra.c:236,
157 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from usrConfig_st.c:123:
158 D:/TOols/Tornado-2.0/target/src/config/../../src/config/usrWdb.c:581: warning: unused parameter `stackBase'
159 D:/TOols/Tornado-2.0/target/src/config/../../src/config/usrWindview.c: In function `wvOn':
160 D:/TOols/Tornado-2.0/target/src/config/../../src/config/usrWindview.c:269: warning: unused parameter `arg4'
161 [COMPILE C]&nbsp;&nbsp;&nbsp; usrConfig.c
162 D:/TOols/Tornado-2.0/target/src/config/../../src/config/usrTffs.c: In function `usrTffsLnConfig':
163 In file included from usrExtra.c:203,
164 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from usrConfig.c:123:
165 D:/TOols/Tornado-2.0/target/src/config/../../src/config/usrTffs.c:154: warning: implicit declaration of function `dosFsMkfsOptionsSet'
166 D:/TOols/Tornado-2.0/target/src/config/../../src/config/usrWdb.c: In function `vxTaskCreate':
167 In file included from usrExtra.c:236,
168 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from usrConfig.c:123:
169 D:/TOols/Tornado-2.0/target/src/config/../../src/config/usrWdb.c:581: warning: unused parameter `stackBase'
170 D:/TOols/Tornado-2.0/target/src/config/../../src/config/usrWindview.c: In function `wvOn':
171 D:/TOols/Tornado-2.0/target/src/config/../../src/config/usrWindview.c:269: warning: unused parameter `arg4'
172 [COMPILE C]&nbsp;&nbsp;&nbsp; fpd_end.c
173 fpd_end.c: In function `np3400EndAddressForm':
174 fpd_end.c:1247: too few arguments to function `endEtherAddressForm'
175 make[2]: *** [../../../build/olc/obj/fpd_end.o] Error 1
176 make[1]: *** [obj/bsp/olc.olist] Error 2
177 make: *** [olc/vxWorks_st.elf] Error 2
178 </pre></div>
179
180 <blockquote type="cite">
181   Regarding checkin and bug ID labeling, when you check into Clearcase using sons-clearcase you are saying that the trigger that is supposed to label the check in with the bug ID is failing to do so. I will look into this later too.
182 </blockquote>
183
184 <p>I'm not seeing this. In fact I'm seeing evidence saying it's working. The triggers log to /view/official/Tools/logs/triggers.log. Looking at the bottom of that file (tail -f works nicely) shows me:</p>
185
186 <div class=code><pre>
187 CheckinPreop.pl: 4/18/2006@17:38: vdsouza: Checkin checks started for V:\vdsouza3.1\salira\neopon\src\gdb\gdb_csr_dump.c on rel_3.1 branch
188 CheckinPreop.pl: 4/18/2006@17:38: vdsouza: Successful precheckin of V:\vdsouza3.1\salira\neopon\src\gdb\gdb_csr_dump.c on rel_3.1 branch with bug ID
189 CheckinPostop.pl: 4/18/2006@17:38: vdsouza: Created label for BUGS200006029
190 CheckinPostop.pl: 4/18/2006@17:38: vdsouza: Attached label BUGS200006029 to V:\vdsouza3.1\salira\neopon\src\gdb\gdb_csr_dump.c
191 CheckinPostop.pl: 4/18/2006@17:38: vdsouza: Successful postcheckin of V:\vdsouza3.1\salira\neopon\src\gdb\gdb_csr_dump.c on rel_3.1 branch with bug ID BUGS200006029</tt>
192 </pre></div>
193
194 <p>And indeed gdb_csr_dump.c has a label of BUGS200006029:</p>
195
196 <div class=code><pre>
197 [ccadmin] sons-clearcase:files4bug 6029
198 Files involved in bug ID BUGS200006029:
199 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /salira/neopon/src/gdb/main/rel_2.0/hainan_integration/rel_2.2/rel_3/1/gdb_csr_dump.c<br>
200 1 file involved in bug ID BUGS200006029
201 </pre></div>
202
203 <p>Do you have an example of where this is failing?</p>
204                            </div>
205                         </div>
206                         <p class="entry-footer">
207                            <span class="post-footers">Posted by  on April 18, 2006  7:45 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000545.html">Permalink</a>
208                         </p>
209                      </div>
210
211                      
212
213                      
214                   </div>
215                </div>
216             </div>
217          </div>
218       </div>
219    </div>
220 </body>
221 </html>