Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000371.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: 3.4.3 toolchain build/LOS178 Makefile global clean/clobber</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/000370.html" title="Issues building LOS178 with 3.4.3 toolchain" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/000372.html" title="Rebuild 2.1.0/GDB 6.0" />
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/000370.html">&laquo; Issues building LOS178 with 3.4.3 toolchain</a> |
42                         <a href="http://defaria.com/blogs/Status/">Main</a>
43                         | <a href="http://defaria.com/blogs/Status/archives/000372.html">Rebuild 2.1.0/GDB 6.0 &raquo;</a>
44                      </p>
45
46                      <a id="a000371"></a>
47                      <div class="entry" id="entry-371">
48                         <h3 class="entry-header">3.4.3 toolchain build/LOS178 Makefile global clean/clobber</h3>
49                         <div class="entry-content">
50                            <div class="entry-body">
51                               <ul>
52   <li>Added CR 636: LOS178 3.0.0 build fails with new 3.4.3 gcc</li>
53
54   <li>Reproduced make clobber problem</li>
55
56   <li>Added 637: 3.4.3 toolchain does not package properly</li>
57 </ul>
58                            </div>
59                            <div id="more" class="entry-more">
60                               <h3>Make clobber problem</h3>
61
62 <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>
63
64 <p>When the make clobber gets propagated down to drivers/arinc653 the following happens:</p>
65
66 <div class="code"><pre>
67     make -f Makefile.real DRV_IS_DLDD=no clobber
68     make[1]: Entering directory `/build/los178/sys/drivers/arinc653'
69     /bin/rm -f arinc653drvr.lint
70     /build/los178/cdk/linux-elf-ppc/usr/bin/ar d /build/los178/sys/lib/libdrivers.a arinc653drvr.o
71     make[1]: Leaving directory `/build/los178/sys/drivers/arinc653'
72     make -f Makefile.real DRV_IS_DLDD=yes clobber
73     make[1]: Entering directory `/build/los178/sys/drivers/arinc653'
74     /bin/rm -f arinc653.*.o arinc653.*.bin arinc653.pre arinc653.import
75     /bin/rm -f arinc653.dldd arinc653.info
76     make[1]: Leaving directory `/build/los178/sys/drivers/arinc653'
77 </pre></div>
78
79 <p>At this point a small libdrivers.a is left in sys/lib:</p>
80
81 <div class="code"><pre>
82     europa:ll ../../lib/libdrivers.a
83     -rw-rw-r--    1 adefaria staff         170 Jun 13 13:02 ../../lib/libdrivers.a
84 </pre></div>
85
86 <p>Similar things happen in:</p>
87
88 <ul>
89   <li>sys/drivers/mem</li>
90
91   <li>sys/driverspmac_g5/is_sungem</li>
92
93   <li>sys/drivers.vmpc/rs232</li>
94
95   <li>sys/drivers.vmpc/bdlan</li>
96
97   <li>sys/drivers.vmpc/if_dec21040</li>
98 </ul>
99
100 <p>When we are done with a clobber we are left with:</p>
101
102 <div class="code"><pre>
103     europa:ll ../../lib/
104     total 20
105     drwxrwxr-x    2 adefaria staff        4096 Jun 13 13:16 ./
106     drwxrwxr-x   26 adefaria staff        4096 Jun 13 13:16 ../
107     -rw-rw-r--    1 adefaria staff         170 Jun 13 13:16 libdrivers.a
108     -rw-rw-r--    1 adefaria staff           8 Jun 13 13:16 libdrivers_pmac_g5.a
109     -rw-rw-r--    1 adefaria staff           8 Jun 13 13:16 libdrivers_vmpc.a
110 </pre></div>
111
112 <p>This eventually screws up the build. Doing a make clobber followed by rm lib/* then a make install works OK...</p>
113                            </div>
114                         </div>
115                         <p class="entry-footer">
116                            <span class="post-footers">Posted by  on June 13, 2005  8:57 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000371.html">Permalink</a>
117                         </p>
118                      </div>
119
120                      
121
122                      
123                   </div>
124                </div>
125             </div>
126          </div>
127       </div>
128    </div>
129 </body>
130 </html>