Building OpenJDK Java 1.7.0 on Mac OS X 10.6
Maxim Porges
maxim.porges at highwinds.com
Thu Sep 24 03:11:00 UTC 2009
Hi,
I've been following Stephen Bannasch's very thorough and detailed
article (http://confluence.concord.org/display/CCTR/Build+OpenJDK+Java+1.7.0+on+Mac+OS+X+10.5
) for installing OpenJDK 1.7.0 on OS X (thanks very much to Stephen
for putting that together). I'm actually trying to install OpenJDK
1.7.0 on Snow Leopard 10.6, and it is almost working. Unfortunately,
it stops building about halfway through with the following error
message.
Compiling /Users/mporges/bsd-port/hotspot/src/share/vm/runtime/
arguments.cpp
rm -f arguments.o
g++ -D_ALLBSD_SOURCE -D_GNU_SOURCE -DIA32 -DPRODUCT -I. -I../generated/
adfiles -I../generated/jvmtifiles -I/Users/mporges/bsd-port/hotspot/
src/share/vm/asm -I/Users/mporges/bsd-port/hotspot/src/share/vm/c1 -I/
Users/mporges/bsd-port/hotspot/src/share/vm/ci -I/Users/mporges/bsd-
port/hotspot/src/share/vm/classfile -I/Users/mporges/bsd-port/hotspot/
src/share/vm/code -I/Users/mporges/bsd-port/hotspot/src/share/vm/
compiler -I/Users/mporges/bsd-port/hotspot/src/share/vm/
gc_implementation -I/Users/mporges/bsd-port/hotspot/src/share/vm/
gc_implementation/concurrentMarkSweep -I/Users/mporges/bsd-port/
hotspot/src/share/vm/gc_implementation/g1 -I/Users/mporges/bsd-port/
hotspot/src/share/vm/gc_implementation/parallelScavenge -I/Users/
mporges/bsd-port/hotspot/src/share/vm/gc_implementation/parNew -I/
Users/mporges/bsd-port/hotspot/src/share/vm/gc_implementation/shared -
I/Users/mporges/bsd-port/hotspot/src/share/vm/gc_interface -I/Users/
mporges/bsd-port/hotspot/src/share/vm/interpreter -I/Users/mporges/bsd-
port/hotspot/src/share/vm/libadt -I/Users/mporges/bsd-port/hotspot/src/
share/vm/memory -I/Users/mporges/bsd-port/hotspot/src/share/vm/oops -I/
Users/mporges/bsd-port/hotspot/src/share/vm/opto -I/Users/mporges/bsd-
port/hotspot/src/share/vm/prims -I/Users/mporges/bsd-port/hotspot/src/
share/vm/runtime -I/Users/mporges/bsd-port/hotspot/src/share/vm/
services -I/Users/mporges/bsd-port/hotspot/src/share/vm/utilities -I/
Users/mporges/bsd-port/hotspot/src/cpu/x86/vm -I/Users/mporges/bsd-
port/hotspot/src/os/bsd/vm -I/Users/mporges/bsd-port/hotspot/src/
os_cpu/bsd_x86/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"16.0-
b08\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -
DHOTSPOT_BUILD_USER="\"mporges\"" -DHOTSPOT_LIB_ARCH=\"i386\" -
DJRE_RELEASE_VERSION="\"1.7.0-internal-mporges_2009_09_23_22_44-b00\""
-DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DCOMPILER2 -DCOMPILER1 -fPIC -fno-
rtti -fno-exceptions -pthread -fcheck-new -m32 -march=i586 -
mstackrealign -pipe -O3 -fno-strict-aliasing -DVM_LITTLE_ENDIAN -
Werror -Wpointer-arith -Wconversion -Wsign-compare -D_XOPEN_SOURCE -
D_DARWIN_C_SOURCE -c -o arguments.o /Users/mporges/bsd-port/hotspot/
src/share/vm/runtime/arguments.cpp
cc1plus: warnings being treated as errors
/Users/mporges/bsd-port/hotspot/src/share/vm/runtime/arguments.cpp: In
static member function 'static void
Arguments::set_aggressive_opts_flags()':
/Users/mporges/bsd-port/hotspot/src/share/vm/runtime/arguments.cpp:
1398: warning: format '%d' expects type 'int', but argument 3 has type
'intx'
make[6]: *** [arguments.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 was hoping I could get around this by removing the -Werror flag,
but I'm really not familiar with make-based builds (being a Java
programmer after all) and wondered if anybody on the list could assist
with this, or offer another solution.
Thanks,
- max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20090923/033c4acc/attachment.htm>
More information about the build-dev
mailing list