jdk/make/README-builds.html
author mcimadamore
Tue, 04 Mar 2008 15:45:20 +0000
changeset 165 1875ac59896a
parent 2 90ce3da70b43
permissions -rw-r--r--
6663588: Compiler goes into infinite loop for Cyclic Inheritance test case Summary: interplay between cyclic inheritance and tvar bounds hangs javac Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
<html>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
<head><title>OpenJDK Build README</title></head>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
<!-- ------------------------------------------------------ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
<hr noshade="noshade" size="3">
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
<center>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
    <h1>OpenJDK Build README</h1>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
</center>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
<!-- ------------------------------------------------------ --> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
<hr noshade="noshade" size="3">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
<h2><a name="introduction">Introduction</a></h2>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
    This README file contains build instructions for the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
    <a href="http://openjdk.java.net">OpenJDK</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
    Building the source code for the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
    OpenJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
    requires
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
    a certain degree of technical expertise.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
<!-- ------------------------------------------------------ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
<hr noshade="noshade" size="3">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
<h2><a name="contents">Contents</a></h2>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
    <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
        <li><a href="#introduction">Introduction</a></li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
        <li><a href="#MBE">Minimum Build Environments</a></li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
        <li><a href="#SDBE">Specific Developer Build Environments</a></li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
        <li><a href="#directories">Source Directory Structure</a> </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
        <li><a href="#building">Build Information</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
            <ul type="disc">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
                <li><a href="#gmake">GNU Make (<tt><i>gmake</i></tt>)</a> </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
                <li><a href="#linux">Basic Linux System Setup</a> </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
                <li><a href="#solaris">Basic Solaris System Setup</a> </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
                <li><a href="#windows">Basic Windows System Setup</a> </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
                <li><a href="#dependencies">Build Dependencies</a> </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
                <ul type="disc">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
                    <li><a href="#bootjdk">Bootstrap JDK</a> </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
                    <li><a href="#binaryplugs">Binary Plugs</a> </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
                    <li><a href="#cacerts">Certificate Authority File (cacert)</a> </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
                    <li><a href="#compilers">Compilers</a> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
                        <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
                            <li><a href="#msvc">Microsoft Visual Studio</a> </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
                            <li><a href="#mssdk">Microsoft Platform SDK</a> </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
                            <li><a href="#gcc">Linux gcc/binutils</a> </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
                            <li><a href="#studio">Sun Studio</a> </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
                        </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
                    </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
                    <li>Linux and Solaris:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
                        <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
                            <li><a href="#cups">CUPS Include files</a> </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
                        </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
                    </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
                    <li>Windows only:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
                        <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
                            <li>Unix Command Tools (<a href="#cygwin">CYGWIN</a>)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
                            <li><a href="#dxsdk">DirectX 9.0 SDK</a> </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
                        </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
                    </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
                </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
            </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
        <li><a href="#creating">Creating the Build</a> </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
        <li><a href="#testing">Testing the Build</a> </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
        <li><a href="#variables">Environment/Make Variables</a></li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
        <li><a href="#troubleshooting">Troubleshooting</a></li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
<!-- ------------------------------------------------------ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
<hr noshade="noshade" size="3">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
<h2><a name="MBE">Minimum Build Environments</a></h2>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
    This file often describes specific requirements for what we call the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    "minimum build environments" (MBE) for the JDK.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
    Building with the MBE will generate the most compatible
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    bits that install on, and run correctly on, the most variations
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
    of the same base OS and hardware architecture.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
    These usually represent what is often called the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
    least common denominator platforms.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    It is understood that most developers will NOT be using these 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
    specific platforms, and in fact creating these specific platforms
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    may be difficult due to the age of some of this software.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
    The minimum OS and C/C++ compiler versions needed for building the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
    OpenJDK:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    <center>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
        <table border="1">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
            <thead>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
                <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
                    <th>Base OS and Architecture</th>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
                    <th>OS</th>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
                    <th>Compiler</th>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
                </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
            </thead>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
            <tbody>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
                <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
                    <td>Linux X86 (32bit)</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
                    <td>Red Hat Enterprise Linux 4 </td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
                    <td>gcc 4 </td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
                </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
                <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
                    <td>Linux X64 (64bit)</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
                    <td>Red Hat Enterprise Linux 4 </td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
                    <td>gcc 4 </td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
                </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
                <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
                    <td>Solaris SPARC (32bit)</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
                    <td>Solaris 10 + patches 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
                        <br>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
                        See <a href="http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/JavaSE">SunSolve</a> for patch downloads.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
                    </td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
                    <td>Sun Studio 11 </td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
                </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
                <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
                    <td>Solaris SPARCV9 (64bit)</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
                    <td>Solaris 10 + patches
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
                        <br>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
                        See <a href="http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/JavaSE">SunSolve</a> for patch downloads.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
                    </td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
                    <td>Sun Studio 11</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
                </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
                <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
                    <td>Solaris X86 (32bit)</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
                    <td>Solaris 10 + patches
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
                        <br>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
                        See <a href="http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/JavaSE">SunSolve</a> for patch downloads.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
                    </td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
                    <td>Sun Studio 11</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
                </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
                <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
                    <td>Solaris X64 (64bit)</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
                    <td>Solaris 10 + patches
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
                        <br>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
                        See <a href="http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/JavaSE">SunSolve</a> for patch downloads.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
                    </td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
                    <td>Sun Studio 11</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
                </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
                <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
                    <td>Windows X86 (32bit)</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
                    <td>Windows XP</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
                    <td>Microsoft Visual Studio .NET 2003 Professional</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
                </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
                <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
                    <td>Windows X64 (64bit)</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
                    <td>Windows Server 2003 - Enterprise x64 Edition</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
                    <td>Microsoft Platform SDK - April 2005</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
                </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
            </tbody>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
        </table>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
    </center>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
