Is there a way to build Openjdk on a 64-bit Mac OS X 10.6.4?

Arul Dhesiaseelan aruld at acm.org
Fri Oct 8 06:48:53 PDT 2010


Hi John,

Thanks for looking into it.

I actually used build.sh instead of build64.sh. But, now I get a different
error. Looks like warnings are treated as errors. Is there a way to treat
them as warnings, which may get me further or this points to a problem with
recent builds?


Compiling
/Users/aruld/bsd-port/hotspot/src/share/vm/services/attachListener.cpp
rm -f attachListener.o
g++ -D_ALLBSD_SOURCE -D_GNU_SOURCE -DAMD64 -DPRODUCT -I.
-I../generated/adfiles -I../generated/jvmtifiles
-I/Users/aruld/bsd-port/hotspot/src/share/vm/asm
-I/Users/aruld/bsd-port/hotspot/src/share/vm/ci
-I/Users/aruld/bsd-port/hotspot/src/share/vm/classfile
-I/Users/aruld/bsd-port/hotspot/src/share/vm/code
-I/Users/aruld/bsd-port/hotspot/src/share/vm/compiler
-I/Users/aruld/bsd-port/hotspot/src/share/vm/gc_implementation
-I/Users/aruld/bsd-port/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep
-I/Users/aruld/bsd-port/hotspot/src/share/vm/gc_implementation/g1
-I/Users/aruld/bsd-port/hotspot/src/share/vm/gc_implementation/parallelScavenge
-I/Users/aruld/bsd-port/hotspot/src/share/vm/gc_implementation/parNew
-I/Users/aruld/bsd-port/hotspot/src/share/vm/gc_implementation/shared
-I/Users/aruld/bsd-port/hotspot/src/share/vm/gc_interface
-I/Users/aruld/bsd-port/hotspot/src/share/vm/interpreter
-I/Users/aruld/bsd-port/hotspot/src/share/vm/libadt
-I/Users/aruld/bsd-port/hotspot/src/share/vm/memory
-I/Users/aruld/bsd-port/hotspot/src/share/vm/oops
-I/Users/aruld/bsd-port/hotspot/src/share/vm/opto
-I/Users/aruld/bsd-port/hotspot/src/share/vm/prims
-I/Users/aruld/bsd-port/hotspot/src/share/vm/runtime
-I/Users/aruld/bsd-port/hotspot/src/share/vm/services
-I/Users/aruld/bsd-port/hotspot/src/share/vm/utilities
-I/Users/aruld/bsd-port/hotspot/src/cpu/x86/vm
-I/Users/aruld/bsd-port/hotspot/src/os/bsd/vm
-I/Users/aruld/bsd-port/hotspot/src/os_cpu/bsd_x86/vm -I../generated
-DHOTSPOT_RELEASE_VERSION="\"19.0-b05\""
-DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"arul\""
-DHOTSPOT_LIB_ARCH=\"amd64\"
-DJRE_RELEASE_VERSION="\"1.7.0-internal-arul_2010_10_07_17_53-b00\""
-DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DCOMPILER2 -fPIC -fno-rtti
-fno-exceptions -pthread -fcheck-new -m64 -pipe -O3 -fno-strict-aliasing
-DVM_LITTLE_ENDIAN -D_LP64=1 -fno-omit-frame-pointer -Werror -Wpointer-arith
-Wconversion -Wsign-compare    -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c -o
attachListener.o
/Users/aruld/bsd-port/hotspot/src/share/vm/services/attachListener.cpp
cc1plus: warnings being treated as errors
/Users/aruld/bsd-port/hotspot/src/share/vm/services/attachListener.cpp: In
function ‘jint set_uint64_t_flag(const char*, AttachOperation*,
outputStream*)’:
/Users/aruld/bsd-port/hotspot/src/share/vm/services/attachListener.cpp:265:
warning: format ‘%lu’ expects type ‘long unsigned int*’, but argument 3 has
type ‘uint64_t*’
make[6]: *** [attachListener.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


-Arul

On Fri, Oct 8, 2010 at 5:56 AM, John Yeary <johnyeary at gmail.com> wrote:

> Hello Arul,
>
> I have not done a build since before JavaOne so I am not sure. I will try
> one this morning and see if I can find anything. I did an update to OS X
> which may introduce some issues.
>
> John
>
>
> On Thu, Oct 7, 2010 at 5:41 PM, Arul Dhesiaseelan <aruld at acm.org> wrote:
>
>> I followed instructions from
>> http://wikis.sun.com/display/OpenJDK/Darwin10Build
>>
>> I am using 64-bit soylatte and running on 64-bit 10.6.4. I get the
>> following errors:
>>
>> cd /Users/aruld/bsd-port/hotspot/make; \
>>     make VM_TARGET=product1 generic_build1
>> ALT_OUTPUTDIR=/Users/aruld/bsd-port/build/bsd-amd64/hotspot/outputdir
>> Makefile:336: target `/Xusage.txt' given more than once in the same rule.
>> mkdir -p /Users/aruld/bsd-port/build/bsd-amd64/hotspot/outputdir
>> *No compiler1 (product1) for ARCH_DATA_MODEL=64*
>> cd /Users/aruld/bsd-port/hotspot/make; \
>>     make VM_TARGET=productkernel generic_buildkernel
>> ALT_OUTPUTDIR=/Users/aruld/bsd-port/build/bsd-amd64/hotspot/outputdir
>> Makefile:336: target `/Xusage.txt' given more than once in the same rule.
>> mkdir -p /Users/aruld/bsd-port/build/bsd-amd64/hotspot/outputdir
>> No kernel (productkernel) for OS_NAME=bsd
>> cd /Users/aruld/bsd-port/build/bsd-amd64/hotspot/outputdir; \
>>         make -f /Users/aruld/bsd-port/hotspot/make/bsd/Makefile \
>>                JAVA_HOME=/Users/aruld/soylatte16-amd64-1.0.3
>> OUTPUTDIR=/Users/aruld/bsd-port/build/bsd-amd64/hotspot/outputdir
>> GAMMADIR=/Users/aruld/bsd-port/hotspot MAKE_VERBOSE=y
>> HOTSPOT_RELEASE_VERSION=19.0-b05
>> JRE_RELEASE_VERSION=1.7.0-internal-aruld_2010_10_07_15_06-b00
>> HOTSPOT_BUILD_VERSION= docs
>> /Users/aruld/soylatte16-amd64-1.0.3/bin/javap
>> javax.xml.transform.TransformerFactory > /dev/null 2>&1; \
>>     if [ $? -ne 0 ]; then \
>>        /Users/aruld/soylatte16-amd64-1.0.3/bin/java -version; \
>>       echo "*** An XSLT processor (J2SE 1.4.x or newer) is required" \
>>       "to bootstrap this build" 1>&2; \
>>       exit 1; \
>>     fi
>> mkdir -p bsd_amd64_docs
>> make -f /Users/aruld/bsd-port/hotspot/make/bsd/makefiles/jvmti.make  "
>> LP64=1 " GAMMADIR=/Users/aruld/bsd-port/hotspot OS_FAMILY=bsd ARCH=x86
>> BUILDARCH=amd64 LIBARCH=amd64 HOTSPOT_RELEASE_VERSION=19.0-b05
>> HOTSPOT_BUILD_VERSION=
>> JRE_RELEASE_VERSION=1.7.0-internal-arul_2010_10_07_15_06-b00
>> JvmtiOutDir=bsd_amd64_docs jvmtidocs
>> /Users/aruld/soylatte16-amd64-1.0.3/bin/javac -g -encoding ascii -source 6
>> -target 6 -d bsd_amd64_docs
>> /Users/aruld/bsd-port/hotspot/src/share/vm/prims/jvmtiGen.java
>> Generating bsd_amd64_docs/jvmti.html
>> /Users/aruld/soylatte16-amd64-1.0.3/bin/java -classpath bsd_amd64_docs
>> jvmtiGen -IN /Users/aruld/bsd-port/hotspot/src/share/vm/prims/jvmti.xml -XSL
>> /Users/aruld/bsd-port/hotspot/src/share/vm/prims/jvmti.xsl -OUT
>> bsd_amd64_docs/jvmti.html
>> make VM_SUBDIR=product                            generic_export
>> Makefile:336: target `/Xusage.txt' given more than once in the same rule.
>> make[3]: *** No rule to make target
>> `/Users/aruld/bsd-port/build/bsd-amd64/hotspot/import/docs/platform/jvmti/jvmti.html',
>> needed by `generic_export'.  Stop.
>> make[2]: *** [export_product] Error 2
>> make[1]: *** [hotspot-build] Error 2
>> make: *** [build_product_image] Error 2
>>
>> Not sure what is the problem here. is it failing because of there is no
>> 64-bit compiler or something else. Appreciate any directions.
>>
>> -Arul
>>
>>
>>
>>
>
>
> --
> John Yeary
> --
> http://javaevangelist.blogspot.com
> http://www.johnyeary.com
>
> "Far better it is to dare mighty things, to win glorious triumphs, even
> though checkered by failure, than to take rank with those poor spirits who
> neither enjoy much nor suffer much, because they live in the gray twilight
> that knows not victory nor defeat."
> -- Theodore Roosevelt
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20101008/e51ab529/attachment.html 


More information about the bsd-port-dev mailing list