Build openjdk7/hotspot error while linking,

Dang Nhan Nguyen nhann at
Tue Jun 14 10:01:44 UTC 2011

Hi All,

I have successfully built the whole Openjdk7/JVM (b121) on an platform with amd64/Ubuntu/Gcc 4.4.3.
I try to build hotspot alone on the same machine.

ALT_OUTPUTDIR=../../build/hotspot_product ARCH_DATA_MODEL=64 make product 2>&1 | tee ../../build/hotspot_product.log

The building process go well, but the linking process has a error like this:

Linking vm...
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.a(ctype.o): relocatio                                      n R_X86_64_32S against `vtable for std::ctype<wchar_t>' can not be used when mak                                      ing a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.a: could not read symbols: Bad val                                      ue
collect2: ld returned 1 exit status

I try some time but have not solved it successfully. 
Could anybody hint me what is the actual problem and how to solve it?

Thank you,
--Nhan Nguyen

More information about the build-dev mailing list