[PATCH] icedtea7-2.2.1 fails to build with zerovm enabled

Andrew Hughes ahughes at redhat.com
Fri Jun 29 06:05:57 PDT 2012


----- Original Message -----
> Hi,
> 
> build of 2.2.1 fails with Zerovm enabled with a following error
> 
> g++ -DLINUX -D_GNU_SOURCE -DCC_INTERP -DZERO
> -DTARGET_ARCH_NYI_6939861=1 -DARM -DZERO_LIBARCH=\"arm\" -DPRODUCT
> -I.
> +-I/home/abuild/rpmbuild/BUILD/java-1_7_0-openjdk/openjdk/hotspot/src/share/vm/prims
> +-I/home/abuild/rpmbuild/BUILD/java-1_7_0-openjdk/openjdk/hotspot/src/share/vm
> +-I/home/abuild/rpmbuild/BUILD/java-1_7_0-openjdk/openjdk/hotspot/src/share/vm/precompiled
> +-I/home/abuild/rpmbuild/BUILD/java-1_7_0-openjdk/openjdk/hotspot/src/cpu/zero/vm
> +-I/home/abuild/rpmbuild/BUILD/java-1_7_0-openjdk/openjdk/hotspot/src/os_cpu/linux_zero/vm
> +-I/home/abuild/rpmbuild/BUILD/java-1_7_0-openjdk/openjdk/hotspot/src/os/linux/vm
> +-I/home/abuild/rpmbuild/BUILD/java-1_7_0-openjdk/openjdk/hotspot/src/os/posix/vm
> -I../generated -DHOTSPOT_RELEASE_VERSION="\"23.0-b21\""
> +-DHOTSPOT_BUILD_TARGET="\"product\""
> -DHOTSPOT_BUILD_USER="\"abuild\"" -DHOTSPOT_LIB_ARCH=\"arm\"
> -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DTARGET_OS_FAMILY_linux
> +-DTARGET_ARCH_zero -DTARGET_ARCH_MODEL_zero
> -DTARGET_OS_ARCH_linux_zero -DTARGET_OS_ARCH_MODEL_linux_zero
> -DTARGET_COMPILER_gcc  -fpic -fno-rtti
> +-fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden
> -D_LITTLE_ENDIAN -pipe -g -O3 -fno-strict-aliasing  -gstabs
> -DVM_LITTLE_ENDIAN -DINCLUDE_TRACE
> +-Werror -Wpointer-arith -Wsign-compare    -c -MMD -MP -MF
> ../generated/dependencies/cppInterpreter_zero.o.d -o
> cppInterpreter_zero.o
> +/home/abuild/rpmbuild/BUILD/java-1_7_0-openjdk/openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp
> /home/abuild/rpmbuild/BUILD/java-1_7_0-openjdk/openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp:
> In static member function 'static void
> +CppInterpreter::process_method_handle(oop, Thread*)':
> /home/abuild/rpmbuild/BUILD/java-1_7_0-openjdk/openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp:817:7:
> error: 'get_ek_bound_mh_info' is not a member of
> +'MethodHandles'
> /home/abuild/rpmbuild/BUILD/java-1_7_0-openjdk/openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp:965:7:
> error: 'get_ek_adapter_opt_swap_rot_info' is not
> +a member of 'MethodHandles'
> 
> It seems to be caused by 15d394228cfa, which removed all occurences
> of
> get_ek_bound_mh_info and get_ek_adapter_opt_swap_rot_info.
> 
> http://icedtea.classpath.org/hg/icedtea7-forest/hotspot/rev/15d394228cfa
> 
> Attached a trivial patch removing them from cppInterpreter_zero.cpp
> as well. I
> am open to push it somewhere else, but the rules of openjdk/icedtea
> projects
> are quite complex to me, so I will appreciate your help there.
> 
> Regards
> Michal Vyskocil
> 

As stated in the release notes (http://blog.fuseyism.com/index.php/2012/06/13/security-icedtea-2-1-1-2-2-1-released/)
the 2.2 series is known not to work with Zero.  It's my understanding that there
is more to this than just removing a few method calls, but I'll leave Andrew Haley
and Chris Phillips to comment on this, as they know the details in this area.

For Zero, you should use 2.1.1.
-- 
Andrew :)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F  8F91 3B96 A578 248B DC07




More information about the distro-pkg-dev mailing list