<!-- ------------------------------------------------------ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
<hr noshade="noshade" size="3">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
<h2><a name="SDBE">Specific Developer Build Environments</a></h2>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
    We won't be listing all the possible environments, but
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    we will try to provide what information we have available to us.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
<h3><a name="fedora">Fedora</a></h3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
    TBD
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
<h3><a name="debian">Debian</a></h3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
    TBD
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
<h3><a name="ubuntu">Ubuntu</a></h3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
    In addition to needing the Bootstrap JDK and the Binary Plugs, 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
    when building on Ubuntu you will need to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
    make sure certain packages are installed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
    In particular, certain X11 packages, make, m4, gawk, gcc 4, 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
    binutils, cups, freetype
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
    and alsa.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
    <h4>Ubuntu 6.06</h4>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
    The following list of packages for Ubuntu 6.06 is a working set that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
    does appear to work. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
    <b>Note that it's quite possible that some of these
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
        packages are not required, so anyone discovering that some of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
        packages listed below are NOT required,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
        please let the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
        OpenJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
    team know.</b>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
    All the packages below can be installed with the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
    Synaptic Package manager provided with the base Ubuntu 6.06 release.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
    <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
        <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
            <li>binutils (2.16.1cvs20060117-1ubuntu2.1)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
            <li>cpp (4:4.0.3-1)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
            <li>cpp-4.0 (4.0.3-1ubuntu5)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
            <li>libfreetype6-dev</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
            <li>g++ (4:4.0.3-1)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
            <li>g++-4.0 (4.0.3-1ubuntu5)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
            <li>gawk (1:3.1.5-2build1)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
            <li>gcc (4:4.0.3-1)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
            <li>gcc-4.0 (4.0.3-1ubuntu5)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
            <li>libasound2-dev (1.0.10-2ubuntu4)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
            <li>libc6 (2.3.6-0ubuntu20) to 2.3.6-0ubuntu20.4</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
            <li>libc6-dev (2.3.6-0ubuntu20.4)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
            <li>libc6-i686 (2.3.6-0ubuntu20) to 2.3.6-0ubuntu20.4</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
            <li>libcupsys2-dev (1.2.2-0ubuntu0.6.06)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
            <li>libgcrypt11-dev (1.2.2-1)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
            <li>libgnutls-dev (1.2.9-2ubuntu1.1)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
            <li>libgnutls12 (1.2.9-2ubuntu1) to 1.2.9-2ubuntu1.1</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
            <li>libgpg-error-dev (1.1-4)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
            <li>libice-dev (2:1.0.0-0ubuntu2)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
            <li>liblockfile1 (1.06.1)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
            <li>libopencdk8-dev (0.5.7-2)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
            <li>libpopt-dev (1.7-5)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
            <li>libsm-dev (2:1.0.0-0ubuntu2)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
            <li>libstdc++6-4.0-dev (4.0.3-1ubuntu5)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
            <li>libtasn1-2-dev (0.2.17-1ubuntu1)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
            <li>libx11-dev (2:1.0.0-0ubuntu9)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
            <li>libxau-dev (1:1.0.0-0ubuntu4)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
            <li>libxaw-headers (2:1.0.1-0ubuntu3)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
            <li>libxaw7-dev (2:1.0.1-0ubuntu3)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
            <li>libxdmcp-dev (1:1.0.0-0ubuntu2)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
            <li>libxext-dev (2:1.0.0-0ubuntu4)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
            <li>libxi-dev (2:1.0.0-0ubuntu3) </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
            <li>libxmu-dev (2:1.0.0-0ubuntu3)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
            <li>libxmu-headers (2:1.0.0-0ubuntu3)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
            <li>libxmuu-dev (2:1.0.0-0ubuntu3)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
            <li>libxp-dev (6.8.2-11ubuntu2)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
            <li>libxpm-dev (1:3.5.4.2-0ubuntu3)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
            <li>libxrandr-dev (1:1.1.0.2-0ubuntu4)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
            <li>libxt-dev (1:1.0.0-0ubuntu3)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
            <li>libxtrap-dev (2:1.0.0-0ubuntu2)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
            <li>libxtst-dev (2:1.0.1-0ubuntu2)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
            <li>libxv-dev (2:1.0.1-0ubuntu3)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
            <li>linux-kernel-headers (2.6.11.2-0ubuntu18)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
            <li>m4 (1.4.4-1)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
            <li>make (3.80+3.81.b4-1)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
            <li>ssl-cert (1.0.13)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
            <li>x-dev (7.0.4-0ubuntu2)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
            <li>x11proto-core-dev (7.0.4-0ubuntu2)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
            <li>x11proto-input-dev (1.3.2-0ubuntu2)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
            <li>x11proto-kb-dev (1.0.2-0ubuntu2)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
            <li>x11proto-randr-dev (1.1.2-0ubuntu2)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
            <li>x11proto-record-dev (1.13.2-0ubuntu2)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
            <li>x11proto-trap-dev (3.4.3-0ubuntu2)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
            <li>x11proto-video-dev (2.2.2-0ubuntu2)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
            <li>x11proto-xext-dev (7.0.2-0ubuntu2)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
            <li>xlibs-dev (7.0.0-0ubuntu45)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
            <li>zlib1g-dev (1:1.2.3-6ubuntu4)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
        </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
    </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
    <h4>Ubuntu 7.04</h4>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
    Using the Synaptic Package Manager, download the following
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
    packages (double indented packages are automatically aquired
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
    due to package dependencies):
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
    <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
        <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
            <li>build-essential</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
            <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
                <li>dpkg-dev</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
                <li>g++</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
                <li>g++-4.1</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
                <li>libc6-dev</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
                <li>libstdc++6.4.1-dev</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
                <li>linux-libc-dev</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
            </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
            <li>gawk</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
            <li>m4</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
            <li>libasound2-dev</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
            <li>libcupsys2-dev</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
            <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
                <li>libgcrypt11-dev</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
                <li>lgnutls-dev</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
                <li>libgpg-error-dev</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
                <li>liblzo-dev</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
                <li>libopencdk8-dev</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
                <li>libpopt-dev</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
                <li>libtasn1-3-dev</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
                <li>zlib1g-dev</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
            </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
            <li>sun-java6-jdk</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
            <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
                <li>java-common</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
                <li>libltdl3</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
                <li>odbcinst1debian1</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
                <li>sun-java6-bin</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
                <li>sun-java6-jre</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
                <li>unixodbc</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
            </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
            <li>xlibs-dev</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
            <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
                <li>(many)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
            </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
            <li>x11proto-print-dev</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
            <li>libxaw7-dev</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
            <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
                <li>libxaw-headers</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
            </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
            <li>libxp-dev</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
            <li>libfreetype6-dev</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
        </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
    </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
<!-- ------------------------------------------------------ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
<hr noshade="noshade" size="3">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
<h2><a name="directories">Source Directory Structure</a></h2>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
    The source code for the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
    OpenJDK is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
    delivered in <i>3</i> sibling directories:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
    <tt>hotspot</tt>, 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
    <tt>langtools</tt>, 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
    <tt>corba</tt>, 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
    <tt>jaxws</tt>, 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
    <tt>jaxp</tt>, 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
    <tt>jdk</tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
    and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
    The <tt>hotspot</tt> directory contains the source code and make
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
    files for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
    building the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
    OpenJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
    Hotspot Virtual Machine. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
    The <tt>jdk</tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
    directory contains the source code and make files for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
    building the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
    OpenJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
    runtime libraries, tools and demos. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
    The top level Makefile is used to build the complete OpenJDK 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
    release including building the hotspot
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
    VM, staging the VM binaries, and building the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
    OpenJDK 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
    runtime libraries,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
    tools and demos.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
<!-- ------------------------------------------------------ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
<hr noshade="noshade" size="3">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
<h2><a name="building">Build Information</a></h2>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
    Building the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
    OpenJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
    is done with a <tt><i>gmake</i></tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
    command line and various
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
    environment or make variable settings that direct the make rules
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
    to where various components have been installed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
    Where possible the makefiles will attempt to located the various
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
    components in the default locations or any component specific 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
    variable settings.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
    When the normal defaults fail or components cannot be found,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
    the various
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
    <tt>ALT_*</tt> variables (alternates)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
    can be used to help the makefiles locate components.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
    Refer to the bash/sh/ksh setup file
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
    <tt>jdk/make/jdk_generic_profile.sh</tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
    if you need help in setting up your environment variables.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
    A build could be as simple as:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
    <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
        <pre><tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
                bash
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
                . jdk/make/jdk_generic_profile.sh
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
                <i>gmake</i> sanity &amp;&amp; <i>gmake</i>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
        </tt></pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
    </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
    Of course ksh or sh would work too.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
    But some customization will probably be necessary.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
    The <tt>sanity</tt> rule will make some basic checks on build
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
    dependencies and generate appropriate warning messages
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
    regarding missing, out of date, or newer than expected components
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
    found on your system.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
