Hi Sean/Alan/Max,<div><br></div><div>Sean - Your solution did the trick, and I'll probably use this for now as it means a smaller VM for the members to work with</div><div>Alan/Max - I did get the full build going, but then my VM ran out of space.</div>
<div><br></div><div>So I'm now going to go away and build a smaller VM for enthusiasts to fix warnings etc in the tl/jdk project and a larger VM for the braver souls who want to build and explore the whole thing.</div>
<div><br></div><div>Thanks for the help folks!</div><div><br></div><div>Cheers,</div><div>Martijn</div><div><br><div class="gmail_quote">On 23 March 2012 10:11, Seán Coffey <span dir="ltr"><<a href="mailto:sean.coffey@oracle.com">sean.coffey@oracle.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>

  
    
    
  
  <div bgcolor="#ffffff" text="#000000">
    Martijn, <br>
    <br>
    I ran into same issue a few weeks back. If you're only interested in
    building the jdk repo, you can update your ALT_HOTSPOT_IMPORT_PATH
    variable to point to a recent 7u4 build. <br>
    <br>
    e.g export ALT_HOTSPOT_IMPORT_PATH=/export/home/jdk1.7.0_04<br>
    <br>
    recent binaries at : <a href="http://jdk7.java.net/download.html" target="_blank">http://jdk7.java.net/download.html</a><br>
    <br>
    HTH,<br>
    Sean.<div><div class="h5"><br>
    <br>
    On 23/03/2012 09:46, Martijn Verburg wrote:
    <blockquote type="cite">Hi Alan/Max,
      <div><br>
      </div>
      <div>You're both right, I've actually been working from <a href="http://hg.openjdk.java.net/jdk8/tl/jdk" target="_blank">http://hg.openjdk.java.net/jdk8/tl/jdk</a>
        as opposed to <a href="http://hg.openjdk.java.net/jdk8/tl" target="_blank">http://hg.openjdk.java.net/jdk8/tl</a>
        - thanks for catching that with the limited info I posted.</div>
      <div><br>
      </div>
      <div>Will start from scratch from <a href="http://hg.openjdk.java.net/jdk8/tl" target="_blank">http://hg.openjdk.java.net/jdk8/tl</a>
        and see where the yellow brick road takes me :-)</div>
      <div><br>
      </div>
      <div>Cheers,</div>
      <div>
        Martijn<br>
        <br>
        <div class="gmail_quote">On 23 March 2012 06:16, Weijun Wang <span dir="ltr"><<a href="mailto:weijun.wang@oracle.com" target="_blank">weijun.wang@oracle.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
            A partial build is you go inside tl/jdk/make/ and run make
            there, it only builds the tl/jdk part, and the output goes
            to tl/jdk/build/linux-i586. A full build is you go inside
            tl/ and run make there, it builds all repos, and output goes
            to tl/build/linux-i586.<br>
            <br>
            I suspect you're doing a partial build because these 2
            options appear in the error:<br>
            <br>
               -I../../../build/linux-i586/tmp/java/java.lang/java/CClassHeaders<br>
               -I../../../src/solaris/javavm/export<br>
            <br>
            This means "src" and "build" are at the same directory
            levels. Therefore the "build" is inside tl/jdk.<br>
            <br>
            -Max
            <div><br>
              <br>
              On 03/23/2012 01:51 AM, Martijn Verburg wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
              <div>
                Hi Andrew/Alan,<br>
                <br>
                Thanks for responding! I suspect you are right, I'm only
                building the tl<br>
                project, which i guess is a partial build? I saw the
                patch that Andrew<br>
                mentioned but hadn't put 2 and 2 together that I'd need
                to build the<br>
                hotspot part separately first.<br>
                <br>
                I'll try that next, my next post will likely be a q
                about building the<br>
                hotspot part or providing the extra info Andrew
                requested.<br>
                <br>
                Cheers,<br>
                Martijn<br>
                <br>
                <br>
                <br>
                <br>
                On Thursday, 22 March 2012, Alan Bateman <<a href="mailto:Alan.Bateman@oracle.com" target="_blank">Alan.Bateman@oracle.com</a><br>
              </div>
              <div>
                <div>
                  <mailto:<a href="mailto:Alan.Bateman@oracle.com" target="_blank">Alan.Bateman@oracle.com</a>>>
                  wrote:<br>
                   > On 22/03/2012 15:19, Martijn Verburg wrote:<br>
                   >><br>
                   >> Hi all,<br>
                   >><br>
                   >> I'm back from holiday and am building the
                  latest<br>
                  (<a href="http://hg.openjdk.java.net/jdk8/tl/jdk" target="_blank">http://hg.openjdk.java.net/jdk8/tl/jdk</a>)
                  project for our 3rd Java User<br>
                  Group OpenJDK hack day. I've run across an error that
                  I haven't been<br>
                  able to resolve.<br>
                   >><br>
                   >> ..<br>
                   >> ..<br>
                   >><br>
                  ../../../build/linux-i586/tmp/java/java.lang/java/obj/Thread.o:(.data.rel+0xbc):<br>
                  undefined reference to `JVM_SetNativeThreadName'<br>
                   >> collect2: ld returned 1 exit status<br>
                   >> make[2]: *** [../../../build/linux-i586/lib/i386/libjava.so]
                  Error 1<br>
                   >> make[2]: Leaving directory
                  `/home/openjdk/sources/jdk/make/java/java'<br>
                   >> make[1]: *** [all] Error 1<br>
                   >> make[1]: Leaving directory
                  `/home/openjdk/sources/jdk/make/java'<br>
                   >> make: *** [all] Error 1<br>
                   >><br>
                   >> I've posted a more verbose version of the
                  error at<br>
                  <a href="http://pastebin.com/9exQpFkq" target="_blank">http://pastebin.com/9exQpFkq</a><br>
                   >><br>
                   >> I got a bit lost in the C++ spelunking, so
                  Ben Evans gave me a hand<br>
                  and we think we've tracked it down to the fact that
                  the reference to<br>
                  JVM_SetNativeThreadName is not in java_lang_Thread.h
                  (a generated<br>
                  header).  Looking at java_lang_Thread.h, the reference
                  that is the<br>
                  closest is Java_SetNativeThreadName, which we think
                  has been incorrectly<br>
                  generated.<br>
                   >><br>
                   >> I'll confess I haven't caught up with the
                  last couple of months<br>
                  archives, so I'm not sure if I missed a javah issue or
                  something else<br>
                  obvious.<br>
                   >><br>
                   >> Cheers,<br>
                   >> Martijn<br>
                   ><br>
                   > Martijn - is this a partial build by any chance?
                  I can imagine the<br>
                  above failure if doing a partial build and the import
                  JDK is not in sync.<br>
                   ><br>
                   > -Alan<br>
                   ><br>
                   ><br>
                   ><br>
                </div>
              </div>
            </blockquote>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
  </div></div></div>

</blockquote></div><br></div>