Hi Andrew/Alan,<br><br>Thanks for responding! I suspect you are right, I'm only building the tl project, which i guess is a partial build? I saw the patch that Andrew mentioned but hadn't put 2 and 2 together that I'd need to build the hotspot part separately first.<br>
<br>I'll try that next, my next post will likely be a q about building the 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">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 (<a href="http://hg.openjdk.java.net/jdk8/tl/jdk">http://hg.openjdk.java.net/jdk8/tl/jdk</a>) project for our 3rd Java User Group OpenJDK hack day. I've run across an error that I haven't been able to resolve.<br>
>><br>>> ..<br>>> ..<br>>> ../../../build/linux-i586/tmp/java/java.lang/java/obj/Thread.o:(.data.rel+0xbc): 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 <a href="http://pastebin.com/9exQpFkq">http://pastebin.com/9exQpFkq</a><br>>><br>>> I got a bit lost in the C++ spelunking, so Ben Evans gave me a hand and we think we've tracked it down to the fact that the reference to JVM_SetNativeThreadName is not in java_lang_Thread.h (a generated header). Looking at java_lang_Thread.h, the reference that is the closest is Java_SetNativeThreadName, which we think has been incorrectly generated.<br>
>><br>>> I'll confess I haven't caught up with the last couple of months archives, so I'm not sure if I missed a javah issue or something else obvious.<br>>><br>>> Cheers,<br>>> Martijn<br>
><br>> Martijn - is this a partial build by any chance? I can imagine the above failure if doing a partial build and the import JDK is not in sync.<br>><br>> -Alan<br>><br>><br>>