Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000257.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: Rebuilding PPC</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/000256.html" title="Building 5.0.0 ppc cross toolchain" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/000258.html" title="ECRs 23079 &amp; 23080" />
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/000256.html">&laquo; Building 5.0.0 ppc cross toolchain</a> |
42                         <a href="http://defaria.com/blogs/Status/">Main</a>
43                         | <a href="http://defaria.com/blogs/Status/archives/000258.html">ECRs 23079 & 23080 &raquo;</a>
44                      </p>
45
46                      <a id="a000257"></a>
47                      <div class="entry" id="entry-257">
48                         <h3 class="entry-header">Rebuilding PPC</h3>
49                         <div class="entry-content">
50                            <div class="entry-body">
51                               <ul>
52
53 <li>Rebuilding for the PPC. I messed up a step or two</li>
54
55 </ul>
56                            </div>
57                            <div id="more" class="entry-more">
58                               <h2>Building cross lynxos for PPC</h2>
59
60 <ul>
61
62 <li>Cleaned up by removing the ppc directories (i.e. starting from scratch WRT the ppc)</li>
63
64 <li>Linked /usr/lynx/5.0.0 -> /export/build1/LYNXOS_500/build/lynxos/120604-A</li>
65
66 <li>In /export/build1/LYNXOS_500/build/lynxos/120604-A/int_tools modified START to change steps_ppc to just 1 and 2. We're gonna take this slowly.</li>
67
68 <li>Made sure that __profile.exp points to 120604-A. It still does, from before. There are a lot of settings in here that sometimes need to change depending on the situation. For example, right now the TOP_OF_TRUNK variable is set to no but it is usually set to yes.</li>
69
70 <li>Execute START and then tail -f LOGS/ppc.log.</li>
71
72 <li>Checked out with "check ppc". Seems OK.</li>
73
74 <li>Changed START to do steps 3 and 4. I think I could have done 1, 2, 3 and 4 together but Thu only wrote down 1 and 2</li>
75
76 <li>Checked again with check ppc. Still seems fine</li>
77
78 <li>Changed START to do steps 5en 5el 7 9 14 15 16 (17 doesn't work yet so why do it?) <font color="red"><b>Failure:</b></font> got:<br>
79
80 <blockquote>
81 Failure reason : Compiler does not exist: /export/dev_archive/lynxos/tools-5.0.0/3.2.2-072304/toolchain-powerpc-lynx-lynxos-ppc.tar.gz
82 </blockquote>
83
84 Ah ha! See this is one of those things that just confuses me. Contained in __profile.exp there's:
85
86 <tt><pre>
87                                                         # compiler binary
88 #set DIR_PATH(compilers) "/usr/lynx/t3/dev_archive/lynxos/tools-5.0.0/3.2.2-072304"
89 set DIR_PATH(compilers) "/export/dev_archive/lynxos/tools-5.0.0/3.2.2-072304"
90 </pre></tt>
91
92  need to uncomment the first line and comment out the second line.</li>
93
94 <li>After making the above change I reran START. Errors in makeall.log</li>
95
96 </ul>
97
98 <h2>Build ppc toolchain</h2>
99
100 <p>Thu said that the error sin makeall.log were acceptable. Continuing on to build the ppc toolchain...</p>
101
102 <ul>
103
104 <li>cd /usr/lynx/5.0.0/ppc (note that /usr/lynx/5.0.0 still points to 120604-A)</li>
105
106 <li>Ran . SETUP.bash setting ENV_PREFIX to cwd, target = ppc. which gcc yeilds /usr/lynx/5.0.0/ppc/cdk/linux-elf-ppc/bin/gcc</li>
107
108 <li>Toolchain is in /export/build1/LYNXOS_500/build/toolchain/3.2.2/120804 so cd'ed there</li>
109
110 <li>make install > install-ppc.log 2>&1 &</li>
111
112 <li>Toolchain seemed to build OK this time. Archived toolchain by doing make package then moving toolchain-i686-pc-linux-gnu-powerpc.tar.gz to       /usr/lynx/t3/dev_archive/lynxos/tools-5.0.0/3.2.2-120604. This is a little tricky because this path is a link to a mount on t3 and as such is considered a read only file system. The following worked for me, in /export/build1/LYNXOS_500/build/toolchain/3.2.2/120804:</li>
113
114 <tt><pre>
115 $ rcp toolchain-i686-pc-linux-gnu-powerpc.tar.gz int@t3:/export/dev_archive/lynxos/tools-5.0.0/3.2.2-120604
116 </pre></tt>
117
118 </ul>
119
120 <h2>Building cross lynxos for PPC (again)</h2>
121
122 <ul>
123
124 <li>Linked /usr/lynx/5.0.0 -> /export/build1/LYNXOS_500/build/lynxos/120604-B</li>
125
126 <li>In /export/build1/LYNXOS_500/build/lynxos/120604-B/int_tools modified START to change steps_ppc to for 1, 2, 3 and 4.</li>
127
128 <li>Execute START and then tail -f LOGS/ppc.log. Steps 1-4 seemed to have worked OK</li>
129
130 <li>Looked at __profile.exp and found
131
132 <tt><pre>set DIR_PATH(compilers) "/usr/lynx/t3/dev_archive/lynxos/tools-5.0.0/3.2.2-120604"
133 </pre></tt>
134
135 The compiler exists there (because of the archiving step above). Note there was no t3 style reference here.</li>
136
137 <li>Ran START again and monitored logs... Errors stating "gcc: installation problem, cannot exec `cc1': No such file or directory"</li>
138
139 </ul>
140
141                            </div>
142                         </div>
143                         <p class="entry-footer">
144                            <span class="post-footers">Posted by  on December 13, 2004  2:40 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000257.html">Permalink</a>
145                         </p>
146                      </div>
147
148                      
149
150                      
151                   </div>
152                </div>
153             </div>
154          </div>
155       </div>
156    </div>
157 </body>
158 </html>