Fail to build JDK on OSX Snow Leopard

Eric Bodden bodden at st.informatik.tu-darmstadt.de
Tue May 18 10:37:13 PDT 2010


Hello.

I hope this is the right mailing list for this. If not, please correct
me. I am trying to build JDK 7 on OSX Snow Leopard, to try out the new
invokedynamic support.

I followed the instructions at
http://infernus.org/2009/02/building-java-7-on-mac-os-x/ but my build
is failing as follows:

/private/tmp/jdk7/bsd-port/hotspot/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp:
In member function 'int LIR_Assembler::emit_unwind_handler()':
/private/tmp/jdk7/bsd-port/hotspot/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp:472:
error: call of overloaded 'movptr(Address, int32_t)' is ambiguous
/private/tmp/jdk7/bsd-port/hotspot/src/cpu/x86/vm/assembler_x86.hpp:2189:
note: candidates are: void MacroAssembler::movptr(Address, intptr_t)
/private/tmp/jdk7/bsd-port/hotspot/src/cpu/x86/vm/assembler_x86.hpp:2191:
note:                 void MacroAssembler::movptr(Address,
RegisterImpl*)
/private/tmp/jdk7/bsd-port/hotspot/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp:473:
error: call of overloaded 'movptr(Address, int32_t)' is ambiguous
/private/tmp/jdk7/bsd-port/hotspot/src/cpu/x86/vm/assembler_x86.hpp:2189:
note: candidates are: void MacroAssembler::movptr(Address, intptr_t)
/private/tmp/jdk7/bsd-port/hotspot/src/cpu/x86/vm/assembler_x86.hpp:2191:
note:                 void MacroAssembler::movptr(Address,
RegisterImpl*)
make[6]: *** [c1_LIRAssembler_x86.o] Error 1
make[5]: *** [the_vm] Error 2
make[4]: *** [product] Error 2
make[3]: *** [generic_build2] Error 2
make[2]: *** [product] Error 2
make[1]: *** [hotspot-build] Error 2
make: *** [build_product_image] Error 2

I am using this build file:

$ cat build.sh
#!/usr/bin/env bash
env -i PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
CC=gcc-4.0 CXX=g++-4.0 \

LC_ALL=C
LANG=C
unset CLASSPATH
unset JAVA_HOME
make \
  ALT_BOOTDIR=/opt/soylatte16-i386-1.0.3/ \
  ALT_BINARY_PLUGS_PATH=/opt/jdk-7-icedtea-plugs \
  ALT_FREETYPE_HEADERS_PATH=/usr/X11R6/include \
  ALT_FREETYPE_LIB_PATH=/usr/X11R6/lib \
  ALT_JIBX_LIBS_PATH=/opt/jibx/lib \
  ALT_CUPS_HEADERS_PATH=/usr/include \
  ANT_HOME=/usr/share/ant \
  NO_DOCS=true \
  HOTSPOT_BUILD_JOBS=1

Do you know how to solve this?

Best wishes,
Eric

--
Dr. Eric Bodden
Software Technology Group, Technische Universität Darmstadt, Germany
Tel: +49 6151 16-5478    Fax: +49 6151 16-5410
Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt



More information about the bsd-port-dev mailing list