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: 3.4.3 toolchain build/LOS178 Makefile global clean/clobber</title>
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" />
22 <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
24 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
26 <div id="container-inner" class="pkg">
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>
36 <div id="pagebody-inner" class="pkg">
38 <div id="alpha-inner" class="pkg">
40 <p class="content-nav">
41 <a href="http://defaria.com/blogs/Status/archives/000370.html">« 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 »</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">
52 <li>Added CR 636: LOS178 3.0.0 build fails with new 3.4.3 gcc</li>
54 <li>Reproduced make clobber problem</li>
56 <li>Added 637: 3.4.3 toolchain does not package properly</li>
59 <div id="more" class="entry-more">
60 <h3>Make clobber problem</h3>
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>
64 <p>When the make clobber gets propagated down to drivers/arinc653 the following happens:</p>
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'
79 <p>At this point a small libdrivers.a is left in sys/lib:</p>
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
86 <p>Similar things happen in:</p>
89 <li>sys/drivers/mem</li>
91 <li>sys/driverspmac_g5/is_sungem</li>
93 <li>sys/drivers.vmpc/rs232</li>
95 <li>sys/drivers.vmpc/bdlan</li>
97 <li>sys/drivers.vmpc/if_dec21040</li>
100 <p>When we are done with a clobber we are left with:</p>
102 <div class="code"><pre>
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
112 <p>This eventually screws up the build. Doing a make clobber followed by rm lib/* then a make install works OK...</p>
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>