Several issues were identified when we tried to build HS22 for jdk6u29:
"/tmp/jprt/P1/170801.amurillo/source/src/share/vm/opto/block.cpp", line 1372: Warning (Anachronism): Formal argument 4 of type extern "C" int(*)(const void*,const void*) in call to std::qsort(void*, unsigned, unsigned, extern "C" int(*)(const void*,const void*)) is being passed int(*)(const void*,const void*).
"/tmp/jprt/P1/170801.amurillo/source/src/share/vm/classfile/javaClasses.cpp", line 2704: Error: Overloading ambiguity between "methodOop::operator methodOopDesc*() const" and "oop::operator void*() const".
"/opt/jprt/temp/P1/170801.amurillo/source/src/share/vm/gc_implementation/g1/g1ErgoVerbose.hpp", line 62: Warning: Identifier expected instead of "}".
1 Warning(s) detected.p
"/opt/jprt/temp/P1/170801.amurillo/source/src/share/vm/oops/instanceRefKlass.cpp", line 355: Warning: A non-POD object of type "oop" passed as a variable argument to function "FormatBuffer<256>::FormatBuffer(const char*, ...)".
Also vs2003 generates incorrect optimized code for next line in oops/methodOop.cpp:
        QuickSort::sort<oop>((oop*)(methods->base()), length, method_comparator<oop>, idempotent);