<!-- ------------------------------------------------------ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
<hr noshade="noshade" size="3">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
<h3><a name="gmake">GNU make (<tt><i>gmake</i></tt>)</a></h3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
    The Makefiles in the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
    OpenJDK 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
    are only valid when used with the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
    GNU version of the utility command <tt>make</tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
    (<tt><i>gmake</i></tt>).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
    A few notes about using GNU make:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
    <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
            In general, you need GNU make version 3.78.1 or newer.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
            Place the location of the GNU make binary in the <tt>PATH</tt>. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
            <strong>Linux:</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
            The <tt>/usr/bin/make</tt> command should work fine for you.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
            <strong>Solaris:</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
            Do NOT use <tt>/usr/bin/make</tt> on Solaris.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
            If your Solaris system has the software
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
            from the Solaris Companion CD installed, 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
            you should use <tt>gmake</tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
            which will be located in either the <tt>/opt/sfw/bin</tt> or 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
            <tt>/usr/sfw/bin</tt> directory.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
            <strong>Windows:</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
            Make sure you start your build inside a bash/sh/ksh shell.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
            <br>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
            <b>WARNING:</b> Watch out for make version 3.81, it may
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
            not work due to a lack of support for drive letter paths
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
            like <tt>C:/</tt>. Use a 3.80 version, or find a newer
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
            version that has this problem fixed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
    </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
    Information on GNU make, and access to ftp download sites, are
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
    available on the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
    <a href="http://www.gnu.org/software/make/make.html">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
        GNU make web site
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
    </a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
    The latest source to GNU make is available at
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
    <a href="http://ftp.gnu.org/pub/gnu/make/">ftp.gnu.org/pub/gnu/make/</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
<!-- ------------------------------------------------------ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
<hr noshade="noshade" size="3">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
<h3><a name="linux">Basic Linux System Setup</a></h3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
    <strong>i586 only:</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
    The minimum recommended hardware for building the Linux version
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
    is a Pentium class processor or better, at least 256 MB of RAM, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
    approximately 1.5 GB of free disk space.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
    <p> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
    <strong>X64 only:</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
    The minimum recommended hardware for building the Linux
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
    version is an AMD Opteron class processor, at least 512 MB of RAM, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
    approximately 4 GB of free disk space.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
    <p> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
    The build will use the tools contained in 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
    <tt>/bin</tt> and 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
    <tt>/usr/bin</tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
    of a standard installation of the Linux operating environment. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
    You should ensure that these directories are in your 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
    <tt>PATH</tt>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
    Note that some Linux systems have a habit of pre-populating
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
    your environment variables for you, for example <tt>JAVA_HOME</tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
    might get pre-defined for you to refer to the JDK installed on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
    your Linux system. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
    You will need to unset <tt>JAVA_HOME</tt>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
    It's a good idea to run <tt>env</tt> and verify the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
    environment variables you are getting from the default system
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
    settings make sense for building the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
    OpenJDK.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
<!-- ------------------------------------------------------ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
<h4><a name="linux_checklist">Basic Linux Check List</a></h4>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
    <ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
            Install the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
            <a href="#bootjdk">Bootstrap JDK</a>, set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
            <tt><a href="#ALT_BOOTDIR">ALT_BOOTDIR</a></tt>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
            Install the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
            <a href="#binaryplugs">Binary Plugs</a>, set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
            <tt><a href="#ALT_BINARY_PLUGS_PATH">ALT_BINARY_PLUGS_PATH</a></tt>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
            Install or upgrade the <a href="#freetype">FreeType development
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
            package</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
    </ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
<!-- ------------------------------------------------------ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
<hr noshade="noshade" size="3">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
<h3><a name="solaris">Basic Solaris System Setup</a></h3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   531
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
    The minimum recommended hardware for building the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
    Solaris SPARC version is an UltraSPARC with 512 MB of RAM. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
    For building
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
    the Solaris x86 version, a Pentium class processor or better and at
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
    least 128 MB of RAM are recommended. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
    Approximately 1.4 GB of free disk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
    space is needed for a 32-bit build.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
    If you are building the 64bit version, you should
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
    run the command "isainfo -v" to verify that you have a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
    64-bit installation. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
    An additional 7 GB of free disk space is needed
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
    for a 64-bit build.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
    <p> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
    The build uses the tools contained in <tt>/usr/ccs/bin</tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
    and <tt>/usr/bin</tt> of a standard developer or full installation of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
    the Solaris operating environment.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
<!-- ------------------------------------------------------ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
<h4><a name="solaris_checklist">Basic Solaris Check List</a></h4>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
90ce3da70b43 Initial load
duke
parents:
diff changeset
   555
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   556
    <ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   557
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558
            Install the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   559
            <a href="#bootjdk">Bootstrap JDK</a>, set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
            <tt><a href="#ALT_BOOTDIR">ALT_BOOTDIR</a></tt>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   562
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
            Install the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   564
            <a href="#binaryplugs">Binary Plugs</a>, set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   565
            <tt><a href="#ALT_BINARY_PLUGS_PATH">ALT_BINARY_PLUGS_PATH</a></tt>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   566
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   567
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   568
            Install the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   569
            <a href="#studio">Sun Studio Compilers</a>, set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   570
            <a href="#ALT_COMPILER_PATH"><tt>ALT_COMPILER_PATH</tt></a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   571
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   572
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   573
            Install the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   574
            <a href="#cups">CUPS Include files</a>, set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   575
            <tt><a href="#ALT_CUPS_HEADERS_PATH">ALT_CUPS_HEADERS_PATH</a></tt>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   576
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   577
    </ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   578
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   579
90ce3da70b43 Initial load
duke
parents:
diff changeset
   580
<!-- ------------------------------------------------------ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
<hr noshade="noshade" size="3">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   582
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
<h3><a name="windows">Basic Windows System Setup</a></h3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   584
90ce3da70b43 Initial load
duke
parents:
diff changeset
   585
<blockquote> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   586
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   587
    <strong>i586 only:</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
    The minimum recommended hardware for building the 32bit or X86
90ce3da70b43 Initial load
duke
parents:
diff changeset
   589
    Windows version is an Pentium class processor or better, at least
90ce3da70b43 Initial load
duke
parents:
diff changeset
   590
    512 MB of RAM, and approximately 600 MB of free disk space.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   591
    <strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   592
        NOTE: The Windows 2000 build machines need to use the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   593
        file system NTFS. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   594
        Build machines formatted to FAT32 will not work 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   595
        because FAT32 doesn't support case-sensitivity in file names.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   596
    </strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   597
    <p> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   598
    <strong>X64 only:</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   599
    The minimum recommended hardware for building
90ce3da70b43 Initial load
duke
parents:
diff changeset
   600
    the Windows X64 version is an AMD Opteron class processor, at least 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
    GB of RAM, and approximately 10 GB of free disk space.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   602
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
<!-- ------------------------------------------------------ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
<h4><a name="paths">Windows Paths</a></h4>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   607
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   609
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   610
    <strong>Windows:</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   611
    Note that GNU make is a historic utility and is based very
