1.1 --- a/README-builds.html Wed Dec 22 15:57:04 2010 -0800 1.2 +++ b/README-builds.html Fri Dec 24 11:16:02 2010 -0800 1.3 @@ -24,12 +24,12 @@ 1.4 <h2><a name="introduction">Introduction</a></h2> 1.5 <blockquote> 1.6 <p> 1.7 - This README file contains build instructions for the 1.8 - <a href="http://openjdk.java.net" target="_blank">OpenJDK</a>. 1.9 - Building the source code for the 1.10 - OpenJDK 1.11 - requires 1.12 - a certain degree of technical expertise. 1.13 + This README file contains build instructions for the 1.14 + <a href="http://openjdk.java.net" target="_blank">OpenJDK</a>. 1.15 + Building the source code for the 1.16 + OpenJDK 1.17 + requires 1.18 + a certain degree of technical expertise. 1.19 </blockquote> 1.20 <!-- ------------------------------------------------------ --> 1.21 <hr> 1.22 @@ -37,18 +37,23 @@ 1.23 <blockquote> 1.24 <ul> 1.25 <li><a href="#introduction">Introduction</a></li> 1.26 + <li><a href="#hg">Use of Mercurial</a> 1.27 + <ul> 1.28 + <li><a href="#get_source">Getting the Source</a></li> 1.29 + </ul> 1.30 + </li> 1.31 <li><a href="#MBE">Minimum Build Environments</a></li> 1.32 <li><a href="#SDBE">Specific Developer Build Environments</a> 1.33 <ul> 1.34 <li><a href="#fedora">Fedora Linux</a> </li> 1.35 <li><a href="#centos">CentOS Linux</a> </li> 1.36 - <li><a href="#debian">Debian GNU/Linux</a></li> 1.37 - <li><a href="#ubuntu">Ubuntu Linux</a> </li> 1.38 - <li><a href="#opensuse">OpenSUSE</a></li> 1.39 - <li><a href="#mandriva">Mandriva</a></li> 1.40 - <li><a href="#opensolaris">OpenSolaris</a></li> 1.41 + <li><a href="#debian">Debian GNU/Linux</a></li> 1.42 + <li><a href="#ubuntu">Ubuntu Linux</a> </li> 1.43 + <li><a href="#opensuse">OpenSUSE</a></li> 1.44 + <li><a href="#mandriva">Mandriva</a></li> 1.45 + <li><a href="#opensolaris">OpenSolaris</a></li> 1.46 </ul> 1.47 - </li> 1.48 + </li> 1.49 <li><a href="#directories">Source Directory Structure</a> </li> 1.50 <li><a href="#building">Build Information</a> 1.51 <ul> 1.52 @@ -56,42 +61,42 @@ 1.53 <li><a href="#linux">Basic Linux System Setup</a> </li> 1.54 <li><a href="#solaris">Basic Solaris System Setup</a> </li> 1.55 <li><a href="#windows">Basic Windows System Setup</a> </li> 1.56 - <li><a href="#dependencies">Build Dependencies</a> </li> 1.57 - <ul> 1.58 - <li><a href="#bootjdk">Bootstrap JDK</a> </li> 1.59 - <li><a href="#binaryplugs">Binary Plugs</a> </li> 1.60 - <li><a href="#importjdk">Optional Import JDK</a> </li> 1.61 - <li><a href="#ant">Ant</a> </li> 1.62 - <li><a href="#cacerts">Certificate Authority File (cacert)</a> </li> 1.63 - <li><a href="#compilers">Compilers</a> 1.64 - <ul> 1.65 - <li><a href="#msvc32">Microsoft Visual Studio Professional/Express for 32 bit</a> </li> 1.66 - <li><a href="#msvc64">Microsoft Visual Studio Professional for 64 bit</a> </li> 1.67 - <li><a href="#mssdk64">Microsoft Windows SDK for 64 bit</a> </li> 1.68 - <li><a href="#gcc">Linux gcc/binutils</a> </li> 1.69 - <li><a href="#studio">Sun Studio</a> </li> 1.70 - </ul> 1.71 - </li> 1.72 - <li><a href="#zip">Zip and Unzip</a> </li> 1.73 - <li><a href="#freetype">FreeType2 Fonts</a> </li> 1.74 - <li>Linux and Solaris: 1.75 - <ul> 1.76 - <li><a href="#cups">CUPS Include files</a> </li> 1.77 - <li><a href="#xrender">XRender Include files</a></li> 1.78 - </ul> 1.79 - </li> 1.80 - <li>Linux only: 1.81 - <ul> 1.82 - <li><a href="#alsa">ALSA files</a> </li> 1.83 - </ul> 1.84 - </li> 1.85 - <li>Windows only: 1.86 - <ul> 1.87 - <li>Unix Command Tools (<a href="#cygwin">CYGWIN</a>)</li> 1.88 - <li><a href="#dxsdk">DirectX 9.0 SDK</a> </li> 1.89 - </ul> 1.90 - </li> 1.91 - </ul> 1.92 + <li><a href="#dependencies">Build Dependencies</a> 1.93 + <ul> 1.94 + <li><a href="#bootjdk">Bootstrap JDK</a> </li> 1.95 + <li><a href="#importjdk">Optional Import JDK</a> </li> 1.96 + <li><a href="#ant">Ant</a> </li> 1.97 + <li><a href="#cacerts">Certificate Authority File (cacert)</a> </li> 1.98 + <li><a href="#compilers">Compilers</a> 1.99 + <ul> 1.100 + <li><a href="#msvc32">Microsoft Visual Studio Professional/Express for 32 bit</a> </li> 1.101 + <li><a href="#msvc64">Microsoft Visual Studio Professional for 64 bit</a> </li> 1.102 + <li><a href="#mssdk64">Microsoft Windows SDK for 64 bit</a> </li> 1.103 + <li><a href="#gcc">Linux gcc/binutils</a> </li> 1.104 + <li><a href="#studio">Sun Studio</a> </li> 1.105 + </ul> 1.106 + </li> 1.107 + <li><a href="#zip">Zip and Unzip</a> </li> 1.108 + <li><a href="#freetype">FreeType2 Fonts</a> </li> 1.109 + <li>Linux and Solaris: 1.110 + <ul> 1.111 + <li><a href="#cups">CUPS Include files</a> </li> 1.112 + <li><a href="#xrender">XRender Include files</a></li> 1.113 + </ul> 1.114 + </li> 1.115 + <li>Linux only: 1.116 + <ul> 1.117 + <li><a href="#alsa">ALSA files</a> </li> 1.118 + </ul> 1.119 + </li> 1.120 + <li>Windows only: 1.121 + <ul> 1.122 + <li>Unix Command Tools (<a href="#cygwin">CYGWIN</a>)</li> 1.123 + <li><a href="#dxsdk">DirectX 9.0 SDK</a> </li> 1.124 + </ul> 1.125 + </li> 1.126 + </ul> 1.127 + </li> 1.128 </ul> 1.129 </li> 1.130 <li><a href="#creating">Creating the Build</a> </li> 1.131 @@ -100,6 +105,76 @@ 1.132 <li><a href="#troubleshooting">Troubleshooting</a></li> 1.133 </ul> 1.134 </blockquote> 1.135 + 1.136 + <!-- ------------------------------------------------------ --> 1.137 + <hr> 1.138 + <h2><a name="hg">Use of Mercurial</a></h2> 1.139 + <blockquote> 1.140 + The OpenJDK sources are maintained with the revision control system 1.141 + <a href="http://mercurial.selenic.com/wiki/Mercurial">Mercurial</a>. 1.142 + If you are new to Mercurial, please see the 1.143 + <a href="http://mercurial.selenic.com/wiki/BeginnersGuides">Beginner Guides</a> 1.144 + or refer to the <a href=""http://hgbook.red-bean.com/">Mercurial Book</a>. 1.145 + The first few chapters of the book provide an excellent overview of 1.146 + Mercurial, what it is and how it works. 1.147 + <br> 1.148 + For using Mercurial with the OpenJDK refer to the 1.149 + <a href=""http://openjdk.java.net/guide/repositories.html#installConfig"> 1.150 + Developer Guide: Installing and Configuring Mercurial</a> 1.151 + section for more information. 1.152 + The Forest Extension is not part of the Mercurial install, 1.153 + and is optional, 1.154 + but can be obtained with the following commands: 1.155 + <blockquote> 1.156 + <tt> 1.157 + hg clone https://bitbucket.org/pmezard/hgforest-crew/overview/ <i>YourHgForest</i> 1.158 + </tt> 1.159 + </blockquote> 1.160 + Once you have the file <tt>forest.py</tt>, you need to add these 1.161 + lines to your <tt>${HOME}/.hgrc</tt> file: 1.162 + <blockquote> 1.163 + <tt> 1.164 + [extensions] 1.165 + <br>forest = <i>YourHgForest</i>/forest.py 1.166 + </tt> 1.167 + </blockquote> 1.168 + 1.169 + <!-- ------------------------------------------------------ --> 1.170 + <h3><a name="get_source">Getting the Source</a></h3> 1.171 + <blockquote> 1.172 + To get the entire set of OpenJDK Mercurial repositories 1.173 + using the Forest Extension: 1.174 + <blockquote> 1.175 + <tt> 1.176 + hg fclone http://openjdk.java.net/jdk7/jdk7 <i>YourOpenJDK</i> 1.177 + </tt> 1.178 + </blockquote> 1.179 + To get the entire set of OpenJDK Mercurial repositories 1.180 + without using the Forest Extension: 1.181 + <blockquote> 1.182 + <tt> 1.183 + hg clone http://openjdk.java.net/jdk7/jdk7 <i>YourOpenJDK</i> 1.184 + <br>cd <i>YourOpenJDK</i> 1.185 + <br>sh ./get_source.sh 1.186 + </tt> 1.187 + </blockquote> 1.188 + Once you have all the repositories, the 1.189 + script <tt>make/scripts/hgforest.sh</tt> 1.190 + can be used to repeat the same <tt>hg</tt> 1.191 + command on every repository in the forest, e.g. 1.192 + <blockquote> 1.193 + <tt> 1.194 + cd <i>YourOpenJDK</i> 1.195 + <br>sh ./make/scripts/hgforest.sh pull -u 1.196 + </tt> 1.197 + </blockquote> 1.198 + You may find this script <tt>make/scripts/hgforest.sh</tt> faster 1.199 + than the <tt>hg</tt> forest commands provided by the 1.200 + Forest Extension. 1.201 + </blockquote> 1.202 + 1.203 + </blockquote> 1.204 + 1.205 <!-- ------------------------------------------------------ --> 1.206 <hr> 1.207 <h2><a name="MBE">Minimum Build Environments</a></h2> 1.208 @@ -116,8 +191,8 @@ 1.209 specific platforms, and in fact creating these specific platforms 1.210 may be difficult due to the age of some of this software. 1.211 <p> 1.212 - The minimum OS and C/C++ compiler versions needed for building the 1.213 - OpenJDK: 1.214 + The minimum OS and C/C++ compiler versions needed for building the 1.215 + OpenJDK: 1.216 <p> 1.217 <table border="1"> 1.218 <thead> 1.219 @@ -146,7 +221,7 @@ 1.220 <td>Solaris 10u2 + patches 1.221 <br> 1.222 See <a href="http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/JavaSE" target="_blank"> 1.223 - SunSolve</a> for patch downloads. 1.224 + SunSolve</a> for patch downloads. 1.225 </td> 1.226 <td>Sun Studio 12 Update 1 + patches</td> 1.227 <td>JDK 6u14 FCS </td> 1.228 @@ -156,7 +231,7 @@ 1.229 <td>Solaris 10u2 + patches 1.230 <br> 1.231 See <a href="http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/JavaSE" target="_blank"> 1.232 - SunSolve</a> for patch downloads. 1.233 + SunSolve</a> for patch downloads. 1.234 </td> 1.235 <td>Sun Studio 12 Update 1 + patches</td> 1.236 <td>JDK 6u14 FCS </td> 1.237 @@ -166,7 +241,7 @@ 1.238 <td>Solaris 10u2 + patches 1.239 <br> 1.240 See <a href="http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/JavaSE" target="_blank"> 1.241 - SunSolve</a> for patch downloads. 1.242 + SunSolve</a> for patch downloads. 1.243 </td> 1.244 <td>Sun Studio 12 Update 1 + patches</td> 1.245 <td>JDK 6u14 FCS </td> 1.246 @@ -176,7 +251,7 @@ 1.247 <td>Solaris 10u2 + patches 1.248 <br> 1.249 See <a href="http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/JavaSE" target="_blank"> 1.250 - SunSolve</a> for patch downloads. 1.251 + SunSolve</a> for patch downloads. 1.252 </td> 1.253 <td>Sun Studio 12 Update 1 + patches</td> 1.254 <td>JDK 6u14 FCS </td> 1.255 @@ -195,14 +270,14 @@ 1.256 </tr> 1.257 </tbody> 1.258 </table> 1.259 - <p> 1.260 + <p> 1.261 These same sources do indeed build on many more systems than the 1.262 above older generation systems, again the above is just a minimum. 1.263 - <p> 1.264 + <p> 1.265 Compilation problems with newer or different C/C++ compilers is a 1.266 common problem. 1.267 Similarly, compilation problems related to changes to the 1.268 - <tt>/usr/include</tt> or system header files is also a 1.269 + <tt>/usr/include</tt> or system header files is also a 1.270 common problem with newer or unreleased OS versions. 1.271 Please report these types of problems as bugs so that they 1.272 can be dealt with accordingly. 1.273 @@ -217,57 +292,57 @@ 1.274 <!-- ------------------------------------------------------ --> 1.275 <h3><a name="fedora">Fedora</a></h3> 1.276 <blockquote> 1.277 - <h4>Fedora 9</h4> 1.278 - <p> 1.279 - <blockquote> 1.280 - After installing <a href="http://fedoraproject.org">Fedora</a> 9 1.281 + <h4>Fedora 9</h4> 1.282 + <p> 1.283 + <blockquote> 1.284 + After installing <a href="http://fedoraproject.org">Fedora</a> 9 1.285 you need to install several build dependencies. The simplest 1.286 way to do it is to execute the following commands as user 1.287 - <tt>root</tt>: 1.288 - <p/> 1.289 - <code>yum-builddep java-openjdk</code> 1.290 - <p/> 1.291 - <code>yum install gcc gcc-c++</code> 1.292 - <p/> 1.293 + <tt>root</tt>: 1.294 + <p/> 1.295 + <code>yum-builddep java-openjdk</code> 1.296 + <p/> 1.297 + <code>yum install gcc gcc-c++</code> 1.298 + <p/> 1.299 In addition, it's necessary to set a few environment variables for the build: 1.300 1.301 - <p/> 1.302 - <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-openjdk</code> 1.303 + <p/> 1.304 + <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-openjdk</code> 1.305 </blockquote> 1.306 - <h4>Fedora 10</h4> 1.307 - <p> 1.308 - <blockquote> 1.309 - After installing <a href="http://fedoraproject.org">Fedora</a> 10 1.310 + <h4>Fedora 10</h4> 1.311 + <p> 1.312 + <blockquote> 1.313 + After installing <a href="http://fedoraproject.org">Fedora</a> 10 1.314 you need to install several build dependencies. The simplest 1.315 way to do it is to execute the following commands as user 1.316 - <tt>root</tt>: 1.317 - <p/> 1.318 - <code>yum-builddep java-1.6.0-openjdk</code> 1.319 - <p/> 1.320 - <code>yum install gcc gcc-c++</code> 1.321 - <p/> 1.322 + <tt>root</tt>: 1.323 + <p/> 1.324 + <code>yum-builddep java-1.6.0-openjdk</code> 1.325 + <p/> 1.326 + <code>yum install gcc gcc-c++</code> 1.327 + <p/> 1.328 In addition, it's necessary to set a few environment variables for the build: 1.329 1.330 - <p/> 1.331 - <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-openjdk</code> 1.332 + <p/> 1.333 + <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-openjdk</code> 1.334 </blockquote> 1.335 - <h4>Fedora 11</h4> 1.336 - <p> 1.337 - <blockquote> 1.338 - After installing <a href="http://fedoraproject.org">Fedora</a> 11 1.339 + <h4>Fedora 11</h4> 1.340 + <p> 1.341 + <blockquote> 1.342 + After installing <a href="http://fedoraproject.org">Fedora</a> 11 1.343 you need to install several build dependencies. The simplest 1.344 way to do it is to execute the following commands as user 1.345 - <tt>root</tt>: 1.346 - <p/> 1.347 - <code>yum-builddep java-1.6.0-openjdk</code> 1.348 - <p/> 1.349 - <code>yum install gcc gcc-c++</code> 1.350 - <p/> 1.351 + <tt>root</tt>: 1.352 + <p/> 1.353 + <code>yum-builddep java-1.6.0-openjdk</code> 1.354 + <p/> 1.355 + <code>yum install gcc gcc-c++</code> 1.356 + <p/> 1.357 In addition, it's necessary to set a few environment variables for the build: 1.358 1.359 - <p/> 1.360 - <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-openjdk</code> 1.361 - </blockquote> 1.362 + <p/> 1.363 + <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-openjdk</code> 1.364 + </blockquote> 1.365 </blockquote> 1.366 <!-- ------------------------------------------------------ --> 1.367 <h3><a name="centos">CentOS 5.2</a></h3> 1.368 @@ -285,7 +360,7 @@ 1.369 </ul> 1.370 </blockquote> 1.371 <p> 1.372 - Plus the following packages: 1.373 + Plus the following packages: 1.374 <blockquote> 1.375 <ul> 1.376 <li>cups devel: Cups Development Package</li> 1.377 @@ -295,188 +370,188 @@ 1.378 </ul> 1.379 </blockquote> 1.380 <p> 1.381 - The freetype 2.3 packages don't seem to be available, 1.382 - but the freetype 2.3 sources can be downloaded, built, 1.383 - and installed easily enough from 1.384 - <a href="http://downloads.sourceforge.net/freetype"> 1.385 - the freetype site</a>. 1.386 - Build and install with something like: 1.387 + The freetype 2.3 packages don't seem to be available, 1.388 + but the freetype 2.3 sources can be downloaded, built, 1.389 + and installed easily enough from 1.390 + <a href="http://downloads.sourceforge.net/freetype"> 1.391 + the freetype site</a>. 1.392 + Build and install with something like: 1.393 <blockquote> 1.394 <tt>./configure && make && sudo -u root make install</tt> 1.395 </blockquote> 1.396 <p> 1.397 - Mercurial packages could not be found easily, but a Google 1.398 - search should find ones, and they usually include Python if 1.399 - it's needed. 1.400 + Mercurial packages could not be found easily, but a Google 1.401 + search should find ones, and they usually include Python if 1.402 + it's needed. 1.403 </blockquote> 1.404 <!-- ------------------------------------------------------ --> 1.405 <h3><a name="debian">Debian</a></h3> 1.406 <blockquote> 1.407 <h4>Debian 5.0 (Lenny)</h4> 1.408 <p> 1.409 - <blockquote> 1.410 + <blockquote> 1.411 After installing <a href="http://debian.org">Debian</a> 5 1.412 you need to install several build dependencies. 1.413 The simplest way to install the build dependencies is to 1.414 execute the following commands as user <tt>root</tt>: 1.415 - <p/> 1.416 - <code>aptitude build-dep openjdk-6</code> 1.417 - <p/> 1.418 - <code>aptitude install openjdk-6-jdk libmotif-dev</code> 1.419 - <p/> 1.420 + <p/> 1.421 + <code>aptitude build-dep openjdk-6</code> 1.422 + <p/> 1.423 + <code>aptitude install openjdk-6-jdk libmotif-dev</code> 1.424 + <p/> 1.425 In addition, it's necessary to set a few environment variables for the build: 1.426 - <p/> 1.427 - <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk</code> 1.428 - </blockquote> 1.429 + <p/> 1.430 + <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk</code> 1.431 + </blockquote> 1.432 </blockquote> 1.433 <!-- ====================================================== --> 1.434 - <h3><a name="ubuntu">Ubuntu</a></h3> 1.435 + <h3><a name="ubuntu">Ubuntu</a></h3> 1.436 <blockquote> 1.437 <h4>Ubuntu 8.04</h4> 1.438 <p> 1.439 - <blockquote> 1.440 + <blockquote> 1.441 After installing <a href="http://ubuntu.org">Ubuntu</a> 8.04 1.442 you need to install several build dependencies. 1.443 - <p/> 1.444 + <p/> 1.445 First, you need to enable the universe repository in the 1.446 Software Sources application and reload the repository 1.447 information. The Software Sources application is available 1.448 under the System/Administration menu. 1.449 - <p/> 1.450 + <p/> 1.451 The simplest way to install the build dependencies is to 1.452 execute the following commands: 1.453 - <p/> 1.454 - <code>sudo aptitude build-dep openjdk-6</code> 1.455 - <p/> 1.456 - <code>sudo aptitude install openjdk-6-jdk</code> 1.457 - <p/> 1.458 + <p/> 1.459 + <code>sudo aptitude build-dep openjdk-6</code> 1.460 + <p/> 1.461 + <code>sudo aptitude install openjdk-6-jdk</code> 1.462 + <p/> 1.463 In addition, it's necessary to set a few environment variables for the build: 1.464 - <p/> 1.465 - <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk</code> 1.466 - </blockquote> 1.467 - <h4>Ubuntu 8.10</h4> 1.468 + <p/> 1.469 + <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk</code> 1.470 + </blockquote> 1.471 + <h4>Ubuntu 8.10</h4> 1.472 <p> 1.473 - <blockquote> 1.474 + <blockquote> 1.475 After installing <a href="http://ubuntu.org">Ubuntu</a> 8.10 1.476 you need to install several build dependencies. The simplest 1.477 way to do it is to execute the following commands: 1.478 - <p/> 1.479 - <code>sudo aptitude build-dep openjdk-6</code> 1.480 - <p/> 1.481 - <code>sudo aptitude install openjdk-6-jdk</code> 1.482 - <p/> 1.483 + <p/> 1.484 + <code>sudo aptitude build-dep openjdk-6</code> 1.485 + <p/> 1.486 + <code>sudo aptitude install openjdk-6-jdk</code> 1.487 + <p/> 1.488 In addition, it's necessary to set a few environment variables for the build: 1.489 - <p/> 1.490 - <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk</code> 1.491 - </blockquote> 1.492 - <h4>Ubuntu 9.04</h4> 1.493 + <p/> 1.494 + <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk</code> 1.495 + </blockquote> 1.496 + <h4>Ubuntu 9.04</h4> 1.497 <p> 1.498 - <blockquote> 1.499 + <blockquote> 1.500 After installing <a href="http://ubuntu.org">Ubuntu</a> 9.04 1.501 you need to install several build dependencies. The simplest 1.502 way to do it is to execute the following commands: 1.503 - <p/> 1.504 - <code>sudo aptitude build-dep openjdk-6</code> 1.505 - <p/> 1.506 - <code>sudo aptitude install openjdk-6-jdk</code> 1.507 - <p/> 1.508 + <p/> 1.509 + <code>sudo aptitude build-dep openjdk-6</code> 1.510 + <p/> 1.511 + <code>sudo aptitude install openjdk-6-jdk</code> 1.512 + <p/> 1.513 In addition, it's necessary to set a few environment variables for the build: 1.514 - <p/> 1.515 - <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk</code> 1.516 - </blockquote> 1.517 + <p/> 1.518 + <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk</code> 1.519 + </blockquote> 1.520 </blockquote> 1.521 <!-- ====================================================== --> 1.522 <h3><a name="opensuse">OpenSUSE</a></h3> 1.523 <blockquote> 1.524 <h4>OpenSUSE 11.1</h4> 1.525 <p> 1.526 - <blockquote> 1.527 + <blockquote> 1.528 After installing <a href="http://opensuse.org">OpenSUSE</a> 11.1 1.529 you need to install several build dependencies. 1.530 The simplest way to install the build dependencies is to 1.531 execute the following commands: 1.532 - <p/> 1.533 - <code>sudo zypper source-install -d java-1_6_0-openjdk</code> 1.534 - <p/> 1.535 - <code>sudo zypper install make</code> 1.536 - <p/> 1.537 + <p/> 1.538 + <code>sudo zypper source-install -d java-1_6_0-openjdk</code> 1.539 + <p/> 1.540 + <code>sudo zypper install make</code> 1.541 + <p/> 1.542 In addition, it is necessary to set a few environment variables for the build: 1.543 - <p/> 1.544 - <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-1.6.0-openjdk</code> 1.545 - <p/> 1.546 + <p/> 1.547 + <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-1.6.0-openjdk</code> 1.548 + <p/> 1.549 Finally, you need to unset the <code>JAVA_HOME</code> environment variable: 1.550 - <p/> 1.551 - <code>export -n JAVA_HOME</code> 1.552 - </blockquote> 1.553 - </blockquote> 1.554 + <p/> 1.555 + <code>export -n JAVA_HOME</code> 1.556 + </blockquote> 1.557 + </blockquote> 1.558 <!-- ====================================================== --> 1.559 <h3><a name="mandriva">Mandriva</a></h3> 1.560 <blockquote> 1.561 <h4>Mandriva Linux One 2009 Spring</h4> 1.562 <p> 1.563 - <blockquote> 1.564 + <blockquote> 1.565 After installing <a href="http://mandriva.org">Mandriva</a> Linux One 2009 Spring 1.566 you need to install several build dependencies. 1.567 The simplest way to install the build dependencies is to 1.568 execute the following commands as user <tt>root</tt>: 1.569 - <p/> 1.570 - <code>urpmi java-1.6.0-openjdk-devel ant make gcc gcc-c++ freetype-devel zip unzip libcups2-devel libxrender1-devel libalsa2-devel libstc++-static-devel libxtst6-devel libxi-devel</code> 1.571 + <p/> 1.572 + <code>urpmi java-1.6.0-openjdk-devel ant make gcc gcc-c++ freetype-devel zip unzip libcups2-devel libxrender1-devel libalsa2-devel libstc++-static-devel libxtst6-devel libxi-devel</code> 1.573 <p/> 1.574 In addition, it is necessary to set a few environment variables for the build: 1.575 - <p/> 1.576 - <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-1.6.0-openjdk</code> 1.577 - </blockquote> 1.578 + <p/> 1.579 + <code>export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-1.6.0-openjdk</code> 1.580 + </blockquote> 1.581 </blockquote> 1.582 <!-- ====================================================== --> 1.583 <h3><a name="opensolaris">OpenSolaris</a></h3> 1.584 <blockquote> 1.585 <h4>OpenSolaris 2009.06</h4> 1.586 <p> 1.587 - <blockquote> 1.588 + <blockquote> 1.589 After installing <a href="http://opensolaris.org">OpenSolaris</a> 2009.06 1.590 you need to install several build dependencies. 1.591 The simplest way to install the build dependencies is to 1.592 execute the following commands: 1.593 - <p/> 1.594 - <code>pfexec pkg install SUNWgmake SUNWj6dev SUNWant sunstudioexpress SUNWcups SUNWzip SUNWunzip SUNWxwhl SUNWxorg-headers SUNWaudh SUNWfreetype2</code> 1.595 + <p/> 1.596 + <code>pfexec pkg install SUNWgmake SUNWj6dev SUNWant sunstudioexpress SUNWcups SUNWzip SUNWunzip SUNWxwhl SUNWxorg-headers SUNWaudh SUNWfreetype2</code> 1.597 <p/> 1.598 In addition, it is necessary to set a few environment variables for the build: 1.599 - <p/> 1.600 - <code>export LANG=C ALT_COMPILER_PATH=/opt/SunStudioExpress/bin/ ALT_CUPS_HEADERS_PATH=/usr/include/</code> 1.601 - <p/> 1.602 + <p/> 1.603 + <code>export LANG=C ALT_COMPILER_PATH=/opt/SunStudioExpress/bin/ ALT_CUPS_HEADERS_PATH=/usr/include/</code> 1.604 + <p/> 1.605 Finally, you need to make sure that the build process can find the Sun Studio compilers: 1.606 - <p/> 1.607 - <code>export PATH=$PATH:/opt/SunStudioExpress/bin/</code> 1.608 - </blockquote> 1.609 + <p/> 1.610 + <code>export PATH=$PATH:/opt/SunStudioExpress/bin/</code> 1.611 + </blockquote> 1.612 </blockquote> 1.613 <!-- ------------------------------------------------------ --> 1.614 <hr> 1.615 <h2><a name="directories">Source Directory Structure</a></h2> 1.616 <blockquote> 1.617 <p> 1.618 - The source code for the OpenJDK is delivered in a set of 1.619 - directories: 1.620 - <tt>hotspot</tt>, 1.621 - <tt>langtools</tt>, 1.622 - <tt>corba</tt>, 1.623 - <tt>jaxws</tt>, 1.624 - <tt>jaxp</tt>, 1.625 - and 1.626 - <tt>jdk</tt>. 1.627 - The <tt>hotspot</tt> directory contains the source code and make 1.628 - files for building the OpenJDK Hotspot Virtual Machine. 1.629 - The <tt>langtools</tt> directory contains the source code and make 1.630 - files for building the OpenJDK javac and language tools. 1.631 - The <tt>corba</tt> directory contains the source code and make 1.632 - files for building the OpenJDK Corba files. 1.633 - The <tt>jaxws</tt> directory contains the source code and make 1.634 - files for building the OpenJDK JAXWS files. 1.635 - The <tt>jaxp</tt> directory contains the source code and make 1.636 - files for building the OpenJDK JAXP files. 1.637 - The <tt>jdk</tt> directory contains the source code and make files for 1.638 - building the OpenJDK runtime libraries and misc files. 1.639 - The top level <tt>Makefile</tt> 1.640 - is used to build the entire OpenJDK. 1.641 + The source code for the OpenJDK is delivered in a set of 1.642 + directories: 1.643 + <tt>hotspot</tt>, 1.644 + <tt>langtools</tt>, 1.645 + <tt>corba</tt>, 1.646 + <tt>jaxws</tt>, 1.647 + <tt>jaxp</tt>, 1.648 + and 1.649 + <tt>jdk</tt>. 1.650 + The <tt>hotspot</tt> directory contains the source code and make 1.651 + files for building the OpenJDK Hotspot Virtual Machine. 1.652 + The <tt>langtools</tt> directory contains the source code and make 1.653 + files for building the OpenJDK javac and language tools. 1.654 + The <tt>corba</tt> directory contains the source code and make 1.655 + files for building the OpenJDK Corba files. 1.656 + The <tt>jaxws</tt> directory contains the source code and make 1.657 + files for building the OpenJDK JAXWS files. 1.658 + The <tt>jaxp</tt> directory contains the source code and make 1.659 + files for building the OpenJDK JAXP files. 1.660 + The <tt>jdk</tt> directory contains the source code and make files for 1.661 + building the OpenJDK runtime libraries and misc files. 1.662 + The top level <tt>Makefile</tt> 1.663 + is used to build the entire OpenJDK. 1.664 </blockquote> 1.665 <!-- ------------------------------------------------------ --> 1.666 <hr> 1.667 @@ -495,10 +570,10 @@ 1.668 <tt>ALT_*</tt> variables (alternates) 1.669 can be used to help the makefiles locate components. 1.670 <p> 1.671 - Refer to the bash/sh/ksh setup file 1.672 - <tt>jdk/make/jdk_generic_profile.sh</tt> 1.673 - if you need help in setting up your environment variables. 1.674 - A build could be as simple as: 1.675 + Refer to the bash/sh/ksh setup file 1.676 + <tt>jdk/make/jdk_generic_profile.sh</tt> 1.677 + if you need help in setting up your environment variables. 1.678 + A build could be as simple as: 1.679 <blockquote> 1.680 <pre><tt> 1.681 bash 1.682 @@ -507,12 +582,12 @@ 1.683 </tt></pre> 1.684 </blockquote> 1.685 <p> 1.686 - Of course ksh or sh would work too. 1.687 - But some customization will probably be necessary. 1.688 - The <tt>sanity</tt> rule will make some basic checks on build 1.689 - dependencies and generate appropriate warning messages 1.690 - regarding missing, out of date, or newer than expected components 1.691 - found on your system. 1.692 + Of course ksh or sh would work too. 1.693 + But some customization will probably be necessary. 1.694 + The <tt>sanity</tt> rule will make some basic checks on build 1.695 + dependencies and generate appropriate warning messages 1.696 + regarding missing, out of date, or newer than expected components 1.697 + found on your system. 1.698 </blockquote> 1.699 <!-- ------------------------------------------------------ --> 1.700 <hr> 1.701 @@ -559,14 +634,14 @@ 1.702 version that has this problem fixed. 1.703 The older 3.80 version of make.exe can be downloaded with this 1.704 <a href="http://cygwin.paracoda.com/release/make/make-3.80-1.tar.bz2" target="_blank"> 1.705 - link</a>. 1.706 + link</a>. 1.707 Use of this older 3.80 make.exe may require that you install the 1.708 libintl2.dll library or libintl2 cygwin package which is 1.709 no longer installed by default by the cygwin installer. 1.710 <br> 1.711 Also see the 1.712 <a href="http://developer.mozilla.org/en/docs/Windows_build_prerequisites_using_cygwin#make" target="_blank"> 1.713 - mozilla developer center</a> 1.714 + mozilla developer center</a> 1.715 on this topic. 1.716 <br> 1.717 It's hoped that when make 3.82 starts shipping in a future cygwin 1.718 @@ -574,19 +649,19 @@ 1.719 In addition to the above 3.80 make.exe you can download 1.720 this 1.721 <a href="http://www.cmake.org/files/cygwin/make.exe"> 1.722 - www.cmake.org make.exe</a> which will not have a libintl2.dll 1.723 + www.cmake.org make.exe</a> which will not have a libintl2.dll 1.724 dependency. 1.725 </li> 1.726 </ul> 1.727 <p> 1.728 - Information on GNU make, and access to ftp download sites, are 1.729 - available on the 1.730 - <a href="http://www.gnu.org/software/make/make.html" target="_blank"> 1.731 - GNU make web site 1.732 - </a>. 1.733 - The latest source to GNU make is available at 1.734 - <a href="http://ftp.gnu.org/pub/gnu/make/" target="_blank"> 1.735 - ftp.gnu.org/pub/gnu/make/</a>. 1.736 + Information on GNU make, and access to ftp download sites, are 1.737 + available on the 1.738 + <a href="http://www.gnu.org/software/make/make.html" target="_blank"> 1.739 + GNU make web site 1.740 + </a>. 1.741 + The latest source to GNU make is available at 1.742 + <a href="http://ftp.gnu.org/pub/gnu/make/" target="_blank"> 1.743 + ftp.gnu.org/pub/gnu/make/</a>. 1.744 </blockquote> 1.745 <!-- ------------------------------------------------------ --> 1.746 <hr> 1.747 @@ -597,27 +672,27 @@ 1.748 is a Pentium class processor or better, at least 256 MB of RAM, and 1.749 approximately 1.5 GB of free disk space. 1.750 <p> 1.751 - <strong>X64 only:</strong> 1.752 - The minimum recommended hardware for building the Linux 1.753 - version is an AMD Opteron class processor, at least 512 MB of RAM, and 1.754 - approximately 4 GB of free disk space. 1.755 + <strong>X64 only:</strong> 1.756 + The minimum recommended hardware for building the Linux 1.757 + version is an AMD Opteron class processor, at least 512 MB of RAM, and 1.758 + approximately 4 GB of free disk space. 1.759 <p> 1.760 - The build will use the tools contained in 1.761 - <tt>/bin</tt> and 1.762 - <tt>/usr/bin</tt> 1.763 - of a standard installation of the Linux operating environment. 1.764 - You should ensure that these directories are in your 1.765 - <tt>PATH</tt>. 1.766 + The build will use the tools contained in 1.767 + <tt>/bin</tt> and 1.768 + <tt>/usr/bin</tt> 1.769 + of a standard installation of the Linux operating environment. 1.770 + You should ensure that these directories are in your 1.771 + <tt>PATH</tt>. 1.772 <p> 1.773 - Note that some Linux systems have a habit of pre-populating 1.774 - your environment variables for you, for example <tt>JAVA_HOME</tt> 1.775 - might get pre-defined for you to refer to the JDK installed on 1.776 - your Linux system. 1.777 - You will need to unset <tt>JAVA_HOME</tt>. 1.778 - It's a good idea to run <tt>env</tt> and verify the 1.779 - environment variables you are getting from the default system 1.780 - settings make sense for building the 1.781 - OpenJDK. 1.782 + Note that some Linux systems have a habit of pre-populating 1.783 + your environment variables for you, for example <tt>JAVA_HOME</tt> 1.784 + might get pre-defined for you to refer to the JDK installed on 1.785 + your Linux system. 1.786 + You will need to unset <tt>JAVA_HOME</tt>. 1.787 + It's a good idea to run <tt>env</tt> and verify the 1.788 + environment variables you are getting from the default system 1.789 + settings make sense for building the 1.790 + OpenJDK. 1.791 </blockquote> 1.792 <!-- ------------------------------------------------------ --> 1.793 <h4><a name="linux_checklist">Basic Linux Check List</a></h4> 1.794 @@ -629,17 +704,12 @@ 1.795 <tt><a href="#ALT_BOOTDIR">ALT_BOOTDIR</a></tt>. 1.796 </li> 1.797 <li> 1.798 - Install the 1.799 - <a href="#binaryplugs">Binary Plugs</a>, set 1.800 - <tt><a href="#ALT_BINARY_PLUGS_PATH">ALT_BINARY_PLUGS_PATH</a></tt>. 1.801 - </li> 1.802 - <li> 1.803 <a href="#importjdk">Optional Import JDK</a>, set 1.804 <tt><a href="#ALT_JDK_IMPORT_PATH">ALT_JDK_IMPORT_PATH</a></tt>. 1.805 </li> 1.806 <li> 1.807 Install or upgrade the <a href="#freetype">FreeType development 1.808 - package</a>. 1.809 + package</a>. 1.810 </li> 1.811 <li> 1.812 Install 1.813 @@ -660,23 +730,23 @@ 1.814 Approximately 1.4 GB of free disk 1.815 space is needed for a 32-bit build. 1.816 <p> 1.817 - If you are building the 64-bit version, you should 1.818 - run the command "isainfo -v" to verify that you have a 1.819 - 64-bit installation, it should say <tt>sparcv9</tt> or 1.820 - <tt>amd64</tt>. 1.821 - An additional 7 GB of free disk space is needed 1.822 - for a 64-bit build. 1.823 + If you are building the 64-bit version, you should 1.824 + run the command "isainfo -v" to verify that you have a 1.825 + 64-bit installation, it should say <tt>sparcv9</tt> or 1.826 + <tt>amd64</tt>. 1.827 + An additional 7 GB of free disk space is needed 1.828 + for a 64-bit build. 1.829 <p> 1.830 - The build uses the tools contained in <tt>/usr/ccs/bin</tt> 1.831 - and <tt>/usr/bin</tt> of a standard developer or full installation of 1.832 - the Solaris operating environment. 1.833 + The build uses the tools contained in <tt>/usr/ccs/bin</tt> 1.834 + and <tt>/usr/bin</tt> of a standard developer or full installation of 1.835 + the Solaris operating environment. 1.836 <p> 1.837 - Solaris patches specific to the JDK can be downloaded from the 1.838 - <a href="http://sunsolve.sun.com/show.do?target=patches/JavaSE" target="_blank"> 1.839 - SunSolve JDK Solaris patches download page</a>. 1.840 - You should ensure that the latest patch cluster for 1.841 - your version of the Solaris operating environment has also 1.842 - been installed. 1.843 + Solaris patches specific to the JDK can be downloaded from the 1.844 + <a href="http://sunsolve.sun.com/show.do?target=patches/JavaSE" target="_blank"> 1.845 + SunSolve JDK Solaris patches download page</a>. 1.846 + You should ensure that the latest patch cluster for 1.847 + your version of the Solaris operating environment has also 1.848 + been installed. 1.849 </blockquote> 1.850 <!-- ------------------------------------------------------ --> 1.851 <h4><a name="solaris_checklist">Basic Solaris Check List</a></h4> 1.852 @@ -688,11 +758,6 @@ 1.853 <tt><a href="#ALT_BOOTDIR">ALT_BOOTDIR</a></tt>. 1.854 </li> 1.855 <li> 1.856 - Install the 1.857 - <a href="#binaryplugs">Binary Plugs</a>, set 1.858 - <tt><a href="#ALT_BINARY_PLUGS_PATH">ALT_BINARY_PLUGS_PATH</a></tt>. 1.859 - </li> 1.860 - <li> 1.861 <a href="#importjdk">Optional Import JDK</a>, set 1.862 <tt><a href="#ALT_JDK_IMPORT_PATH">ALT_JDK_IMPORT_PATH</a></tt>. 1.863 </li> 1.864 @@ -731,10 +796,10 @@ 1.865 because FAT32 doesn't support case-sensitivity in file names. 1.866 </strong> 1.867 <p> 1.868 - <strong>X64 only:</strong> 1.869 - The minimum recommended hardware for building 1.870 - the Windows X64 version is an AMD Opteron class processor, at least 1 1.871 - GB of RAM, and approximately 10 GB of free disk space. 1.872 + <strong>X64 only:</strong> 1.873 + The minimum recommended hardware for building 1.874 + the Windows X64 version is an AMD Opteron class processor, at least 1 1.875 + GB of RAM, and approximately 10 GB of free disk space. 1.876 </blockquote> 1.877 <!-- ------------------------------------------------------ --> 1.878 <h4><a name="paths">Windows Paths</a></h4> 1.879 @@ -753,18 +818,18 @@ 1.880 (called 'mixed'), e.g. 1.881 <tt>cygpath -s -m "<i>path</i>"</tt>. 1.882 <p> 1.883 - The makefiles will try to translate any pathnames supplied 1.884 - to it into the <tt>C:/</tt> style automatically. 1.885 + The makefiles will try to translate any pathnames supplied 1.886 + to it into the <tt>C:/</tt> style automatically. 1.887 <p> 1.888 - Note that use of CYGWIN creates a unique problem with regards to 1.889 - setting <a href="#path"><tt>PATH</tt></a>. Normally on Windows 1.890 - the <tt>PATH</tt> variable contains directories 1.891 - separated with the ";" character (Solaris and Linux uses ":"). 1.892 - With CYGWIN, it uses ":", but that means that paths like "C:/path" 1.893 - cannot be placed in the CYGWIN version of <tt>PATH</tt> and 1.894 - instead CYGWIN uses something like <tt>/cygdrive/c/path</tt> 1.895 - which CYGWIN understands, but only CYGWIN understands. 1.896 - So be careful with paths on Windows. 1.897 + Note that use of CYGWIN creates a unique problem with regards to 1.898 + setting <a href="#path"><tt>PATH</tt></a>. Normally on Windows 1.899 + the <tt>PATH</tt> variable contains directories 1.900 + separated with the ";" character (Solaris and Linux uses ":"). 1.901 + With CYGWIN, it uses ":", but that means that paths like "C:/path" 1.902 + cannot be placed in the CYGWIN version of <tt>PATH</tt> and 1.903 + instead CYGWIN uses something like <tt>/cygdrive/c/path</tt> 1.904 + which CYGWIN understands, but only CYGWIN understands. 1.905 + So be careful with paths on Windows. 1.906 </blockquote> 1.907 <!-- ------------------------------------------------------ --> 1.908 <h4><a name="windows_checklist">Basic Windows Check List</a></h4> 1.909 @@ -780,11 +845,6 @@ 1.910 <tt><a href="#ALT_BOOTDIR">ALT_BOOTDIR</a></tt>. 1.911 </li> 1.912 <li> 1.913 - Install the 1.914 - <a href="#binaryplugs">Binary Plugs</a>, set 1.915 - <tt><a href="#ALT_BINARY_PLUGS_PATH">ALT_BINARY_PLUGS_PATH</a></tt>.. 1.916 - </li> 1.917 - <li> 1.918 <a href="#importjdk">Optional Import JDK</a>, set 1.919 <tt><a href="#ALT_JDK_IMPORT_PATH">ALT_JDK_IMPORT_PATH</a></tt>. 1.920 </li> 1.921 @@ -828,7 +888,7 @@ 1.922 JDK 6, this is often called a bootstrap JDK. 1.923 The JDK 6 binaries can be downloaded from Sun's 1.924 <a href="http://java.sun.com/javase/downloads/index.jsp" 1.925 - target="_blank">JDK 6 download site</a>. 1.926 + target="_blank">JDK 6 download site</a>. 1.927 For build performance reasons 1.928 is very important that this bootstrap JDK be made available on the 1.929 local disk of the machine doing the build. 1.930 @@ -841,44 +901,12 @@ 1.931 in the <tt>PATH</tt> environment variable, although it's 1.932 not required. 1.933 <p> 1.934 - <strong>Solaris:</strong> 1.935 - Some pre-installed JDK images may be available to you in the 1.936 - directory <tt>/usr/jdk/instances</tt>. 1.937 - If you don't set 1.938 - <tt><a href="#ALT_BOOTDIR">ALT_BOOTDIR</a></tt> 1.939 - the makefiles will look in that location for a JDK it can use. 1.940 - </blockquote> 1.941 - <!-- ------------------------------------------------------ --> 1.942 - <h4><a name="binaryplugs">Binary Plugs</a></h4> 1.943 - <blockquote> 1.944 - Not all of the source code that makes up the JDK is available 1.945 - under an open-source license. 1.946 - This is a temporary situation and these binary plugs will be 1.947 - replaced with fully open source replacements as soon as possible. 1.948 - So currently, in order to build a complete OpenJDK image, 1.949 - you must first download and install the appropriate 1.950 - binary plug bundles for the OpenJDK, go to the 1.951 - <a href="http://openjdk.java.net" target="_blank">OpenJDK</a> site and select 1.952 - the 1.953 - "<b>Bundles(7)</b>" 1.954 - link and download the binaryplugs for 1.955 - your particular platform. 1.956 - The file downloaded is a jar file that must be extracted by running 1.957 - the jar file with: 1.958 - <blockquote> 1.959 - <pre> 1.960 - <tt><b>java -jar jdk-7-ea-plug-b<i>nn</i>-<i>os</i>-<i>arch</i>-<i>dd</i>_<i>month</i>_<i>year</i>.jar</b></tt> 1.961 - </pre> 1.962 - </blockquote> 1.963 - A prompt will be issued for acceptance of these binary plug files. 1.964 - During the OpenJDK build process these "binary plugs" 1.965 - for the encumbered components will be copied into your 1.966 - resulting OpenJDK binary build image. 1.967 - These binary plug files are only for the purpose of 1.968 - building an OpenJDK binary. 1.969 - Make sure you set 1.970 - <tt><a href="#ALT_BINARY_PLUGS_PATH">ALT_BINARY_PLUGS_PATH</a></tt> 1.971 - to the root of this installation. 1.972 + <strong>Solaris:</strong> 1.973 + Some pre-installed JDK images may be available to you in the 1.974 + directory <tt>/usr/jdk/instances</tt>. 1.975 + If you don't set 1.976 + <tt><a href="#ALT_BOOTDIR">ALT_BOOTDIR</a></tt> 1.977 + the makefiles will look in that location for a JDK it can use. 1.978 </blockquote> 1.979 <!-- ------------------------------------------------------ --> 1.980 <h4><a name="importjdk">Optional Import JDK</a></h4> 1.981 @@ -896,7 +924,7 @@ 1.982 All OpenJDK builds require access to least Ant 1.6.5. 1.983 The Ant tool is available from the 1.984 <a href="http://ant.apache.org" target="_blank"> 1.985 - Ant download site</a>. 1.986 + Ant download site</a>. 1.987 You should always make sure <tt>ant</tt> is in your PATH, and 1.988 on Windows you may also need to set 1.989 <tt><a href="#ANT_HOME">ANT_HOME</a></tt> 1.990 @@ -908,7 +936,7 @@ 1.991 <h4><a name="cacerts">Certificate Authority File (cacert)</a></h4> 1.992 <blockquote> 1.993 See <a href="http://en.wikipedia.org/wiki/Certificate_Authority" target="_blank"> 1.994 - http://en.wikipedia.org/wiki/Certificate_Authority</a> 1.995 + http://en.wikipedia.org/wiki/Certificate_Authority</a> 1.996 for a better understanding of the Certificate Authority (CA). 1.997 A certificates file named "cacerts" 1.998 represents a system-wide keystore with CA certificates. 1.999 @@ -942,121 +970,121 @@ 1.1000 <blockquote> 1.1001 At a minimum, the 1.1002 <a href="http://www.oracle.com/technetwork/server-storage/solarisstudio/downloads/index.htm" target="_blank"> 1.1003 - Sun Studio 12 Update 1 Compilers</a> 1.1004 + Sun Studio 12 Update 1 Compilers</a> 1.1005 (containing version 5.10 of the C and C++ compilers) is required, 1.1006 including specific patches. 1.1007 - <p> 1.1008 + <p> 1.1009 The Solaris SPARC patch list is: 1.1010 - <ul> 1.1011 - <li> 1.1012 - 118683-05: SunOS 5.10: Patch for profiling libraries and assembler 1.1013 - </li> 1.1014 - <li> 1.1015 - 119963-21: SunOS 5.10: Shared library patch for C++ 1.1016 - </li> 1.1017 - <li> 1.1018 - 120753-08: SunOS 5.10: Microtasking libraries (libmtsk) patch 1.1019 - </li> 1.1020 - <li> 1.1021 - 128228-09: Sun Studio 12 Update 1: Patch for Sun C++ Compiler 1.1022 - </li> 1.1023 - <li> 1.1024 - 141860-03: Sun Studio 12 Update 1: Patch for Compiler Common patch for Sun C C++ F77 F95 1.1025 - </li> 1.1026 - <li> 1.1027 - 141861-05: Sun Studio 12 Update 1: Patch for Sun C Compiler 1.1028 - </li> 1.1029 - <li> 1.1030 - 142371-01: Sun Studio 12.1 Update 1: Patch for dbx 1.1031 - </li> 1.1032 - <li> 1.1033 - 143384-02: Sun Studio 12 Update 1: Patch for debuginfo handling 1.1034 - </li> 1.1035 - <li> 1.1036 - 143385-02: Sun Studio 12 Update 1: Patch for Compiler Common patch for Sun C C++ F77 F95 1.1037 - </li> 1.1038 - <li> 1.1039 - 142369-01: Sun Studio 12.1: Patch for Performance Analyzer Tools 1.1040 - </li> 1.1041 + <ul> 1.1042 + <li> 1.1043 + 118683-05: SunOS 5.10: Patch for profiling libraries and assembler 1.1044 + </li> 1.1045 + <li> 1.1046 + 119963-21: SunOS 5.10: Shared library patch for C++ 1.1047 + </li> 1.1048 + <li> 1.1049 + 120753-08: SunOS 5.10: Microtasking libraries (libmtsk) patch 1.1050 + </li> 1.1051 + <li> 1.1052 + 128228-09: Sun Studio 12 Update 1: Patch for Sun C++ Compiler 1.1053 + </li> 1.1054 + <li> 1.1055 + 141860-03: Sun Studio 12 Update 1: Patch for Compiler Common patch for Sun C C++ F77 F95 1.1056 + </li> 1.1057 + <li> 1.1058 + 141861-05: Sun Studio 12 Update 1: Patch for Sun C Compiler 1.1059 + </li> 1.1060 + <li> 1.1061 + 142371-01: Sun Studio 12.1 Update 1: Patch for dbx 1.1062 + </li> 1.1063 + <li> 1.1064 + 143384-02: Sun Studio 12 Update 1: Patch for debuginfo handling 1.1065 + </li> 1.1066 + <li> 1.1067 + 143385-02: Sun Studio 12 Update 1: Patch for Compiler Common patch for Sun C C++ F77 F95 1.1068 + </li> 1.1069 + <li> 1.1070 + 142369-01: Sun Studio 12.1: Patch for Performance Analyzer Tools 1.1071 + </li> 1.1072 </ul> 1.1073 <p> 1.1074 - The Solaris X86 patch list is: 1.1075 + The Solaris X86 patch list is: 1.1076 <ul> 1.1077 - <li> 1.1078 - 119961-07: SunOS 5.10_x86, x64, Patch for profiling libraries and assembler 1.1079 - </li> 1.1080 - <li> 1.1081 - 119964-21: SunOS 5.10_x86: Shared library patch for C++_x86 1.1082 - </li> 1.1083 - <li> 1.1084 - 120754-08: SunOS 5.10_x86: Microtasking libraries (libmtsk) patch 1.1085 - </li> 1.1086 - <li> 1.1087 - 141858-06: Sun Studio 12 Update 1_x86: Sun Compiler Common patch for x86 backend 1.1088 - </li> 1.1089 - <li> 1.1090 - 128229-09: Sun Studio 12 Update 1_x86: Patch for C++ Compiler 1.1091 - </li> 1.1092 - <li> 1.1093 - 142363-05: Sun Studio 12 Update 1_x86: Patch for C Compiler 1.1094 - </li> 1.1095 - <li> 1.1096 - 142368-01: Sun Studio 12.1_x86: Patch for Performance Analyzer Tools 1.1097 - </li> 1.1098 + <li> 1.1099 + 119961-07: SunOS 5.10_x86, x64, Patch for profiling libraries and assembler 1.1100 + </li> 1.1101 + <li> 1.1102 + 119964-21: SunOS 5.10_x86: Shared library patch for C++_x86 1.1103 + </li> 1.1104 + <li> 1.1105 + 120754-08: SunOS 5.10_x86: Microtasking libraries (libmtsk) patch 1.1106 + </li> 1.1107 + <li> 1.1108 + 141858-06: Sun Studio 12 Update 1_x86: Sun Compiler Common patch for x86 backend 1.1109 + </li> 1.1110 + <li> 1.1111 + 128229-09: Sun Studio 12 Update 1_x86: Patch for C++ Compiler 1.1112 + </li> 1.1113 + <li> 1.1114 + 142363-05: Sun Studio 12 Update 1_x86: Patch for C Compiler 1.1115 + </li> 1.1116 + <li> 1.1117 + 142368-01: Sun Studio 12.1_x86: Patch for Performance Analyzer Tools 1.1118 + </li> 1.1119 </ul> 1.1120 <p> 1.1121 - Set 1.1122 - <a href="#ALT_COMPILER_PATH"><tt>ALT_COMPILER_PATH</tt></a> 1.1123 - to point to the location of 1.1124 - the compiler binaries, and place this location in the <tt>PATH</tt>. 1.1125 + Set 1.1126 + <a href="#ALT_COMPILER_PATH"><tt>ALT_COMPILER_PATH</tt></a> 1.1127 + to point to the location of 1.1128 + the compiler binaries, and place this location in the <tt>PATH</tt>. 1.1129 <p> 1.1130 - The Oracle Solaris Studio Express compilers at: 1.1131 - <a href="http://developers.sun.com/sunstudio/downloads/express.jsp" target="_blank"> 1.1132 - Oracle Solaris Studio Express Download site</a> 1.1133 - are also an option, although these compilers have not 1.1134 - been extensively used yet. 1.1135 + The Oracle Solaris Studio Express compilers at: 1.1136 + <a href="http://developers.sun.com/sunstudio/downloads/express.jsp" target="_blank"> 1.1137 + Oracle Solaris Studio Express Download site</a> 1.1138 + are also an option, although these compilers have not 1.1139 + been extensively used yet. 1.1140 </blockquote> 1.1141 <strong><a name="msvc32">Windows i586: Microsoft Visual Studio 2010 Compilers</a></strong> 1.1142 <blockquote> 1.1143 -<p> 1.1144 -<b>BEGIN WARNING</b>: At this time (Spring/Summer 2010) JDK 7 is starting a transition to 1.1145 -use the newest VS2010 Microsoft compilers. These build instructions are updated 1.1146 -to show where we are going. We have a QA process to go through before 1.1147 -official builds actually use VS2010. So for now, official builds are 1.1148 -still using VS2003. No other compilers are known to build the entire JDK, 1.1149 -including non-open portions. 1.1150 -So for now you should be able to build with either VS2003 or VS2010. 1.1151 -We do not guarantee that VS2008 will work, although there is sufficient 1.1152 -makefile support to make at least basic JDK builds plausible. 1.1153 -Visual Studio 2010 Express compilers are now able to build all the 1.1154 -open source repositories, but this is 32 bit only. To build 64 bit 1.1155 -Windows binaries use the the 7.1 Windows SDK.<b>END WARNING.</b> 1.1156 -<p> 1.1157 - The 32-bit OpenJDK Windows build 1.1158 - requires 1.1159 - Microsoft Visual Studio C++ 2010 (VS2010) Professional 1.1160 - Edition or Express compiler. 1.1161 - The compiler and other tools are expected to reside 1.1162 - in the location defined by the variable 1.1163 - <tt>VS100COMNTOOLS</tt> which 1.1164 - is set by the Microsoft Visual Studio installer. 1.1165 + <p> 1.1166 + <b>BEGIN WARNING</b>: At this time (Spring/Summer 2010) JDK 7 is starting a transition to 1.1167 + use the newest VS2010 Microsoft compilers. These build instructions are updated 1.1168 + to show where we are going. We have a QA process to go through before 1.1169 + official builds actually use VS2010. So for now, official builds are 1.1170 + still using VS2003. No other compilers are known to build the entire JDK, 1.1171 + including non-open portions. 1.1172 + So for now you should be able to build with either VS2003 or VS2010. 1.1173 + We do not guarantee that VS2008 will work, although there is sufficient 1.1174 + makefile support to make at least basic JDK builds plausible. 1.1175 + Visual Studio 2010 Express compilers are now able to build all the 1.1176 + open source repositories, but this is 32 bit only. To build 64 bit 1.1177 + Windows binaries use the the 7.1 Windows SDK.<b>END WARNING.</b> 1.1178 + <p> 1.1179 + The 32-bit OpenJDK Windows build 1.1180 + requires 1.1181 + Microsoft Visual Studio C++ 2010 (VS2010) Professional 1.1182 + Edition or Express compiler. 1.1183 + The compiler and other tools are expected to reside 1.1184 + in the location defined by the variable 1.1185 + <tt>VS100COMNTOOLS</tt> which 1.1186 + is set by the Microsoft Visual Studio installer. 1.1187 <p> 1.1188 - Once the compiler is installed, 1.1189 - it is recommended that you run <tt>VCVARS32.BAT</tt> 1.1190 - to set the compiler environment variables 1.1191 - <tt>INCLUDE</tt>, 1.1192 - <tt>LIB</tt>, and 1.1193 - <tt>PATH</tt> 1.1194 - prior to building the 1.1195 - OpenJDK. 1.1196 - The above environment variables <b>MUST</b> be set. 1.1197 - This compiler also contains the Windows SDK v 7.0a, 1.1198 - which is an update to the Windows 7 SDK. 1.1199 + Once the compiler is installed, 1.1200 + it is recommended that you run <tt>VCVARS32.BAT</tt> 1.1201 + to set the compiler environment variables 1.1202 + <tt>INCLUDE</tt>, 1.1203 + <tt>LIB</tt>, and 1.1204 + <tt>PATH</tt> 1.1205 + prior to building the 1.1206 + OpenJDK. 1.1207 + The above environment variables <b>MUST</b> be set. 1.1208 + This compiler also contains the Windows SDK v 7.0a, 1.1209 + which is an update to the Windows 7 SDK. 1.1210 <p> 1.1211 - <b>WARNING:</b> Make sure you check out the 1.1212 - <a href="#cygwin">CYGWIN link.exe WARNING</a>. 1.1213 - The path <tt>/usr/bin</tt> must be after the path to the 1.1214 - Visual Studio product. 1.1215 + <b>WARNING:</b> Make sure you check out the 1.1216 + <a href="#cygwin">CYGWIN link.exe WARNING</a>. 1.1217 + The path <tt>/usr/bin</tt> must be after the path to the 1.1218 + Visual Studio product. 1.1219 </blockquote> 1.1220 <strong><a name="msvc64">Windows x64: Microsoft Visual Studio 2010 Professional Compiler</a></strong> 1.1221 <blockquote> 1.1222 @@ -1069,22 +1097,22 @@ 1.1223 you have VS2010 Professional. 1.1224 </blockquote> 1.1225 <strong><a name="mssdk64">Windows x64: Microsoft Windows 7.1 SDK 64 bit compilers.</a></strong> 1.1226 - For a free alternative for 64 bit builds, use the 7.1 SDK. 1.1227 - Microsoft say that to set up your paths for this run 1.1228 -<pre> 1.1229 + For a free alternative for 64 bit builds, use the 7.1 SDK. 1.1230 + Microsoft say that to set up your paths for this run 1.1231 + <pre> 1.1232 c:\Program Files\Microsoft SDKs\Windows\v7.1\bin\setenv.cmd /x64. 1.1233 -</pre> 1.1234 - What was tested is just directly setting up LIB, INCLUDE, 1.1235 - PATH and based on the installation directories using the 1.1236 - DOS short name appropriate for the system, (you will 1.1237 - need to set them for yours, not just blindly copy this) eg : 1.1238 -<pre> 1.1239 + </pre> 1.1240 + What was tested is just directly setting up LIB, INCLUDE, 1.1241 + PATH and based on the installation directories using the 1.1242 + DOS short name appropriate for the system, (you will 1.1243 + need to set them for yours, not just blindly copy this) eg : 1.1244 + <pre> 1.1245 set VSINSTALLDIR=c:\PROGRA~2\MICROS~1.0 1.1246 set WindowsSdkDir=c:\PROGRA~1\MICROS~1\Windows\v7.1 1.1247 set PATH=%VSINSTALLDIR%\vc\bin\amd64;%VSINSTALLDIR%\Common7\IDE;%WindowsSdkDir%\bin;%PATH% 1.1248 set INCLUDE=%VSINSTALLDIR%\vc\include;%WindowsSdkDir%\include 1.1249 set LIB=%VSINSTALLDIR%\vc\lib\amd64;%WindowsSdkDir%\lib\x64 1.1250 -</pre> 1.1251 + </pre> 1.1252 </blockquote> 1.1253 <!-- ------------------------------------------------------ --> 1.1254 <h4><a name="zip">Zip and Unzip</a></h4> 1.1255 @@ -1110,41 +1138,41 @@ 1.1256 Companion CD/DVD, these often will be installed into 1.1257 <tt>/opt/sfw/cups</tt>. 1.1258 <p> 1.1259 - <strong>Linux:</strong> 1.1260 - CUPS header files are required for building the 1.1261 - OpenJDK on Linux. 1.1262 - The Linux header files are usually available from a "cups" 1.1263 - development package, it's recommended that you try and use 1.1264 - the package provided by the particular version of Linux that 1.1265 - you are using. 1.1266 + <strong>Linux:</strong> 1.1267 + CUPS header files are required for building the 1.1268 + OpenJDK on Linux. 1.1269 + The Linux header files are usually available from a "cups" 1.1270 + development package, it's recommended that you try and use 1.1271 + the package provided by the particular version of Linux that 1.1272 + you are using. 1.1273 <p> 1.1274 - The CUPS header files can always be downloaded from 1.1275 - <a href="http://www.cups.org" target="_blank">www.cups.org</a>. 1.1276 - The variable 1.1277 - <tt><a href="#ALT_CUPS_HEADERS_PATH">ALT_CUPS_HEADERS_PATH</a></tt> 1.1278 - can be used to override the default location of the 1.1279 - CUPS Header files. 1.1280 + The CUPS header files can always be downloaded from 1.1281 + <a href="http://www.cups.org" target="_blank">www.cups.org</a>. 1.1282 + The variable 1.1283 + <tt><a href="#ALT_CUPS_HEADERS_PATH">ALT_CUPS_HEADERS_PATH</a></tt> 1.1284 + can be used to override the default location of the 1.1285 + CUPS Header files. 1.1286 </blockquote> 1.1287 <!-- ------------------------------------------------------ --> 1.1288 <h4><a name="xrender">XRender Extension Headers (Solaris & Linux)</a></h4> 1.1289 <blockquote> 1.1290 <p> 1.1291 - <strong>Solaris:</strong> 1.1292 - XRender header files are required for building the 1.1293 - OpenJDK on Solaris. 1.1294 - The XRender header file is included with the other X11 header files 1.1295 - in the package <strong>SFWxwinc</strong> on new enough versions of 1.1296 - Solaris and will be installed in 1.1297 - <tt>/usr/X11/include/X11/extensions/Xrender.h</tt> 1.1298 + <strong>Solaris:</strong> 1.1299 + XRender header files are required for building the 1.1300 + OpenJDK on Solaris. 1.1301 + The XRender header file is included with the other X11 header files 1.1302 + in the package <strong>SFWxwinc</strong> on new enough versions of 1.1303 + Solaris and will be installed in 1.1304 + <tt>/usr/X11/include/X11/extensions/Xrender.h</tt> 1.1305 </p><p> 1.1306 - <strong>Linux:</strong> 1.1307 - XRender header files are required for building the 1.1308 - OpenJDK on Linux. 1.1309 - The Linux header files are usually available from a "Xrender" 1.1310 - development package, it's recommended that you try and use 1.1311 - the package provided by the particular distribution of Linux that 1.1312 - you are using. 1.1313 - </p> 1.1314 + <strong>Linux:</strong> 1.1315 + XRender header files are required for building the 1.1316 + OpenJDK on Linux. 1.1317 + The Linux header files are usually available from a "Xrender" 1.1318 + development package, it's recommended that you try and use 1.1319 + the package provided by the particular distribution of Linux that 1.1320 + you are using. 1.1321 + </p> 1.1322 </blockquote> 1.1323 <!-- ------------------------------------------------------ --> 1.1324 <h4><a name="freetype">FreeType 2</a></h4> 1.1325 @@ -1155,31 +1183,31 @@ 1.1326 Note that you need development version of package that 1.1327 includes both FreeType library and header files. 1.1328 <p> 1.1329 - You can always download latest FreeType version from the 1.1330 - <a href="http://www.freetype.org" target="_blank">FreeType website</a>. 1.1331 + You can always download latest FreeType version from the 1.1332 + <a href="http://www.freetype.org" target="_blank">FreeType website</a>. 1.1333 <p> 1.1334 - Makefiles will try to pick FreeType from /usr/lib and /usr/include. 1.1335 - In case it is installed elsewhere you will need to set environment 1.1336 - variables 1.1337 - <tt><a href="#ALT_FREETYPE_LIB_PATH">ALT_FREETYPE_LIB_PATH</a></tt> 1.1338 - and 1.1339 - <tt><a href="#ALT_FREETYPE_HEADERS_PATH">ALT_FREETYPE_HEADERS_PATH</a></tt> 1.1340 - to refer to place where library and header files are installed. 1.1341 + Makefiles will try to pick FreeType from /usr/lib and /usr/include. 1.1342 + In case it is installed elsewhere you will need to set environment 1.1343 + variables 1.1344 + <tt><a href="#ALT_FREETYPE_LIB_PATH">ALT_FREETYPE_LIB_PATH</a></tt> 1.1345 + and 1.1346 + <tt><a href="#ALT_FREETYPE_HEADERS_PATH">ALT_FREETYPE_HEADERS_PATH</a></tt> 1.1347 + to refer to place where library and header files are installed. 1.1348 <p> 1.1349 - Building the freetype 2 libraries from scratch is also possible, 1.1350 - however on Windows refer to the 1.1351 - <a href="http://freetype.freedesktop.org/wiki/FreeType_DLL"> 1.1352 - Windows FreeType DLL build instructions</a>. 1.1353 + Building the freetype 2 libraries from scratch is also possible, 1.1354 + however on Windows refer to the 1.1355 + <a href="http://freetype.freedesktop.org/wiki/FreeType_DLL"> 1.1356 + Windows FreeType DLL build instructions</a>. 1.1357 <p> 1.1358 - Note that by default FreeType is built with byte code hinting 1.1359 - support disabled due to licensing restrictions. 1.1360 - In this case, text appearance and metrics are expected to 1.1361 - differ from Sun's official JDK build. 1.1362 - See 1.1363 - <a href="http://freetype.sourceforge.net/freetype2/index.html"> 1.1364 - the SourceForge FreeType2 Home Page 1.1365 - </a> 1.1366 - for more information. 1.1367 + Note that by default FreeType is built with byte code hinting 1.1368 + support disabled due to licensing restrictions. 1.1369 + In this case, text appearance and metrics are expected to 1.1370 + differ from Sun's official JDK build. 1.1371 + See 1.1372 + <a href="http://freetype.sourceforge.net/freetype2/index.html"> 1.1373 + the SourceForge FreeType2 Home Page 1.1374 + </a> 1.1375 + for more information. 1.1376 </blockquote> 1.1377 <!-- ------------------------------------------------------ --> 1.1378 <h4><a name="alsa">Advanced Linux Sound Architecture (ALSA) (Linux only)</a></h4> 1.1379 @@ -1195,25 +1223,25 @@ 1.1380 The makefiles will check this emit a sanity error if it is 1.1381 missing or the wrong version. 1.1382 <p> 1.1383 - In particular, older Linux systems will likely not have the 1.1384 - right version of ALSA installed, for example 1.1385 - Redhat AS 2.1 U2 and SuSE 8.1 do not include a sufficiently 1.1386 - recent ALSA distribution. 1.1387 - On rpm-based systems, you can see if ALSA is installed by 1.1388 - running this command: 1.1389 + In particular, older Linux systems will likely not have the 1.1390 + right version of ALSA installed, for example 1.1391 + Redhat AS 2.1 U2 and SuSE 8.1 do not include a sufficiently 1.1392 + recent ALSA distribution. 1.1393 + On rpm-based systems, you can see if ALSA is installed by 1.1394 + running this command: 1.1395 <pre> 1.1396 <tt>rpm -qa | grep alsa</tt> 1.1397 </pre> 1.1398 Both <tt>alsa</tt> and <tt>alsa-devel</tt> packages are needed. 1.1399 <p> 1.1400 - If your distribution does not come with ALSA, and you can't 1.1401 - find ALSA packages built for your particular system, 1.1402 - you can try to install the pre-built ALSA rpm packages from 1.1403 - <a href="http://www.freshrpms.net/" target="_blank"> 1.1404 - <tt>www.freshrpms.net</tt></a>. 1.1405 - Note that installing a newer ALSA could 1.1406 - break sound output if an older version of ALSA was previously 1.1407 - installed on the system, but it will enable JDK compilation. 1.1408 + If your distribution does not come with ALSA, and you can't 1.1409 + find ALSA packages built for your particular system, 1.1410 + you can try to install the pre-built ALSA rpm packages from 1.1411 + <a href="http://www.freshrpms.net/" target="_blank"> 1.1412 + <tt>www.freshrpms.net</tt></a>. 1.1413 + Note that installing a newer ALSA could 1.1414 + break sound output if an older version of ALSA was previously 1.1415 + installed on the system, but it will enable JDK compilation. 1.1416 <blockquote> 1.1417 Installation: execute as root<br> 1.1418 [i586]: <code>rpm -Uv --force alsa-lib-devel-0.9.1-rh61.i386.rpm</code><br> 1.1419 @@ -1228,7 +1256,7 @@ 1.1420 </blockquote> 1.1421 As a last resort you can go to the 1.1422 <a href="http://www.alsa-project.org" target="_blank"> 1.1423 - Advanced Linux Sound Architecture Site</a> and build it from 1.1424 + Advanced Linux Sound Architecture Site</a> and build it from 1.1425 source. 1.1426 <blockquote> 1.1427 Download driver and library 1.1428 @@ -1256,9 +1284,9 @@ 1.1429 building the JDK platform. To actually use ALSA sound drivers, more 1.1430 steps are necessary as outlined in the documentation on ALSA's homepage. 1.1431 <p> 1.1432 - ALSA can be uninstalled by executing <tt>make uninstall</tt> first in 1.1433 - the <tt>alsa-lib-0.9.1</tt> directory and then in 1.1434 - <tt>alsa-driver-0.9.1</tt>. 1.1435 + ALSA can be uninstalled by executing <tt>make uninstall</tt> first in 1.1436 + the <tt>alsa-lib-0.9.1</tt> directory and then in 1.1437 + <tt>alsa-driver-0.9.1</tt>. 1.1438 </blockquote> 1.1439 There are no ALT* variables to change the assumed locations of ALSA, 1.1440 the makefiles will expect to find the ALSA include files and library at: 1.1441 @@ -1273,15 +1301,15 @@ 1.1442 on Windows which can be supplied by 1.1443 <a href="http://www.cygwin.com" target="_blank">CYGWIN</a>. 1.1444 <p> 1.1445 - The OpenJDK build requires CYGWIN version 1.5.12 or newer. 1.1446 - Information about CYGWIN can 1.1447 - be obtained from the CYGWIN website at 1.1448 - <a href="http://www.cygwin.com" target="_blank">www.cygwin.com</a>. 1.1449 + The OpenJDK build requires CYGWIN version 1.5.12 or newer. 1.1450 + Information about CYGWIN can 1.1451 + be obtained from the CYGWIN website at 1.1452 + <a href="http://www.cygwin.com" target="_blank">www.cygwin.com</a>. 1.1453 <p> 1.1454 - By default CYGWIN doesn't install all the tools required for building 1.1455 - the OpenJDK. 1.1456 - Along with the default installation, you need to install 1.1457 - the following tools. 1.1458 + By default CYGWIN doesn't install all the tools required for building 1.1459 + the OpenJDK. 1.1460 + Along with the default installation, you need to install 1.1461 + the following tools. 1.1462 <blockquote> 1.1463 <table border="1"> 1.1464 <thead> 1.1465 @@ -1298,21 +1326,21 @@ 1.1466 <td>Devel</td> 1.1467 <td>binutils</td> 1.1468 <td>The GNU assembler, linker and binary 1.1469 - utilities</td> 1.1470 + utilities</td> 1.1471 </tr> 1.1472 <tr> 1.1473 <td>make.exe</td> 1.1474 <td>Devel</td> 1.1475 <td>make</td> 1.1476 <td>The GNU version of the 'make' utility built for CYGWIN.<br> 1.1477 - <b>NOTE</b>: See <a href="#gmake">the GNU make section</a></td> 1.1478 + <b>NOTE</b>: See <a href="#gmake">the GNU make section</a></td> 1.1479 </tr> 1.1480 <tr> 1.1481 <td>m4.exe</td> 1.1482 <td>Interpreters</td> 1.1483 <td>m4</td> 1.1484 <td>GNU implementation of the traditional Unix macro 1.1485 - processor</td> 1.1486 + processor</td> 1.1487 </tr> 1.1488 <tr> 1.1489 <td>cpio.exe</td> 1.1490 @@ -1354,21 +1382,21 @@ 1.1491 </table> 1.1492 </blockquote> 1.1493 <p> 1.1494 - Note that the CYGWIN software can conflict with other non-CYGWIN 1.1495 - software on your Windows system. 1.1496 - CYGWIN provides a 1.1497 - <a href="http://cygwin.com/faq/faq.using.html" target="_blank">FAQ</a> for 1.1498 - known issues and problems, of particular interest is the 1.1499 - section on 1.1500 - <a href="http://cygwin.com/faq/faq.using.html#faq.using.bloda" target="_blank"> 1.1501 - BLODA (applications that interfere with CYGWIN)</a>. 1.1502 + Note that the CYGWIN software can conflict with other non-CYGWIN 1.1503 + software on your Windows system. 1.1504 + CYGWIN provides a 1.1505 + <a href="http://cygwin.com/faq/faq.using.html" target="_blank">FAQ</a> for 1.1506 + known issues and problems, of particular interest is the 1.1507 + section on 1.1508 + <a href="http://cygwin.com/faq/faq.using.html#faq.using.bloda" target="_blank"> 1.1509 + BLODA (applications that interfere with CYGWIN)</a>. 1.1510 <p> 1.1511 - <b>WARNING:</b> 1.1512 - Be very careful with <b><tt>link.exe</tt></b>, it will conflict 1.1513 - with the Visual Studio version. You need the Visual Studio 1.1514 - version of <tt>link.exe</tt>, not the CYGWIN one. 1.1515 - So it's important that the Visual Studio paths in PATH preceed 1.1516 - the CYGWIN path <tt>/usr/bin</tt>. 1.1517 + <b>WARNING:</b> 1.1518 + Be very careful with <b><tt>link.exe</tt></b>, it will conflict 1.1519 + with the Visual Studio version. You need the Visual Studio 1.1520 + version of <tt>link.exe</tt>, not the CYGWIN one. 1.1521 + So it's important that the Visual Studio paths in PATH preceed 1.1522 + the CYGWIN path <tt>/usr/bin</tt>. 1.1523 </blockquote> 1.1524 <strong><a name="dxsdk">Microsoft DirectX 9.0 SDK header files and libraries</a></strong> 1.1525 <blockquote> 1.1526 @@ -1377,7 +1405,7 @@ 1.1527 OpenJDK. 1.1528 This SDK can be downloaded from 1.1529 <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=FD044A42-9912-42A3-9A9E-D857199F888E&displaylang=en" target="_blank"> 1.1530 - Microsoft DirectX 9.0 SDK (Summer 2004)</a>. 1.1531 + Microsoft DirectX 9.0 SDK (Summer 2004)</a>. 1.1532 If the link above becomes obsolete, the SDK can be found from 1.1533 <a href="http://download.microsoft.com" target="_blank">the Microsoft Download Site</a> 1.1534 (search with "DirectX 9.0 SDK Update Summer 2004"). 1.1535 @@ -1431,14 +1459,14 @@ 1.1536 </li> 1.1537 </ol> 1.1538 <p> 1.1539 - <strong>Solaris:</strong> 1.1540 - Note that ARCH_DATA_MODEL is really only needed on Solaris to 1.1541 - indicate you want to built the 64-bit version. 1.1542 - And before the Solaris 64-bit binaries can be used, they 1.1543 - must be merged with the binaries from a separate 32-bit build. 1.1544 - The merged binaries may then be used in either 32-bit or 64-bit mode, with 1.1545 - the selection occurring at runtime 1.1546 - with the <tt>-d32</tt> or <tt>-d64</tt> options. 1.1547 + <strong>Solaris:</strong> 1.1548 + Note that ARCH_DATA_MODEL is really only needed on Solaris to 1.1549 + indicate you want to built the 64-bit version. 1.1550 + And before the Solaris 64-bit binaries can be used, they 1.1551 + must be merged with the binaries from a separate 32-bit build. 1.1552 + The merged binaries may then be used in either 32-bit or 64-bit mode, with 1.1553 + the selection occurring at runtime 1.1554 + with the <tt>-d32</tt> or <tt>-d64</tt> options. 1.1555 </blockquote> 1.1556 <!-- ------------------------------------------------------ --> 1.1557 <hr> 1.1558 @@ -1450,37 +1478,39 @@ 1.1559 The default output directory is 1.1560 <tt>build/<i>platform</i></tt>, 1.1561 where <tt><i>platform</i></tt> is one of 1.1562 - <tt><ul> 1.1563 - <li>solaris-sparc</li> 1.1564 - <li>solaris-sparcv9</li> 1.1565 - <li>solaris-i586</li> 1.1566 - <li>solaris-amd64</li> 1.1567 - <li>linux-i586</li> 1.1568 - <li>linux-amd64</li> 1.1569 - <li>windows-i586</li> 1.1570 - <li>windows-amd64</li> 1.1571 - </ul></tt> 1.1572 + <blockquote> 1.1573 + <ul> 1.1574 + <li><tt>solaris-sparc</tt></li> 1.1575 + <li><tt>solaris-sparcv9</tt></li> 1.1576 + <li><tt>solaris-i586</tt></li> 1.1577 + <li><tt>solaris-amd64</tt></li> 1.1578 + <li><tt>linux-i586</tt></li> 1.1579 + <li><tt>linux-amd64</tt></li> 1.1580 + <li><tt>windows-i586</tt></li> 1.1581 + <li><tt>windows-amd64</tt></li> 1.1582 + </ul> 1.1583 + </blockquote> 1.1584 In particular, the 1.1585 <tt>build/<i>platform</i>/j2sdk-image/bin</tt> 1.1586 directory should contain executables for the 1.1587 OpenJDK tools and utilities. 1.1588 <p> 1.1589 - You can test that the build completed properly by using the build 1.1590 - to run the various demos that you will find in the 1.1591 - <tt>build/<i>platform</i>/j2sdk-image/demo</tt> 1.1592 - directory. 1.1593 + You can test that the build completed properly by using the build 1.1594 + to run the various demos that you will find in the 1.1595 + <tt>build/<i>platform</i>/j2sdk-image/demo</tt> 1.1596 + directory. 1.1597 <p> 1.1598 - The provided regression tests can be run with the <tt>jtreg</tt> 1.1599 - utility from 1.1600 - <a href="http://openjdk.java.net/jtreg/" target="_blank">the jtreg site</a>. 1.1601 + The provided regression tests can be run with the <tt>jtreg</tt> 1.1602 + utility from 1.1603 + <a href="http://openjdk.java.net/jtreg/" target="_blank">the jtreg site</a>. 1.1604 </blockquote> 1.1605 <!-- ------------------------------------------------------ --> 1.1606 <hr> 1.1607 <h2><a name="variables">Environment/Make Variables</a></h2> 1.1608 <p> 1.1609 - Some of the 1.1610 - environment or make variables (just called <b>variables</b> in this 1.1611 - document) that can impact the build are: 1.1612 + Some of the 1.1613 + environment or make variables (just called <b>variables</b> in this 1.1614 + document) that can impact the build are: 1.1615 <blockquote> 1.1616 <dl> 1.1617 <dt><a name="path"><tt>PATH</tt></a> </dt> 1.1618 @@ -1488,11 +1518,11 @@ 1.1619 <ul> 1.1620 <li>The location of the GNU make binary</li> 1.1621 <li>The location of the Bootstrap JDK <tt>java</tt> 1.1622 - (see <a href="#bootjdk">Bootstrap JDK</a>)</li> 1.1623 + (see <a href="#bootjdk">Bootstrap JDK</a>)</li> 1.1624 <li>The location of the C/C++ compilers 1.1625 - (see <a href="#compilers"><tt>compilers</tt></a>)</li> 1.1626 + (see <a href="#compilers"><tt>compilers</tt></a>)</li> 1.1627 <li>The location or locations for the Unix command utilities 1.1628 - (e.g. <tt>/usr/bin</tt>)</li> 1.1629 + (e.g. <tt>/usr/bin</tt>)</li> 1.1630 </ul> 1.1631 </dd> 1.1632 <dt><tt>MILESTONE</tt> </dt> 1.1633 @@ -1523,14 +1553,6 @@ 1.1634 You should always install your own local Bootstrap JDK and 1.1635 always set <tt>ALT_BOOTDIR</tt> explicitly. 1.1636 </dd> 1.1637 - <dt><a name="ALT_BINARY_PLUGS_PATH"><tt>ALT_BINARY_PLUGS_PATH</tt></a></dt> 1.1638 - <dd> 1.1639 - The location of the binary plugs installation. 1.1640 - See <a href="#binaryplugs">Binary Plugs</a> for more information. 1.1641 - You should always have a local copy of a 1.1642 - recent Binary Plugs install image 1.1643 - and set this variable to that location. 1.1644 - </dd> 1.1645 <dt><a name="ALT_JDK_IMPORT_PATH"><tt>ALT_JDK_IMPORT_PATH</tt></a></dt> 1.1646 <dd> 1.1647 The location of a previously built JDK installation. 1.1648 @@ -1627,36 +1649,19 @@ 1.1649 Where each of these directories contain the import JDK image 1.1650 for that platform. 1.1651 </dd> 1.1652 - <dt><a name="ALT_BUILD_BINARY_PLUGS_PATH"><tt>ALT_BUILD_BINARY_PLUGS_PATH</tt></a></dt> 1.1653 - <dd> 1.1654 - These are useful in managing builds on multiple platforms. 1.1655 - The default network location for all of the binary plug images 1.1656 - for all platforms. 1.1657 - If <tt><a href="#ALT_BINARY_PLUGS_PATH">ALT_BINARY_PLUGS_PATH</a></tt> 1.1658 - is not set, this directory will be used and should contain 1.1659 - the following directories: 1.1660 - <tt>solaris-sparc</tt>, 1.1661 - <tt>solaris-i586</tt>, 1.1662 - <tt>solaris-sparcv9</tt>, 1.1663 - <tt>solaris-amd64</tt>, 1.1664 - <tt>linux-i586</tt>, 1.1665 - <tt>linux-amd64</tt>, 1.1666 - <tt>windows-i586</tt>, 1.1667 - and 1.1668 - <tt>windows-amd64</tt>. 1.1669 - Where each of these directories contain the binary plugs image 1.1670 - for that platform. 1.1671 - </dd> 1.1672 <dt><strong>Windows specific:</strong></dt> 1.1673 <dd> 1.1674 <dl> 1.1675 - <dt><a name="ALT_MSDEVTOOLS_PATH"><tt>ALT_MSDEVTOOLS_PATH</tt></a> </dt> 1.1676 + <dt><a name="ALT_WINDOWSSDKDIR"><tt>ALT_WINDOWSSDKDIR</tt></a> </dt> 1.1677 <dd> 1.1678 The location of the 1.1679 - Microsoft Visual Studio 1.1680 - tools 'bin' directory. 1.1681 - The default is usually derived from 1.1682 - <a href="#ALT_COMPILER_PATH"><tt>ALT_COMPILER_PATH</tt></a>. 1.1683 + Microsoft Windows SDK where some tools will be 1.1684 + located. 1.1685 + The default is whatever WINDOWSSDKDIR is set to 1.1686 + (or WindowsSdkDir) or the path 1.1687 + <pre> 1.1688 + c:\Program Files\Microsoft SDKs\Windows\v6.1a 1.1689 + </pre> 1.1690 </dd> 1.1691 <dt><tt><a name="ALT_DXSDK_PATH">ALT_DXSDK_PATH</a></tt> </dt> 1.1692 <dd> 1.1693 @@ -1694,17 +1699,17 @@ 1.1694 Look for the check list of the platform you are building on in the 1.1695 <a href="#contents">Table of Contents</a>. 1.1696 <p> 1.1697 - You can validate your build environment by using the <tt>sanity</tt> 1.1698 - target. 1.1699 - Any errors listed 1.1700 - will stop the build from starting, and any warnings may result in 1.1701 - a flawed product build. 1.1702 - We strongly encourage you to evaluate every 1.1703 - sanity check warning and fix it if required, before you proceed 1.1704 - further with your build. 1.1705 + You can validate your build environment by using the <tt>sanity</tt> 1.1706 + target. 1.1707 + Any errors listed 1.1708 + will stop the build from starting, and any warnings may result in 1.1709 + a flawed product build. 1.1710 + We strongly encourage you to evaluate every 1.1711 + sanity check warning and fix it if required, before you proceed 1.1712 + further with your build. 1.1713 <p> 1.1714 - Some of the more common problems with builds are briefly described 1.1715 - below, with suggestions for remedies. 1.1716 + Some of the more common problems with builds are briefly described 1.1717 + below, with suggestions for remedies. 1.1718 <ul> 1.1719 <li> 1.1720 <b>Slow Builds:</b> 1.1721 @@ -1715,15 +1720,15 @@ 1.1722 machine, setting it to more than the the number of CPUs is probably 1.1723 not a good idea). 1.1724 <p> 1.1725 - Creating the javadocs can be very slow, if you are running 1.1726 - javadoc, consider skipping that step. 1.1727 + Creating the javadocs can be very slow, if you are running 1.1728 + javadoc, consider skipping that step. 1.1729 <p> 1.1730 - Faster hardware and more RAM always helps too. 1.1731 - The VM build tends to be CPU intensive (many C++ compiles), 1.1732 - and the rest of the JDK will often be disk intensive. 1.1733 + Faster hardware and more RAM always helps too. 1.1734 + The VM build tends to be CPU intensive (many C++ compiles), 1.1735 + and the rest of the JDK will often be disk intensive. 1.1736 <p> 1.1737 - Faster compiles are possible using a tool called 1.1738 - <a href="http://ccache.samba.org/" target="_blank">ccache</a>. 1.1739 + Faster compiles are possible using a tool called 1.1740 + <a href="http://ccache.samba.org/" target="_blank">ccache</a>. 1.1741 </blockquote> 1.1742 </li> 1.1743 <li> 1.1744 @@ -1732,10 +1737,10 @@ 1.1745 If you see warnings that refer to file time stamps, e.g. 1.1746 <blockquote> 1.1747 <i>Warning message:</i><tt> File `xxx' has modification time in 1.1748 - the future.</tt> 1.1749 + the future.</tt> 1.1750 <br> 1.1751 <i>Warning message:</i> <tt> Clock skew detected. Your build may 1.1752 - be incomplete.</tt> 1.1753 + be incomplete.</tt> 1.1754 </blockquote> 1.1755 These warnings can occur when the clock on the build machine is out of 1.1756 sync with the timestamps on the source files. Other errors, apparently 1.1757 @@ -1747,9 +1752,9 @@ 1.1758 when the pre-1.4 compiler ran across the new <tt>assert</tt> keyword 1.1759 in the 1.4 source code. 1.1760 <p> 1.1761 - If you see these warnings, reset the clock on the build 1.1762 - machine, run "<tt><i>gmake</i> clobber</tt>" or delete the directory 1.1763 - containing the build output, and restart the build from the beginning. 1.1764 + If you see these warnings, reset the clock on the build 1.1765 + machine, run "<tt><i>gmake</i> clobber</tt>" or delete the directory 1.1766 + containing the build output, and restart the build from the beginning. 1.1767 </blockquote> 1.1768 </li> 1.1769 <li> 1.1770 @@ -1776,32 +1781,28 @@ 1.1771 <blockquote> 1.1772 This is probably an issue with SELinux (See 1.1773 <a href="http://en.wikipedia.org/wiki/SELinux" target="_blank"> 1.1774 - http://en.wikipedia.org/wiki/SELinux</a>). 1.1775 + http://en.wikipedia.org/wiki/SELinux</a>). 1.1776 Parts of the VM is built without the <tt>-fPIC</tt> for 1.1777 performance reasons. 1.1778 <p> 1.1779 - To completely disable SELinux: 1.1780 - <tt> 1.1781 - <ol> 1.1782 - <li>$ su root</li> 1.1783 - <li># system-config-securitylevel</li> 1.1784 - <li>In the window that appears, select the SELinux tab</li> 1.1785 - <li>Disable SELinux</li> 1.1786 - </ol> 1.1787 - </tt> 1.1788 + To completely disable SELinux: 1.1789 + <ol> 1.1790 + <li><tt>$ su root</tt></li> 1.1791 + <li><tt># system-config-securitylevel</tt></li> 1.1792 + <li><tt>In the window that appears, select the SELinux tab</tt></li> 1.1793 + <li><tt>Disable SELinux</tt></li> 1.1794 + </ol> 1.1795 <p> 1.1796 - Alternatively, instead of completely disabling it you could 1.1797 - disable just this one check. 1.1798 - <tt> 1.1799 - <ol> 1.1800 - <li>Select System->Administration->SELinux Management</li> 1.1801 - <li>In the SELinux Management Tool which appears, 1.1802 + Alternatively, instead of completely disabling it you could 1.1803 + disable just this one check. 1.1804 + <ol> 1.1805 + <li>Select System->Administration->SELinux Management</li> 1.1806 + <li>In the SELinux Management Tool which appears, 1.1807 select "Boolean" from the menu on the left</li> 1.1808 - <li>Expand the "Memory Protection" group</li> 1.1809 - <li>Check the first item, labeled 1.1810 + <li>Expand the "Memory Protection" group</li> 1.1811 + <li>Check the first item, labeled 1.1812 "Allow all unconfined executables to use libraries requiring text relocation ..."</li> 1.1813 - </ol> 1.1814 - </tt> 1.1815 + </ol> 1.1816 </blockquote> 1.1817 </li> 1.1818 <li> 1.1819 @@ -1810,7 +1811,7 @@ 1.1820 The CYGWIN software can conflict with other non-CYGWIN 1.1821 software. See the CYGWIN FAQ section on 1.1822 <a href="http://cygwin.com/faq/faq.using.html#faq.using.bloda" target="_blank"> 1.1823 - BLODA (applications that interfere with CYGWIN)</a>. 1.1824 + BLODA (applications that interfere with CYGWIN)</a>. 1.1825 </blockquote> 1.1826 </li> 1.1827 <li>