[MacPorts] #61170: libffi @3.3_1 fails to build on 10.5 i386

MacPorts noreply at macports.org
Sun Sep 13 20:41:49 UTC 2020


#61170: libffi @3.3_1 fails to build on 10.5 i386
------------------------+--------------------
  Reporter:  fhgwright  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.3
Resolution:             |   Keywords:
      Port:  libffi     |
------------------------+--------------------

Comment (by kencu):

 this one is being very stubborn. So far I cannot find the right chord of
 options to pass to the toolchain to make it all happy. The build really
 assumes that PIC will work on darwin, and it's not easy to knock it off
 that assumption. Perhaps seeing how the i386 version built would give some
 insight.

 I have this much in the Portfile:
 {{{
 configure.env-append lt_cv_prog_compiler_pic_works=no
 configure.env-append lt_cv_prog_compiler_pic_works_CXX=no
 configure.env-append lt_cv_prog_compiler_pic=
 configure.env-append lt_cv_prog_compiler_pic_CXX=
 configure.args-append --without-pic
 configure.cflags-append -mdynamic-no-pic
 }}}
 and it get to the final link and fails
 {{{
 libtool: link: /usr/bin/gcc-4.2 -dynamiclib  -o .libs/libffi.7.dylib
 src/.libs/prep_cif.o src/.libs/types.o src/.libs/raw_api.o
 src/.libs/java_raw_api.o src/.libs/closures.o src/x86/.libs/ffi.o
 src/x86/.libs/sysv.o    -L/opt/bootstrap/lib  -Os -mdynamic-no-pic -arch
 i386 -Wl,-headerpad_max_install_names -Wl,-read_only_relocs -Wl,suppress
 -arch i386 -Wl,-headerpad_max_install_names -Wl,-read_only_relocs
 -Wl,suppress -arch i386   -install_name  /opt/bootstrap/lib/libffi.7.dylib
 -compatibility_version 9 -current_version 9.0 -Wl,-single_module
 ld: in src/x86/.libs/sysv.o, in section __TEXT,__eh_frame reloc 0: bad
 length for GENERIC_RELOC_SECTDIFF
 collect2: ld returned 1 exit status
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/61170#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list