90ce3da70b43 Initial load
duke
parents:
diff changeset
   612
    heavily on shell scripting, so it does not tolerate the Windows habit
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
    of having spaces in pathnames or the use of the <tt>\</tt>characters in pathnames.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
    Luckily on most Windows systems, you can use <tt>/</tt>instead of \, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
    there is always a 'short' pathname without spaces for any path that 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
    contains spaces.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   617
    Unfortunately, this short pathname can be somewhat dynamic and the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
    formula is difficult to explain.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
    You can use <tt>cygpath</tt> utility to map pathnames with spaces
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
    or the <tt>\</tt>character into the <tt>C:/</tt> style of pathname
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
    (called 'mixed'), e.g.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
    <tt>cygpath -s -m "<i>path</i>"</tt>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   623
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   624
    The makefiles will try to translate any pathnames supplied
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
    to it into the <tt>C:/</tt> style automatically.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   627
    Note that use of CYGWIN creates a unique problem with regards to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
    setting <a href="#path"><tt>PATH</tt></a>. Normally on Windows
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
    the <tt>PATH</tt> variable contains directories
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
    separated with the ";" character (Solaris and Linux uses ":").
90ce3da70b43 Initial load
duke
parents:
diff changeset
   631
    With CYGWIN, it uses ":", but that means that paths like "C:/path"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   632
    cannot be placed in the CYGWIN version  of <tt>PATH</tt> and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   633
    instead CYGWIN uses something like <tt>/cygdrive/c/path</tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   634
    which CYGWIN understands, but only CYGWIN understands.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   635
    So be careful with paths on Windows.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   637
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
<!-- ------------------------------------------------------ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
90ce3da70b43 Initial load
duke
parents:
diff changeset
   640
<h4><a name="windows_checklist">Basic Windows Check List</a></h4>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
90ce3da70b43 Initial load
duke
parents:
diff changeset
   642
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
    <ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
            Install the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   646
            <a href="#cygwin">CYGWIN product</a>. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   647
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   648
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   649
            Install the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   650
            <a href="#bootjdk">Bootstrap JDK</a>, set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   651
            <tt><a href="#ALT_BOOTDIR">ALT_BOOTDIR</a></tt>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   652
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   653
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   654
            Install the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   655
            <a href="#binaryplugs">Binary Plugs</a>, set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
            <tt><a href="#ALT_BINARY_PLUGS_PATH">ALT_BINARY_PLUGS_PATH</a></tt>..
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   659
            Install the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   660
            <a href="#msvc">Microsoft Visual Studio .NET 2003 Professional</a> or the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   661
            <a href="#mssdk">Microsoft Platform SDK</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   662
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   663
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   664
            Setup all environment variables for compilers 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   665
            (see <a href="#msvc">compilers</a>).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   666
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   667
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   668
            Install 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   669
            <a href="#dxsdk">Microsoft DirectX SDK</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   670
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   671
    </ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   672
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   673
90ce3da70b43 Initial load
duke
parents:
diff changeset
   674
<!-- ------------------------------------------------------ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   675
<hr noshade="noshade" size="3">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   676
90ce3da70b43 Initial load
duke
parents:
diff changeset
   677
<h3><a name="dependencies">Build Dependencies</a></h3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   678
90ce3da70b43 Initial load
duke
parents:
diff changeset
   679
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   680
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   681
    Depending on the platform, the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   682
    OpenJDK 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   683
    build process has some basic
90ce3da70b43 Initial load
duke
parents:
diff changeset
   684
    dependencies on components not part of the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   685
    OpenJDK 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   686
    sources.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   687
    Some of these are specific to a platform, some even specific to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   688
    an architecture.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   689
    Each dependency will have a set of ALT variables that can be set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   690
    to tell the makefiles where to locate the component.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   691
    In most cases setting these ALT variables may not be necessary
90ce3da70b43 Initial load
duke
parents:
diff changeset
   692
    and the makefiles will find defaults on the system in standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
   693
    install locations or through component specific variables.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   694
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   695
    <h4><a name="bootjdk">Bootstrap JDK</a></h4>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   696
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   697
    <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   698
        <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   699
        All 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   700
        OpenJDK 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   701
        builds require access to the previously released 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   702
        JDK 6, this is often called a bootstrap JDK.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   703
        The JDK 6 binaries can be downloaded from Sun's 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   704
        <a href="http://java.sun.com/javase/1.6.0/download.html">JDK 6 download site</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   705
        For build performance reasons
90ce3da70b43 Initial load
duke
parents:
diff changeset
   706
        is very important that this bootstrap JDK be made available on the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   707
        local disk of the machine doing the build.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   708
        You should always set 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   709
        <tt><a href="#ALT_BOOTDIR">ALT_BOOTDIR</a></tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   710
        to point to the location of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   711
        the bootstrap JDK installation, this is the directory pathname
90ce3da70b43 Initial load
duke
parents:
diff changeset
   712
        that contains a <tt>bin, lib, and include</tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   713
        It's also a good idea to also place its <tt>bin</tt> directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   714
        in the <tt>PATH</tt> environment variable, although it's
90ce3da70b43 Initial load
duke
parents:
diff changeset
   715
        not required.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   716
        <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   717
        <strong>Solaris:</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   718
        Some pre-installed JDK images may be available to you in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   719
        directory <tt>/usr/jdk/instances</tt>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   720
        If you don't set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   721
        <tt><a href="#ALT_BOOTDIR">ALT_BOOTDIR</a></tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   722
        the makefiles will look in that location for a JDK it can use.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   723
    </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   724
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   725
    <h4><a name="binaryplugs">Binary Plugs</a></h4>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   726
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   727
    <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   728
        <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   729
        Not all of the source code that makes up the JDK is available
90ce3da70b43 Initial load
duke
parents:
diff changeset
   730
        under an open-source license.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   731
        In order to build an OpenJDK binary from source code,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   732
        you must first download and install the appropriate
90ce3da70b43 Initial load
duke
parents:
diff changeset
   733
        binary plug bundles from the OpenJDK Download area.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   734
        During the OpenJDK build process these "binary plugs"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   735
        for the encumbered components will be copied into your
90ce3da70b43 Initial load
duke
parents:
diff changeset
   736
        resulting OpenJDK binary build image.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   737
        These binary plug files are only for the purpose of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   738
        building an OpenJDK binary.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   739
        Download the Binary Plugs by selecting the <b>Downloads</b>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   740
        link at
90ce3da70b43 Initial load
duke
parents:
diff changeset
   741
        <a href="http://openjdk.java.net/">the OpenJDK site</a>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   742
        install the bundle,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   743
        and make sure you set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   744
        <tt><a href="#ALT_BINARY_PLUGS_PATH">ALT_BINARY_PLUGS_PATH</a></tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   745
        to the root of this installation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   746
    </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   747
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   748
    <h4><a name="cacerts">Certificate Authority File (cacert)</a></h4>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   749
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   750
    <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   751
        <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   752
        See <a href="http://en.wikipedia.org/wiki/CAcert">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   753
        www.wikipedia.org/wiki/CAcert</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   754
        for a better understanding of the Certificate Authority (CA).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   755
        A certificates file named "cacerts"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   756
        represents a system-wide keystore with CA certificates. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   757
        In JDK and JRE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   758
        binary bundles, the "cacerts" file contains root CA certificates from
90ce3da70b43 Initial load
duke
parents:
diff changeset
   759
        several public CAs (e.g., VeriSign, Thawte, and Baltimore).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   760
        The source contain a cacerts file
90ce3da70b43 Initial load
duke
parents:
diff changeset
   761
        without CA root certificates. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   762
        Formal JDK builders will need to secure
90ce3da70b43 Initial load
duke
parents:
diff changeset
   763
        permission from each public CA and include the certificates into their
