[MacPorts] #44170: libffi @3.1 fails to build on 32-bit systems

MacPorts noreply at macports.org
Thu Jul 10 07:47:24 PDT 2014


#44170: libffi @3.1 fails to build on 32-bit systems
----------------------------+--------------------------
  Reporter:  opr_systems@…  |      Owner:  ryandesign@…
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.3.1
Resolution:                 |   Keywords:  LP32
      Port:  libffi         |
----------------------------+--------------------------

Comment (by hanibal_lector@…):

 Replying to [comment:42 jmr@…]:
 > Replying to [comment:32 mschamschula@…]:
 > > libffi has no bug tracker. I sent an e-mail to the developer:
 green at moxielogic.com.
 > What’s wrong with [https://github.com/atgreen/libffi/issues]?

 First of all i would please you all to download the package of libffi-3.1
 yourself or copy it from the build directory, because I am nearly sure
 that the problem is a macports one.
 I take the package from here
 ftp://sourceware.org/pub/libffi/libffi-3.1.tar.gz and compiled it
 successfully on my mac with macports libs.
 I also tried to get the environment settings from macports main.log, one
 for x86 one for x64 to reproduce the failure without luck.
 For x64:

 {{{
 #!/bin/bash
 CC_PRINT_OPTIONS='YES'
 CC_PRINT_OPTIONS_FILE='/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libffi/libffi/work/.CC_PRINT_OPTIONS'
 CPATH='/macports/include'
 LIBRARY_PATH='/macports/lib'
 MACOSX_DEPLOYMENT_TARGET='10.6'
 CC='/usr/bin/clang'
 CC_PRINT_OPTIONS='YES'
 CC_PRINT_OPTIONS_FILE='/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libffi/libffi/work/.CC_PRINT_OPTIONS'
 CFLAGS='-pipe -Os -arch x86_64'
 CPATH='/macports/include'
 CPPFLAGS='-I/macports/include'
 CXX='/usr/bin/llvm-g++-4.2'
 CXXFLAGS='-pipe -Os -arch x86_64'
 F90FLAGS='-pipe -Os -m64'
 FCFLAGS='-pipe -Os -m64'
 FFLAGS='-pipe -Os -m64'
 INSTALL='/usr/bin/install -c'
 LDFLAGS='-L/macports/lib -Wl,-headerpad_max_install_names -arch x86_64'
 LIBRARY_PATH='/macports/lib'
 MACOSX_DEPLOYMENT_TARGET='10.6'
 NM='/usr/bin/nm'
 OBJC='/usr/bin/clang'
 OBJCFLAGS='-pipe -Os -arch x86_64'
 OBJCXX='/usr/bin/llvm-g++-4.2'
 OBJCXXFLAGS='-pipe -Os'

 cd libffi-3.1

 make clean
 #./configure
 ./configure --prefix=/Spezial/Dev/libffi/build --disable-dependency-
 tracking --disable-dependency-tracking --disable-dependency-tracking
 make >> test_.log
 make install

 cd ..

 }}}

 x86:

 {{{
 #!/bin/bash
 CC_PRINT_OPTIONS='YES'
 CC_PRINT_OPTIONS_FILE='/macports/var/macports/build/_macports_var_macports_sources$
 CPATH='/macports/include'
 LIBRARY_PATH='/macports/lib'
 MACOSX_DEPLOYMENT_TARGET='10.6'
 CC='/usr/bin/clang'
 CC_PRINT_OPTIONS='YES'
 CC_PRINT_OPTIONS_FILE='/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libffi/libffi/work/.CC_PRINT_OPTIONS'
 CFLAGS='-pipe -Os -arch i386'
 CPATH='/macports/include'
 CPPFLAGS='-I/macports/include'
 CXX='/usr/bin/llvm-g++-4.2'
 CXXFLAGS='-pipe -Os -arch i386'
 F90FLAGS='-pipe -Os -m32'
 FCFLAGS='-pipe -Os -m32'
 FFLAGS='-pipe -Os -m32'
 INSTALL='/usr/bin/install -c'
 LDFLAGS='-L/macports/lib -Wl,-headerpad_max_install_names -arch i386'
 LIBRARY_PATH='/macports/lib'
 MACOSX_DEPLOYMENT_TARGET='10.6'
 NM='/usr/bin/nm'
 OBJC='/usr/bin/clang'
 OBJCFLAGS='-pipe -Os -arch i386'
 OBJCXX='/usr/bin/llvm-g++-4.2'
 OBJCXXFLAGS='-pipe -Os'

 cd libffi-3.1

 make clean
 #./configure
 ./configure --prefix=/Spezial/Dev/libffi/build --disable-dependency-
 tracking --disable-dependency-tracking --disable-dependency-tracking
 make >> test_.log
 make install

 cd ..

 }}}

 Maybe some one of you can reproduce the failure inside of macports.

-- 
Ticket URL: <https://trac.macports.org/ticket/44170#comment:44>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list