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 26, 2005 - July 2, 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_19.html" title="June 19, 2005 - June 25, 2005" />
16 <link rel="next" href="http://defaria.com/blogs/Status/archives/week_2005_07_03.html" title="July 3, 2005 - July 9, 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_19.html">« June 19, 2005 - June 25, 2005</a> |
36 <a href="http://defaria.com/blogs/Status/">Main</a>
37 | <a href="http://defaria.com/blogs/Status/archives/week_2005_07_03.html">July 3, 2005 - July 9, 2005 »</a>
43 <h2 class="date-header">June 30, 2005</h2>
45 <div class="entry" id="entry-379">
46 <h3 class="entry-header">Building CDK on Windows</h3>
47 <div class="entry-content">
48 <div class="entry-body">
50 <li>Investigated bug on Windows nmake of CDK</li>
52 <li>Fixed build_los178 to properly build LOS178 2.1</li>
55 <h3>Windows nmake bug for CDK build</h3>
57 <p>There is still something wrong. Here's what I did:</p>
60 <li>Obtained the following tarballs from the 20050628 archive:
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>Unpacked those tarballs + ppc.cdkwin32.tar.gz into /tmp/los178</li>
72 <li>Setup my environment properly (this includes VCVARS32.bat)</li>
74 <li>cd'ed to src/cdk and performed make install > install.log 2>&1</li>
77 <p>I still have the error:</p>
79 <div class="code"><pre>
81 coff.c(87) : fatal error C1083: Cannot open include file: 'family/ppc/arch_mem.h': No such file or directory
82 NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
84 make[1]: *** [WIN32_VS_UTIL] Error 2
87 <p>It seems clear to me that the compiler cannot locate the include file family/ppc/arch_mem.h which does reside under $ENV_PREFIX/sys/include. Additionally it's clear that common/mkimage/Makefile was changed to append "-I$(ENV_PREFIX)/sys/include" to SPECIAL_CFLAGS to resolve this issue. However something on Windows (and Windows nmake) is causing this to remain a problem.</p>
89 <p>It seems that nmake eventually issues the following command to compile coff.c -> coff.o:</p>
91 <div class="code"><pre>
92 cl.exe /nologo /ML /W3 /GX /D "_WIN32_VS" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /FD /c -c coff.c -D__powerpc__ /Fo"coff.o"
95 <p>Which, of course, doesn't seem to mention $ENV_PREFIX/sys/include at all. IOW the above results in:</p>
97 <div class="code"><pre>
98 cl.exe /nologo /ML /W3 /GX /D "_WIN32_VS" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /FD /c -c coff.c -D__powerpc__ /Fo"coff.o"
100 coff.c(87) : fatal error C1083: Cannot open include file: 'family/ppc/arch_mem.h': No such file or directory
103 <p>While the following results in a successful compilation (with warnings):</p>
105 <div class="code"><pre>
106 cl.exe /nologo /ML /W3 /GX /D "_WIN32_VS" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /FD /c -c coff.c -D__powerpc__ /Fo"coff.o" /I$ENV_PREFIX/sys/include
109 <p>The Makefile and Windows nmake are not arranging for SPECIAL_CFLAGS to be passed along to the compiler.</p>
111 <h3>Fix to build_los178</h3>
113 <p>The build_los178 script was having a problem building LOS178. It would fail in different ways than when done from the command line. I suspected the problem would be in the setup_bash function as it attempts to reproduce what a ". SETUP.bash" does inside the Perl environment. Turns out I was right. Changed that subroutine to properly set HOST_OS_REVISION (previously it had an extra carriage return from `uname -r`) and to add /usr/ucb to the PATH.</p>
115 <p class="entry-footer">
116 <span class="post-footers">Posted by at 10:21 AM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000379.html">Permalink</a>
126 <h2 class="date-header">June 28, 2005</h2>
128 <div class="entry" id="entry-378">
129 <h3 class="entry-header">Built LOS178 2.1.0 TOB</h3>
130 <div class="entry-content">
131 <div class="entry-body">
133 <li>Completed the build of LOS178 2.1.0 TOB and released it to t3:/export/dev_archive/los178/2p1p0/20050628</li>
135 <li>Updated cvs_report to not report duplicate entries. This can occur when somebody say checks in foo.c thus creating revision 1.2 for CR 40 and then checks in foo.c again, thus creating revision 1.3. Before cvs_report would report foo.c twice. Now it just reports the highest revision (e.g. 1.3).</li>
137 <li>Updated cvs_report to take another parameter, -cvsr, for a cvs report area. cvs_report uses this area in order to determine what to report. Contained in this area is a .cvsr file which holds the baseline tag. However if you want to report on both the main trunk and a branch then you can't use the same area. In the past cvs_report was oriented to using the module name for the area. Now you can specify an alternate area.</li>
140 <p class="entry-footer">
141 <span class="post-footers">Posted by at 2:32 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000378.html">Permalink</a>