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

MacPorts noreply at macports.org
Wed Nov 3 04:22:37 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 henri.gomez@…):

 Replying to [comment:35 johnsonlaucn@…]:

 > It seems that the makefile wrongly detected your platform as x86_64 and
 causing a non-existed target[[BR]]
 >
 (/opt/local/var/macports/build/_Users_henri_ports_java_openjdk6/work/build
 /bsd-x86_64/hotspot/import/docs/platform/jvmti/jvmti.html)[[BR]]
 > to be executed, which should be amd64 in this case.
 > The generic_export target relies on a variable named EXPORT_LIST defined
 in hotspot/make/bsd/makefiles/defs.make.
 > Would you please confirm that the patch-hotspot-arch is applied
 correctly already?


 {{{
 diff -u -r ../work-orig/hotspot/make/bsd/makefiles/gcc.make
 ./hotspot/make/bsd/makefiles/gcc.make
 --- ../work-orig/hotspot/make/bsd/makefiles/gcc.make    2010-10-31
 04:38:09.000000000 +0800
 +++ ./hotspot/make/bsd/makefiles/gcc.make       2010-10-31
 04:46:25.000000000 +0800
 @@ -76,9 +76,6 @@
  ifeq ($(OS_VENDOR), Darwin)
    # Ineffecient 16-byte stack re-alignment on Darwin/IA32
    ARCHFLAG/i486 += -mstackrealign
 -
 -  # -arch compiler flag required for x64_64
 -  ARCHFLAGS/amd64 += -arch x86_64
  endif

  CFLAGS     += $(ARCHFLAG)
 }}}


 here is the part in gcc.make

 {{{
 ARCHFLAG = $(ARCHFLAG/$(BUILDARCH))
 ARCHFLAG/i486    = -m32 -march=i586
 ARCHFLAG/amd64   = -m64
 ARCHFLAG/ia64    =
 ARCHFLAG/sparc   = -m32 -mcpu=v9
 ARCHFLAG/sparcv9 = -m64 -mcpu=v9
 ARCHFLAG/zero    = $(ZERO_ARCHFLAG)

 # Darwin-specific build flags
 ifeq ($(OS_VENDOR), Darwin)
   # Ineffecient 16-byte stack re-alignment on Darwin/IA32
   ARCHFLAG/i486 += -mstackrealign
 endif

 CFLAGS     += $(ARCHFLAG)
 AOUT_FLAGS += $(ARCHFLAG)
 LFLAGS     += $(ARCHFLAG)
 ASFLAGS    += $(ARCHFLAG)

 # Use C++ Interpreter
 ifdef CC_INTERP
   CFLAGS += -DCC_INTERP
 endif

 # Keep temporary files (.ii, .s)
 ifdef NEED_ASM
   CFLAGS += -save-temps
 else
   CFLAGS += -pipe
 endif

 }}}

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


More information about the macports-tickets mailing list