90ce3da70b43 Initial load
duke
parents:
diff changeset
   764
        own custom cacerts file. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   765
        Failure to provide a populated cacerts file
90ce3da70b43 Initial load
duke
parents:
diff changeset
   766
        will result in verification errors of a certificate chain during runtime.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   767
        The variable 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   768
        <tt><a href="#ALT_CACERTS_FILE">ALT_CACERTS_FILE</a></tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   769
        can be used to override the default location of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   770
        cacerts file that will get placed in your build.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   771
        By default an empty cacerts file is provided and that should be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   772
        fine for most JDK developers.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   773
    </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   774
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   775
    <h4><a name="compilers">Compilers</a></h4>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   776
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   777
    <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   778
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
   779
        <a name="gcc">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   780
            <strong>Linux gcc/binutils</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   781
        </a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   782
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
   783
        <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   784
            <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   785
            The GNU gcc compiler version should be 3.2.2 or newer.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   786
            The binutils package should be 2.11.93.0.2-11 or newer.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   787
            The compiler used should be the default compiler installed
90ce3da70b43 Initial load
duke
parents:
diff changeset
   788
            in <tt>/usr/bin</tt>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   789
        </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   790
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
   791
        <strong><a name="studio">Solaris: Sun Studio</a></strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   792
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
   793
        <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   794
            <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   795
            At a minimum, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   796
            <a href="http://developers.sun.com/sunstudio/index.jsp">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   797
            Sun Studio 11 Compilers</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   798
            (containing version 5.8 of the C and C++ compilers) is required,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   799
            with patches from the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   800
            <a href="http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/patch-access">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   801
            SunSolve web site</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   802
            <p> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   803
            Set 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   804
            <a href="#ALT_COMPILER_PATH"><tt>ALT_COMPILER_PATH</tt></a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   805
            to point to the location of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   806
            the compiler binaries, and place this location in the <tt>PATH</tt>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   807
            <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   808
            The Sun Studio Express compilers at:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   809
            <a href="http://developers.sun.com/sunstudio/downloads/express.jsp">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   810
            Sun Studio Express Download site</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   811
            are also an option, although these compilers have not
90ce3da70b43 Initial load
duke
parents:
diff changeset
   812
            been extensively used yet.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   813
        </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   814
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
   815
        <a name="msvc">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   816
            <strong>Windows i586: Microsoft Visual Studio .NET 2003 Professional</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   817
        </a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   818
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
   819
        <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   820
            <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   821
            The 32-bit 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   822
            OpenJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   823
            Windows build
90ce3da70b43 Initial load
duke
parents:
diff changeset
   824
            requires Microsoft Visual Studio .NET 2003 (VS2003) Professional
90ce3da70b43 Initial load
duke
parents:
diff changeset
   825
            Edition compiler. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   826
            The compiler and other tools are expected to reside
90ce3da70b43 Initial load
duke
parents:
diff changeset
   827
            in the location defined by the variable <tt>VS71COMNTOOLS</tt> which
90ce3da70b43 Initial load
duke
parents:
diff changeset
   828
            is set by the Microsoft Visual Studio .NET installer.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   829
            <p> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   830
            Once the compiler is installed, 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   831
            it is recommended that you run <tt>VCVARS32.BAT</tt> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   832
            to set the compiler environment variables
90ce3da70b43 Initial load
duke
parents:
diff changeset
   833
            <tt>MSVCDIR</tt>, 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   834
            <tt>INCLUDE</tt>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   835
            <tt>LIB</tt>, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   836
            <tt>PATH</tt> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   837
            prior to building the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   838
            OpenJDK.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   839
            The above environment variables <b>MUST</b> be set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   840
            <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   841
            The Microsoft Visual Studio .NET 2005 (VS2005) compiler
90ce3da70b43 Initial load
duke
parents:
diff changeset
   842
            will not work at this time due to the new runtime dll
90ce3da70b43 Initial load
duke
parents:
diff changeset
   843
            and the manifest requirements.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   844
        </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   845
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
   846
        <a name="mssdk">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   847
            <strong>Windows X64: Microsoft Platform SDK April 2005</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   848
        </a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   849
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
   850
        <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   851
            <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   852
            On <b>X64</b>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   853
            the Microsoft Platform Software
90ce3da70b43 Initial load
duke
parents:
diff changeset
   854
            Development Kit (SDK), April 2005 Edition compiler, is required for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   855
            building the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   856
            OpenJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   857
            because it contains the C/C++ compiler. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   858
            You will need to minimally install the Core SDK and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   859
            the MDAC SDK features of this compiler.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   860
            <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   861
            Once the Platform SDK is installed,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   862
            it is recommended that you run <tt>SetEnv.Cmd /X64</tt> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   863
            to set the compiler environment variables
90ce3da70b43 Initial load
duke
parents:
diff changeset
   864
            <tt>MSSDK</tt>, 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   865
            <tt>MSTOOLS</tt>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   866
            <tt>INCLUDE</tt>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   867
            <tt>LIB</tt>, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   868
            <tt>PATH</tt> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   869
            prior to building the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   870
            OpenJDK.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   871
            The above environment variables <b>MUST</b> be set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   872
            <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   873
            Note that this compiler may say it's version is a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   874
            Microsoft Visual Studio .NET 2005 (VS2005), but be careful,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   875
            it will not match the official VS2005 product.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   876
            This Platform SDK compiler is only used on X64 builds.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   877
        </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   878
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
   879
    </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   880
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   881
    <h4><a name="cups">Common UNIX Printing System (CUPS) Headers (Solaris &amp; Linux)</a></h4>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   882
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   883
    <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   884
        <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   885
        <strong>Solaris:</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   886
        CUPS header files are required for building the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   887
        OpenJDK on Solaris.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   888
        The Solaris header files can be obtained by installing 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   889
        the package <strong>SFWcups</strong> from the Solaris Software
90ce3da70b43 Initial load
duke
parents:
diff changeset
   890
        Companion CD/DVD, these often will be installed into 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   891
        <tt>/opt/sfw/cups</tt>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   892
        <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   893
        <strong>Linux:</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   894
        CUPS header files are required for building the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   895
        OpenJDK on Linux.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   896
        The Linux header files are usually available from a "cups"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   897
        development package, it's recommended that you try and use
90ce3da70b43 Initial load
duke
parents:
diff changeset
   898
        the package provided by the particular version of Linux that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   899
        you are using.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   900
        <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   901
        The CUPS header files can always be downloaded from 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   902
        <a href="http://www.cups.org">www.cups.org</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   903
        The variable 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   904
        <tt><a href="#ALT_CUPS_HEADERS_PATH">ALT_CUPS_HEADERS_PATH</a></tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   905
        can be used to override the default location of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   906
        CUPS Header files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   907
    </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   908
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   909
    <h4><a name="freetype">FreeType 2</a></h4>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   910
90ce3da70b43 Initial load
duke
parents:
diff changeset
   911
    <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   912
        <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   913
        Version 2.3 or newer of FreeType is required for building the OpenJDK.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   914
        On Unix systems required files can be available as part of your
90ce3da70b43 Initial load
duke
parents:
diff changeset
   915
        distribution (while you still may need to upgrade them).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   916
        Note that you need development version of package that 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   917
        includes both FreeType library and header files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   918
        </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   919
        <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   920
        You can always download latest FreeType version from the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   921
        <a href="http://www.freetype.org">FreeType website</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   922
        </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   923
        <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   924
        Makefiles will try to pick FreeType from /usr/lib and /usr/include.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   925
        In case it is installed elsewhere you will need to set environment
