[MacPorts] #30516: erlang @R14B03_1+ssl fails to build on OS X 10.6

MacPorts noreply at macports.org
Mon Aug 8 02:34:30 PDT 2011


#30516: erlang @R14B03_1+ssl fails to build on OS X 10.6
-----------------------------------+----------------------------------------
 Reporter:  easieste@…             |       Owner:  bfulgham@…           
     Type:  defect                 |      Status:  new                  
 Priority:  Normal                 |   Milestone:                       
Component:  ports                  |     Version:  2.0.0                
 Keywords:                         |        Port:  erlang               
-----------------------------------+----------------------------------------

Comment(by easieste@…):

 Apparently related to #30012

 It looks like this error occurs when one has Xcode 4 installed on OS X
 10.6, as the configure process on my machine picks up the llvm-gcc-4.2
 compiler.

 Patching as follows enables the build to get past the hipe error on OS X
 10.6:

 {{{
 Index: Portfile
 ===================================================================
 --- Portfile    (revision 82103)
 +++ Portfile    (working copy)
 @@ -102,6 +102,11 @@
      # This is a workaround.
      patchfiles-append   patch-erts_emulator_sys_unix_ddll.c.diff
      configure.ldflags-append -framework CoreFoundation
 +
 +    configure.cflags-delete -O2
 +    configure.cxxflags-delete -O2
 +    configure.cflags-append -O0
 +    configure.cxxflags-append -O0
  }

  platform darwin 11 {
 }}}

 The "correct" thing is probably to first detect if XCode 4 is installed on
 OS X 10.6, then change the compiler flags.  Can someone reference an
 example of such logic somewhere?

 Or should we just force the use of gcc-4.2 under OS X 10.6?

 {{{
 ===================================================================
 --- Portfile    (revision 82103)
 +++ Portfile    (working copy)
 @@ -102,6 +102,8 @@
      # This is a workaround.
      patchfiles-append   patch-erts_emulator_sys_unix_ddll.c.diff
      configure.ldflags-append -framework CoreFoundation
 +
 +    configure.compiler  gcc-4.2
  }

  platform darwin 11 {
 }}}

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


More information about the macports-tickets mailing list