[MacPorts] #20956: openjdk6: build fails on Snow Leopard with error during "corba-build"

MacPorts noreply at macports.org
Thu Nov 4 13:34:38 PDT 2010


#20956: openjdk6: build fails on Snow Leopard with error during "corba-build"
------------------------------------+---------------------------------------
 Reporter:  dmz@…                   |       Owner:  landonf@…           
     Type:  defect                  |      Status:  assigned            
 Priority:  Normal                  |   Milestone:                      
Component:  ports                   |     Version:  1.8.0               
 Keywords:                          |        Port:  openjdk6            
------------------------------------+---------------------------------------

Comment(by johnsonlaucn@…):

 Replying to [comment:56 henri.gomez@…]:
 >
 > Did you succeed build openjdk6 on a 32bits machine ?
 > It failed for me (but worked in 64bits machine)
 >
 >

 I always test my builds openjdk6 on both 32bit and 64bit kernel mode with
 a 64bit CPU[[BR]]
 (after I figured out how to enter 64bit kernel mode).[[BR]]
 I'll check on your problem later after I finish merging my work with
 landonf's.[[BR]]
 Well, until then, it's unstable, and may cause codes that fix your problem
 become meaningless when changes happen all the time.[[BR]]
 Sorry for that. Hope you can understand.

 Details about the updated 1105.

 1. Most of landonf's work merged.

 2. ARCH and data model detecting relevant changes applied.

  a. The new patch-darwin-arch contains all neccesary modifications
 previously in patch-darwin-arch, patch-hotspot-arch and patch-skip-sa-
 build.

  b. hotspot/make/bsd/makefiles/defs.make came from OpenJDK 7 BSD port repo
 directly, except those changes to EXPORT_LIST and ARCH / data model
 detecting.

  c. ARCH / data model detecting logic (below) may look complicated just
 because I'm intent to make it work both with macports and individually (I
 perfer latter for further developing on OpenJDK).

  It covers all possible circumstances (ARCH_DATA_MODEL or UNAME_MACHINE,
 pass neither and pass both) when invoking directly from command lines.

 {{{
 +OS_VENDOR:=$(shell uname -s)
 +ifeq ($(OS_VENDOR),Darwin)
 +  # Darwin returns i386 for 32bit kernel mode and x86_64 for 64bit kernel
 mode
 +  # regardless of the actual supported architecture.
 +  ifndef UNAME_MACHINE
 +    # UNAME_MACHINE not passed in
 +    ifdef ARCH_DATA_MODEL
 +      # Overrides ARCH with proper value when ARCH_DATA_MODEL passed
 +      ifeq ($(ARCH_DATA_MODEL), 32)
 +        UNAME_MACHINE = i386
 +      else
 +        UNAME_MACHINE = amd64
 +      endif
 +
 +    else
 +      # Defaults to 64bit on Darwin 9+ when ARCH_DATA_MODEL is not passed
 +      ifneq (,$(findstring $(shell uname -r | cut -d '.' -f1), 9 10))
 +        UNAME_MACHINE = amd64
 +      else
 +        UNAME_MACHINE = i386
 +      endif
 +    endif
 +  endif
 +
 +  ARCH = $(UNAME_MACHINE)
 +endif
 }}}

 3. New patch patch-ucontext-vm.make introduced to replace
 patch-10.6-ucontext, as discussed above. (the patch itself is still
 preserved in the tarfile)

 Be aware that the X11/AWT issue in 64bit kernel mode build is not solved.

-- 
Ticket URL: <https://trac.macports.org/ticket/20956#comment:57>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list