90ce3da70b43 Initial load
duke
parents:
diff changeset
   926
        variables 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   927
        <tt><a href="#ALT_FREETYPE_LIB_PATH">ALT_FREETYPE_LIB_PATH</a></tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   928
        and 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   929
        <tt><a href="#ALT_FREETYPE_HEADERS_PATH">ALT_FREETYPE_HEADERS_PATH</a></tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   930
        to refer to place where library and header files are installed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   931
        </p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   932
    </blockquote>    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   933
90ce3da70b43 Initial load
duke
parents:
diff changeset
   934
    <h4><a name="alsa">Advanced Linux Sound Architecture (ALSA) (Linux only)</a></h4>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   935
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   936
    <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   937
        <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   938
        <strong>Linux only:</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   939
        Version 0.9.1 or newer of the ALSA files are
90ce3da70b43 Initial load
duke
parents:
diff changeset
   940
        required for building the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   941
        OpenJDK on Linux.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   942
        These Linux files are usually available from an "alsa"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   943
        of "libasound"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   944
        development package, it's recommended that you try and use
90ce3da70b43 Initial load
duke
parents:
diff changeset
   945
        the package provided by the particular version of Linux that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   946
        you are using.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   947
        The makefiles will check this emit a sanity error if it is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   948
        missing or the wrong version.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   949
        As a last resort you can go to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   950
        <a href="http://www.alsa-project.org" target="_blank">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   951
        Advanced Linux Sound Architecture Site</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   952
    </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   953
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   954
    <h4>Windows Specific Dependencies</h4>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   955
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   956
    <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   957
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
   958
        <strong>Unix Command Tools (<a name="cygwin">CYGWIN</a>)</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   959
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
   960
        <blockquote> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   961
            <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   962
            The 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   963
            OpenJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   964
            requires access to a set of unix command tools
90ce3da70b43 Initial load
duke
parents:
diff changeset
   965
            on Windows which can be supplied by 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   966
            <a href="http://www.cygwin.com">CYGWIN</a>. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   967
            <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   968
            The 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   969
            OpenJDK 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   970
            build
90ce3da70b43 Initial load
duke
parents:
diff changeset
   971
            requires CYGWIN version 1.5.12 or newer. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   972
            Information about CYGWIN can
90ce3da70b43 Initial load
duke
parents:
diff changeset
   973
            be obtained from the CYGWIN website at 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   974
            <a href="http://www.cygwin.com">www.cygwin.com</a>. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   975
            <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   976
            By default CYGWIN doesn't install all the tools required for building
90ce3da70b43 Initial load
duke
parents:
diff changeset
   977
            the OpenJDK.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   978
            Along with the default installation, you need to install
90ce3da70b43 Initial load
duke
parents:
diff changeset
   979
            the following tools.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   980
            <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   981
                <table border="1">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   982
                    <thead>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   983
                        <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   984
                            <td>Binary Name</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   985
                            <td>Package</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   986
                            <td>Description</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   987
                        </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   988
                    </thead>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   989
                    <tbody>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   990
                        <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   991
                            <td>ar.exe</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   992
                            <td>Devel</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   993
                            <td>binutils: The GNU assembler, linker and binary
