problem with latest updates

Alexander Strange astrange at apple.com
Tue Mar 8 12:27:24 PST 2011


On Mar 8, 2011, at 11:50 AM, John Rose wrote:

> I had a problem building hotspot from the new sources.
> 
> The file bsd_x86_32.s needed some help with a recent change.
> 
> Also, the cpp symbol __APPLE__ wasn't visible.
> 
> The following patch allows libjvm to be built.
> 
> -- John

__APPLE__ is a built-in preprocessor symbol:

$ echo "" | gcc -E -dM - | grep __APPLE__
#define __APPLE__ 1

What do you see if you remove the first patch hunk?

> 
> -------
> 	hg dif
> diff --git a/make/bsd/makefiles/vm.make b/make/bsd/makefiles/vm.make
> --- a/make/bsd/makefiles/vm.make
> +++ b/make/bsd/makefiles/vm.make
> @@ -125,6 +125,8 @@
>   LIBJVM   = lib$(JVM).dylib
>   LIBJVM_G = lib$(JVM)$(G_SUFFIX).dylib
>   CFLAGS  += -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE
> +  CFLAGS  += -D__APPLE__
> +  ASFLAGS += -D__APPLE__
> else
>   LIBJVM   = lib$(JVM).so
>   LIBJVM_G = lib$(JVM)$(G_SUFFIX).so
> diff --git a/src/os_cpu/bsd_x86/vm/bsd_x86_32.s b/src/os_cpu/bsd_x86/vm/bsd_x86_32.s
> --- a/src/os_cpu/bsd_x86/vm/bsd_x86_32.s
> +++ b/src/os_cpu/bsd_x86/vm/bsd_x86_32.s
> @@ -689,8 +689,8 @@
>         # Support for jlong Atomic::load and Atomic::store.
>         # void _Atomic_move_long(volatile jlong* src, volatile jlong* dst)
>         .p2align 4,,15
> -	.type    _Atomic_move_long, at function
> -_Atomic_move_long:
> +	ELF_TYPE(_Atomic_move_long, at function)
> +SYMBOL(_Atomic_move_long):
>         movl     4(%esp), %eax   # src
>         fildll    (%eax)
>         movl     8(%esp), %eax   # dest
> --------
> 
> 




More information about the bsd-port-dev mailing list