Build error on jdk8/tl project - Thread.o:(.data.rel+0xbc): undefined reference to JVM_SetNativeThreadName

Martijn Verburg martijnverburg at
Tue May 15 13:11:54 UTC 2012

Hi all,


> <snip>
>> <snip>
>> The 2nd option would be the most up to date I guess but seems a bit
>> chicken and egg..
> I normally use the latest jdk8 binary, but as I said above, sometimes it
> still fails. In this case, do a full build and save the j2sdk-image
> directory somewhere as later ALT_IMPORT_JDK_PATH. There is no chicken and
> egg problem here, you use the full build output as IMPORT of a jdk-only
> build, and full build does not need an IMPORT at all, and either a full
> build or a jdk-only build depends on a previous veriosn of JDK as BOOTDIR.
> Please note there is a bug in our build script that if you already have
> tl/build/{platform} existing, a jdk/make build might fail (at some point in
> smartcard or security, random). Please rename (or move) the
> tl/build/{platform} directory before starting a jdk-only build.

I've been continuing the work to execute a full build followed by a
partial build. However, I think I'm still blocked by an <insert
obvious missing env VAR> issue.

Full Build:
I set the following env vars

export LANG=C
export ALT_BOOTDIR=/usr/lib/jvm/java-7-openjdk-amd64

I execute a full build of the cloned code base from (after is run) and
that all works fine

Partial Build:

# Create a backup of the full build (as per Weijun's recommendation)
cp -R /home/openjdk/projects/jdk8_tl/build/linux-amd64

# Set the ALT_JDK_IMPORT_PATH to point to the j2sk-image backup of the
full build
export ALT_JDK_IMPORT_PATH=/home/openjdk/projects/jdk8_tl/build/linux-amd64_backup/j2sdk-image

# Run the warnings build
OTHER_JAVACFLAGS="-Xmaxwarns 10000" &> build.log

It builds up to a point, but then has the problem where it's looking
for due to directory structure issues (it's looking too far back up
the directory tree basically).


/bin/mkdir -p ../../../../build/linux-amd64/tmp/sun/
rm -f ../../../../build/linux-amd64/tmp/sun/
/usr/lib/jvm/java-7-openjdk-amd64/bin/jar cf
 -C ../../../../build/linux-amd64/tmp/sun/
sun/security/ec \
            -J-XX:-PrintVMOptions -J-XX:+UnlockDiagnosticVMOptions
-J-XX:-LogVMOutput -J-Xmx512m -J-Xms512m -J-XX:PermSize=32m
: no such file or directory
make[3]: *** [../../../../build/linux-amd64/tmp/sun/]
Error 1
make[3]: Leaving directory
make[2]: *** [all] Error 1
make[2]: Leaving directory
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/openjdk/projects/jdk8_tl/jdk/make/sun'
make: *** [all] Error 1


Apart from ALT_JDK_IMPORT_PATH are there any other env vars I need to
set in order to have a partial build run (using the full build as a


More information about the build-dev mailing list