https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64572

            Bug ID: 64572
           Summary: r219477 breaks bootstrap on x86_64 darwin
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libffi
          Assignee: unassigned at gcc dot gnu.org
          Reporter: howarth at bromo dot med.uc.edu

The commit of...

r219477 | rth | 2015-01-12 11:19:59 -0500 (Mon, 12 Jan 2015) | 1 line

Merge libffi to upstream commit c82cc159426d8d4402375fa1ae3f045b9cf82e16

breaks the bootstrap on x86_64 darwin with the linkage error...

make[4]: Entering directory
'/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin14.1.0/libffi'
/bin/sh ./libtool --tag=CC   --mode=link
/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/./gcc/xgcc
-B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/./gcc/
-B/sw/lib/gcc5.0/x86_64-apple-darwin14.1.0/bin/
-B/sw/lib/gcc5.0/x86_64-apple-darwin14.1.0/lib/ -isystem
/sw/lib/gcc5.0/x86_64-apple-darwin14.1.0/include -isystem
/sw/lib/gcc5.0/x86_64-apple-darwin14.1.0/sys-include    -Wall -g -fexceptions 
-g -O2 -no-undefined -version-info `grep -v '^#'
../../../gcc-5-20150112/libffi/libtool-version`    -o libffi.la -rpath
/sw/lib/gcc5.0/lib src/prep_cif.lo src/types.lo src/raw_api.lo
src/java_raw_api.lo src/closures.lo  src/x86/darwin64_c.lo src/x86/darwin64.lo 
libtool: link: /sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/./gcc/xgcc
-B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/./gcc/
-B/sw/lib/gcc5.0/x86_64-apple-darwin14.1.0/bin/
-B/sw/lib/gcc5.0/x86_64-apple-darwin14.1.0/lib/ -isystem
/sw/lib/gcc5.0/x86_64-apple-darwin14.1.0/include -isystem
/sw/lib/gcc5.0/x86_64-apple-darwin14.1.0/sys-include    -dynamiclib  -o
.libs/libffi.4.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/darwin64_c.o src/x86/.libs/darwin64.o      -install_name 
/sw/lib/gcc5.0/lib/libffi.4.dylib -compatibility_version 5 -current_version 5.1
-Wl,-single_module
Undefined symbols for architecture x86_64:
  "_ffi_prep_raw_closure_loc", referenced from:
      _ffi_prep_raw_closure in raw_api.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status

While libffi/src/x86/darwin_c.c provides ffi_prep_raw_closure_loc for -m32, the
libffi/src/x86/darwin64_c.c, used for -m64, does not.

Reply via email to