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

MacPorts noreply at macports.org
Sun Jul 6 21:11:44 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 egall@…):

 Replying to [comment:34 egall@…]:
 > although that might be due to `ccache` using the gcc stuff from my last
 failed build; let me disable ccache, clean, and then try again...
 Turns out nope, it was '''not''' a `ccache` issue; I tried doing it
 manually and ran into the same issues. Here it is with the `-v` flag that
 it recommended trying:

 {{{
 $ sudo /usr/bin/clang -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude
 -I../src -I/opt/local/include -I. -I../include -Iinclude -I../src -pipe
 -Os -arch i386 -c ../src/x86/win32.S -v -o src/x86/.libs/win32.o
 Apple clang version 1.7 (tags/Apple/clang-77) (based on LLVM 2.9svn)
 Target: i386-apple-darwin10
 Thread model: posix
  "/usr/bin/clang" -cc1 -triple i386-apple-darwin10.0.0 -E -disable-free
 -disable-llvm-verifier -main-file-name win32.S -pic-level 1 -mdisable-fp-
 elim -target-cpu yonah -target-linker-version 97.17 -v -resource-dir
 /usr/bin/../lib/clang/1.7 -D HAVE_CONFIG_H -I . -I .. -I . -I ../include
 -I include -I ../src -I /opt/local/include -I . -I ../include -I include
 -I ../src -Os -ferror-limit 19 -fmessage-length 209 -stack-protector 1
 -fblocks -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-ELN12u.s
 -x assembler-with-cpp ../src/x86/win32.S
 clang -cc1 version 1.7 based upon llvm 2.9svn hosted on x86_64-apple-
 darwin10
 ignoring duplicate directory "."
 ignoring duplicate directory "."
 ignoring duplicate directory "../include"
 ignoring duplicate directory "include"
 ignoring duplicate directory "../src"
 #include "..." search starts here:
 #include <...> search starts here:
  .
  ..
  ../include
  include
  ../src
  /opt/local/include
  /usr/local/include
  /usr/bin/../lib/clang/1.7/include
  /usr/include
  /System/Library/Frameworks (framework directory)
  /Library/Frameworks (framework directory)
 End of search list.
  "/usr/bin/as" -arch i386 -force_cpusubtype_ALL -o src/x86/.libs/win32.o
 /tmp/cc-ELN12u.s
 ../src/x86/win32.S:1285:section difference relocatable subtraction
 expression, ".LFE5" minus ".LFB5" using a symbol at the end of section
 will not produce an assembly time constant
 ../src/x86/win32.S:1285:use a symbol with a constant value created with an
 assignment instead of the expression, L_const_sym = .LFE5 - .LFB5
 ../src/x86/win32.S:1277:section difference relocatable subtraction
 expression, ".LEFDE5" minus ".LASFDE5" using a symbol at the end of
 section will not produce an assembly time constant
 ../src/x86/win32.S:1277:use a symbol with a constant value created with an
 assignment instead of the expression, L_const_sym = .LEFDE5 - .LASFDE5
 ../src/x86/win32.S:unknown:missing indirect symbols for section
 (__IMPORT,__jump_table)
 clang: error: assembler command failed with exit code 1 (use -v to see
 invocation)
 }}}
 As you can see it is still using `/usr/bin/as`, which is the same
 assembler that gcc would have been using. Passing the `-integrated-as`
 flag to `clang` allows the file to compile successfully:
 {{{
 $ sudo /usr/bin/clang -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude
 -I../src -I/opt/local/include -I. -I../include -Iinclude -I../src -pipe
 -Os -arch i386 -c ../src/x86/win32.S -v -integrated-as -o
 src/x86/.libs/win32.o
 Apple clang version 1.7 (tags/Apple/clang-77) (based on LLVM 2.9svn)
 Target: i386-apple-darwin10
 Thread model: posix
  "/usr/bin/clang" -cc1 -triple i386-apple-darwin10.0.0 -E -disable-free
 -disable-llvm-verifier -main-file-name win32.S -pic-level 1 -mdisable-fp-
 elim -target-cpu yonah -target-linker-version 97.17 -v -resource-dir
 /usr/bin/../lib/clang/1.7 -D HAVE_CONFIG_H -I . -I .. -I . -I ../include
 -I include -I ../src -I /opt/local/include -I . -I ../include -I include
 -I ../src -Os -ferror-limit 19 -fmessage-length 209 -stack-protector 1
 -fblocks -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-8SbMyN.s
 -x assembler-with-cpp ../src/x86/win32.S
 clang -cc1 version 1.7 based upon llvm 2.9svn hosted on x86_64-apple-
 darwin10
 ignoring duplicate directory "."
 ignoring duplicate directory "."
 ignoring duplicate directory "../include"
 ignoring duplicate directory "include"
 ignoring duplicate directory "../src"
 #include "..." search starts here:
 #include <...> search starts here:
  .
  ..
  ../include
  include
  ../src
  /opt/local/include
  /usr/local/include
  /usr/bin/../lib/clang/1.7/include
  /usr/include
  /System/Library/Frameworks (framework directory)
  /Library/Frameworks (framework directory)
 End of search list.
  "/usr/bin/clang" -cc1as -triple i386-apple-darwin10.0.0 -filetype obj -o
 src/x86/.libs/win32.o /tmp/cc-8SbMyN.s
 }}}

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


More information about the macports-tickets mailing list