90ce3da70b43 Initial load
duke
parents:
diff changeset
   994
                            utilities</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   995
                        </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   996
                        <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   997
                            <td>make.exe</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   998
                            <td>Devel</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   999
                            <td>make: The GNU version of the 'make' utility</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1000
                        </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1001
                        <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1002
                            <td>m4.exe</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1003
                            <td>Interpreters</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1004
                            <td>m4: GNU implementation of the traditional Unix macro
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1005
                            processor</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1006
                        </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1007
                        <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1008
                            <td>cpio.exe</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1009
                            <td>Utils</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1010
                            <td>cpio: A program to manage archives of files</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1011
                        </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1012
                        <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1013
                            <td>file.exe</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1014
                            <td>Utils</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1015
                            <td>file: Determines file type using 'magic' numbers</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1016
                        </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1017
                    </tbody>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1018
                </table>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1019
            </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1020
        </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1021
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1022
        <a name="dxsdk">
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1023
            <strong>Microsoft DirectX 9.0 SDK header files and libraries</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1024
        </a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1025
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1026
        <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1027
            <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1028
            Microsoft DirectX 9.0 SDK (Summer 2004)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1029
            headers are required for building
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1030
            OpenJDK.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1031
            This SDK can be downloaded from 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1032
            <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=FD044A42-9912-42A3-9A9E-D857199F888E&amp;displaylang=en">
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1033
            Microsoft DirectX 9.0 SDK (Summer 2004)</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1034
            If the link above becomes obsolete, the SDK can be found from 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1035
            <a href="http://download.microsoft.com">the Microsoft Download Site</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1036
            (search with "DirectX 9.0 SDK Update Summer 2004"). 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1037
            The location of this SDK can be set with 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1038
            <tt><a href="#ALT_DXSDK_PATH">ALT_DXSDK_PATH</a></tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1039
            but it's normally found via the DirectX environment variable
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1040
            <tt>DXSDK_DIR</tt>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1041
        </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1042
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1043
        <a name="msvcrt">
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1044
            <strong><tt>MSVCRT.DLL</tt></strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1045
        </a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1046
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1047
        <blockquote> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1048
            <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1049
            <strong>i586 only:</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1050
            The 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1051
            OpenJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1052
            32bit build requires
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1053
            access to <tt>MSVCRT.DLL</tt> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1054
            version 6.00.8337.0 or newer.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1055
            If the <tt>MSVCRT.DLL</tt> is not installed in 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1056
            the system32 directory set the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1057
            <a href="#ALT_MSVCRT_DLL_PATH"><tt>ALT_MSVCRT_DLL_PATH</tt></a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1058
            variable to the location.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1059
            <p> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1060
            <strong>X64 only:</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1061
            The OpenJDK 64bit build requires access to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1062
            <tt>MSVCRT.DLL</tt> version 7.0.3790.0 or newer, which is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1063
            usually supplied by the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1064
            <a href="#mssdk">Platform SDK</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1065
            If it is not available from the Platform SDK,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1066
            set the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1067
            <a href="#ALT_MSVCRT_DLL_PATH"><tt>ALT_MSVCRT_DLL_PATH</tt></a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1068
            variable to the location.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1069
        </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1070
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1071
        <a name="msvcr71">
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1072
            <strong><tt>MSVCR71.DLL</tt></strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1073
        </a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1074
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1075
        <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1076
            <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1077
            <strong>i586 only:</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1078
            The 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1079
            OpenJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1080
            build requires access to 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1081
            MSVCR71.DLL version 7.10.3052.4 or newer which should be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1082
            supplied by the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1083
            <a href="#msvc">Visual Studio product</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1084
            If the <tt>MSVCR71.DLL</tt> is not available from the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1085
            Visual Studio product
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1086
            set the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1087
            <a href="#ALT_MSVCR71_DLL_PATH"><tt>ALT_MSVCR71_DLL_PATH</tt></a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1088
            variable to the location.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1089
        </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1090
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1091
    </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1092
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1093
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1094
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1095
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1096
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1097
<hr noshade="noshade" size="3">
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1098
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1099
<h2><a name="creating">Creating the Build</a></h2>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1100
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1101
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1102
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1103
    Once a machine is setup to build the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1104
    OpenJDK,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1105
    the steps to create the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1106
    build are fairly simple.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1107
    The various ALT settings can either be made into  variables
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1108
    or can be supplied on the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1109
    <a href="#gmake"><tt><i>gmake</i></tt></a> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1110
    command.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1111
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1112
    <ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1113
        <li>Use the sanity rule to double check all the ALT settings:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1114
            <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1115
                <tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1116
                    <i>gmake</i> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1117
                    sanity
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1118
                    [ARCH_DATA_MODEL=<i>32 or 64</i>]
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1119
                    [other "ALT_" overrides]
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1120
                </tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1121
            </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1122
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1123
        <li>Start the build with the command:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1124
            <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1125
                <tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1126
                    <i>gmake</i> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1127
                    [ARCH_DATA_MODEL=<i>32 or 64</i>]
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1128
                    [ALT_OUTPUTDIR=<i>output_directory</i>] 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1129
                    [other "ALT_" overrides] 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1130
                </tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1131
            </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1132
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1133
    </ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1134
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1135
    <strong>Solaris:</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1136
    Note that ARCH_DATA_MODEL is really only needed on Solaris to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1137
    indicate you want to built the 64-bit version.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1138
    And before the Solaris 64-bit binaries can be used, they
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1139
    must be merged with the binaries from a separate 32-bit build. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1140
    The merged binaries may then be used in either 32-bit or 64-bit mode, with
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1141
    the selection occurring at runtime 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1142
    with the <tt>-d32</tt> or <tt>-d64</tt> options. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1143
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1144
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1145
<!-- ------------------------------------------------------ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1146
<hr noshade="noshade" size="3">
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1147
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1148
<h2><a name="testing">Testing the Build</a></h2>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1149
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1150
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1151
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1152
    When the build is completed, you should see the generated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1153
    binaries and associated files in the <tt>j2sdk-image</tt> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1154
    directory in the output directory. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1155
    The default output directory is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1156
    <tt>build/<i>platform</i></tt>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1157
    where <tt><i>platform</i></tt> is one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1158
    <tt><ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1159
            <li>solaris-sparc</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1160
            <li>solaris-sparcv9</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1161
            <li>solaris-i586</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1162
            <li>solaris-amd64</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1163
            <li>linux-i586</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1164
            <li>linux-amd64</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1165
            <li>windows-i586</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1166
            <li>windows-amd64</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1167
    </ul></tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1168
    In particular, the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1169
    <tt>build/<i>platform</i>/j2sdk-image/bin</tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1170
    directory should contain executables for the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1171
    OpenJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1172
    tools and utilities.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1173
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1174
    You can test that the build completed properly by using the build
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1175
    to run the various demos that you will find in the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1176
    <tt>build/<i>platform</i>/j2sdk-image/demo</tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1177
    directory.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1178
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1179
    The provided regression tests can be run with the <tt>jtreg</tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1180
    utility from 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1181
    <a href="http://openjdk.java.net/jtreg/">the jtreg site</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1182
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1183
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1184
<!-- ------------------------------------------------------ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1185
<hr noshade="noshade" size="3">
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1186
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1187
<h2><a name="variables">Environment/Make Variables</a></h2>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1188
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1189
<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1190
Some of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1191
environment or make variables (just called <b>variables</b> in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1192
document) that can impact the build are:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1193
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1194
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1195
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1196
    <dl>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1197
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1198
        <dt><a name="path"><tt>PATH</tt></a> </dt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1199
        <dd>Typically you want to set the <tt>PATH</tt> to include:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1200
            <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1201
                <li>The location of the GNU make binary</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1202
                <li>The location of the JDK 6 <tt>java</tt> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1203
                (see <a href="#bootjdk">Bootstrap JDK</a>)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1204
                <li>The location of the C/C++ compilers 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1205
                (see <a href="#compilers"><tt>compilers</tt></a>)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1206
                <li>The location or locations for the Unix command utilities
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1207
                (e.g. <tt>/usr/bin</tt>)</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1208
            </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1209
        </dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1210
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1211
        <dt><a name="arch_data_model"><tt>ARCH_DATA_MODEL</tt></a></dt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1212
        <dd>The <tt>ARCH_DATA_MODEL</tt> variable
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1213
            is used to specify whether the build is to generate 32-bit or 64-bit
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1214
            binaries. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1215
            The Solaris build supports either 32-bit or 64-bit builds, but
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1216
            Windows and Linux will support only one, depending on the specific
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1217
            OS being used.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1218
            Normally, setting this variable is only necessary on Solaris.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1219
            Set <tt>ARCH_DATA_MODEL</tt> to <tt>32</tt> for generating 32-bit binaries, 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1220
            or to <tt>64</tt> for generating 64-bit binaries.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1221
        </dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1222
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1223
        <dt><a name="ALT_BOOTDIR"><tt>ALT_BOOTDIR</tt></a></dt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1224
        <dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1225
            The location of the bootstrap JDK installation. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1226
            See <a href="#bootjdk">Bootstrap JDK</a> for more information.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1227
            You should always install your own local Bootstrap JDK and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1228
            always set <tt>ALT_BOOTDIR</tt> explicitly.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1229
        </dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1230
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1231
        <dt><a name="ALT_OUTPUTDIR"><tt>ALT_OUTPUTDIR</tt></a> </dt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1232
        <dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1233
            An override for specifying the (absolute) path of where the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1234
            build output is to go.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1235
            The default output directory will be build/<i>platform</i>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1236
        </dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1237
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1238
        <dt><a name="ALT_COMPILER_PATH"><tt>ALT_COMPILER_PATH</tt></a> </dt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1239
        <dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1240
            The location of the C/C++ compiler.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1241
            The default varies depending on the platform. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1242
        </dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1243
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1244
        <dt><tt><a name="ALT_CACERTS_FILE">ALT_CACERTS_FILE</a></tt></dt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1245
        <dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1246
            The location of the <a href="#cacerts">cacerts</a> file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1247
            The default will refer to 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1248
            <tt>jdk/src/share/lib/security/cacerts</tt>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1249
        </dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1250
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1251
        <dt><a name="ALT_BINARY_PLUGS_PATH"><tt>ALT_BINARY_PLUGS_PATH</tt></a></dt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1252
        <dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1253
            The location of the binary plugs installation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1254
            See <a href="#binaryplugs">Binary Plugs</a> for more information.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1255
            You should always have a local copy of a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1256
            recent Binary Plugs install image
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1257
            and set this variable to that location.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1258
        </dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1259
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1260
        <dt><a name="ALT_CUPS_HEADERS_PATH"><tt>ALT_CUPS_HEADERS_PATH</tt></a> </dt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1261
        <dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1262
            The location of the CUPS header files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1263
            See <a href="#cups">CUPS information</a> for more information.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1264
            If this path does not exist the fallback path is 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1265
            <tt>/usr/include</tt>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1266
        </dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1267
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1268
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1269
        <dt><a name="ALT_FREETYPE_LIB_PATH"><tt>ALT_FREETYPE_LIB_PATH</tt></a></dt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1270
        <dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1271
            The location of the FreeType shared library. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1272
            See <a href="#freetype">FreeType information</a> for details. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1273
        </dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1274
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1275
        <dt><a name="ALT_FREETYPE_HEADERS_PATH"><tt>ALT_FREETYPE_HEADERS_PATH</tt></a></dt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1276
        <dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1277
            The location of the FreeType header files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1278
            See <a href="#freetype">FreeType information</a> for details. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1279
        </dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1280
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1281
        <dt><strong>Windows specific:</strong></dt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1282
        <dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1283
            <dl>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1284
                <dt><a name="ALT_MSDEVTOOLS_PATH"><tt>ALT_MSDEVTOOLS_PATH</tt></a> </dt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1285
                <dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1286
                    The location of the Microsoft Visual Studio .NET 2003
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1287
                    tools 'bin' directory.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1288
                    The default is usually derived from
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1289
                    <a href="#ALT_COMPILER_PATH"><tt>ALT_COMPILER_PATH</tt></a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1290
                </dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1291
                
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1292
                <dt><tt><a name="ALT_DXSDK_PATH">ALT_DXSDK_PATH</a></tt> </dt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1293
                <dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1294
                    The location of the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1295
                    <a href="#dxsdk">Microsoft DirectX 9 SDK</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1296
                    The default will be to try and use the DirectX environment
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1297
                    variable <tt>DXSDK_DIR</tt>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1298
                    failing that, look in <tt>C:/DXSDK</tt>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1299
                </dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1300
                
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1301
                <dt><tt><a name="ALT_MSVCRT_DLL_PATH">ALT_MSVCRT_DLL_PATH</a></tt> </dt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1302
                <dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1303
                    The location of the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1304
                    <a href="#msvcrt"><tt>MSVCRT.DLL</tt></a>. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1305
                </dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1306
                
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1307
                <dt><tt><a name="ALT_MSVCR71_DLL_PATH">ALT_MSVCR71_DLL_PATH</a></tt> </dt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1308
                <dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1309
                    <strong>i586 only:</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1310
                    The location of the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1311
                    <a href="#msvcr71"><tt>MSVCR71.DLL</tt></a>. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1312
                </dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1313
            </dl>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1314
        </dd>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1315
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1316
    </dl>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1317
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1318
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1319
<!-- ------------------------------------------------------ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1320
<hr noshade="noshade" size="3">
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1321
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1322
<h2><a name="troubleshooting">Troubleshooting</a></h2>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1323
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1324
<blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1325
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1326
    A build can fail for any number of reasons. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1327
    Most failures
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1328
    are a result of trying to build in an environment in which all the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1329
    pre-build requirements have not been met. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1330
    The first step in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1331
    troubleshooting a build failure is to recheck that you have satisfied
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1332
    all the pre-build requirements for your platform.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1333
    Look for the check list of the platform you are building on in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1334
    <a href="#contents">Table of Contents</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1335
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1336
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1337
    You can validate your build environment by using the <tt>sanity</tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1338
    target.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1339
    Any errors listed
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1340
    will stop the build from starting, and any warnings may result in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1341
    a flawed product build.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1342
    We strongly encourage you to evaluate every
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1343
    sanity check warning and fix it if required, before you proceed
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1344
    further with your build.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1345
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1346
    <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1347
    Some of the more common problems with builds are briefly described
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1348
    below, with suggestions for remedies.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1349
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1350
    <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1351
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1352
            <b>Slow Builds:</b>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1353
            <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1354
                <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1355
                If your build machine seems to be overloaded from too many
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1356
                simultaneous C++ compiles, try setting the <tt>HOTSPOT_BUILD_JOBS</tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1357
                variable to <tt>1</tt> (if you're using a multiple CPU
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1358
                machine, setting it to more than the the number of CPUs is probably
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1359
                not a good idea).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1360
                <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1361
                Creating the javadocs can be very slow, if you are running
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1362
                javadoc, consider skipping that step.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1363
                <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1364
                Faster hardware and more RAM always helps too.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1365
                The VM build tends to be CPU intensive (many C++ compiles),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1366
                and the rest of the JDK will often be disk intensive.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1367
                <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1368
                Faster compiles are possible using a tool called
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1369
                <a href="http://ccache.samba.org/">ccache</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1370
            </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1371
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1372
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1373
            <b>File time issues:</b>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1374
            <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1375
                <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1376
                If you see warnings that refer to file time stamps, e.g.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1377
                <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1378
                    <i>Warning message:</i><tt> File `xxx' has modification time in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1379
                    the future.</tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1380
                    <br>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1381
                    <i>Warning message:</i> <tt> Clock skew detected. Your build may
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1382
                    be incomplete.</tt> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1383
                </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1384
                <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1385
                These warnings can occur when the clock on the build machine is out of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1386
                sync with the timestamps on the source files. Other errors, apparently
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1387
                unrelated but in fact caused by the clock skew, can occur along with
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1388
                the clock skew warnings. These secondary errors may tend to obscure the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1389
                fact that the true root cause of the problem is an out-of-sync clock.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1390
                For example, an out-of-sync clock has been known to cause an old
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1391
                version of javac to be used to compile some files, resulting in errors
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1392
                when the pre-1.4 compiler ran across the new <tt>assert</tt> keyword
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1393
                in the 1.4 source code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1394
                <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1395
                If you see these warnings, reset the clock on the build
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1396
                machine, run "<tt><i>gmake</i> clobber</tt>" or delete the directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1397
                containing the build output, and restart the build from the beginning.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1398
            </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1399
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1400
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1401
            <b>Error message: <tt>Trouble writing out table to disk</tt></b>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1402
            <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1403
                <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1404
                Increase the amount of swap space on your build machine.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1405
            </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1406
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1407
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1408
            <b>Error Message: <tt>libstdc++ not found:</tt></b>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1409
            <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1410
                This is caused by a missing libstdc++.a library.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1411
                This is installed as part of a specific package
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1412
                (e.g. libstdc++.so.devel.386).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1413
                By default some 64bit Linux versions (e.g. Fedora)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1414
                only install the 64bit version of the libstdc++ package.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1415
                Various parts of the JDK build require a static
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1416
                link of the C++ runtime libraries to allow for maximum
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1417
                portability of the built images.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1418
            </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1419
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1420
        <li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1421
            <b>Error Message: <tt>cannot restore segment prot after reloc</tt></b>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1422
            <blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1423
                This is probably an issue with SELinux (See
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1424
                <a href="http://en.wikipedia.org/wiki/SELinux">http://en.wikipedia.org/wiki/SELinux</a>).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1425
                Parts of the VM is built without the <tt>-fPIC</tt> for
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1426
                performance reasons.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1427
                <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1428
                To completely disable SELinux:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1429
                <ol><tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1430
                    
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1431
                    <li>$ su root</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1432
                    <li># system-config-securitylevel</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1433
                    <li>In the window that appears, select the SELinux tab</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1434
                    <li>Disable SELinux</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1435
                </ol></tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1436
                <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1437
                Alternatively, instead of completely disabling it you could
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1438
                disable just this one check.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1439
                <ol><tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1440
                    <li>Select System->Administration->SELinux Management</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1441
                    <li>In the SELinux Management Tool which appears, 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1442
                    select "Boolean" from the menu on the left</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1443
                    <li>Expand the "Memory Protection" group</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1444
                    <li>Check the first item, labeled
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1445
                    "Allow all unconfined executables to use libraries requiring text relocation ..."</li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1446
                </ol></tt>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1447
            </blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1448
        </li>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1449
    </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1450
</blockquote>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1451
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1452
<hr noshade="noshade" size="3">