https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64855
Bug ID: 64855 Summary: FAIL: libffi.call/* -W -Wall -Wno-psabi -O0 -DABI_NUM=* -DABI_ATTR=* execution test on x86_64-apple-darwin* Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libffi Assignee: unassigned at gcc dot gnu.org Reporter: dominiq at lps dot ens.fr CC: doko at gcc dot gnu.org, howarth at bromo dot med.uc.edu, iains at gcc dot gnu.org, rth at gcc dot gnu.org Host: x86_64-apple-darwin* Target: x86_64-apple-darwin* Build: x86_64-apple-darwin* After r220158 all the lib tests of the kind 'libffi.call/* -W -Wall -Wno-psabi -O0 -DABI_NUM=* -DABI_ATTR=*' fail on x86_64-apple-darwin*: see https://gcc.gnu.org/ml/gcc-testresults/2015-01/msg03329.html. While these failures are exposed by r220158, they were for new tests introduced by r219477. Note that trying to run struct5.exe compiled with /opt/gcc/build_w/gcc/xgcc -B/opt/gcc/build_w/gcc/ /opt/gcc/work/libffi/testsuite/libffi.call/struct5.c -W -Wall -Wno-psabi -O2 -DABI_NUM=FFI_STDCALL -DABI_ATTR=__STDCALL__ -I/opt/gcc/build_w/x86_64-apple-darwin14.1.0/i386/libffi/include -I/opt/gcc/work/libffi/include -I/opt/gcc/build_w/x86_64-apple-darwin14.1.0/i386/libffi/ -L/opt/gcc/build_w/x86_64-apple-darwin14.1.0/i386/libffi/.libs -L/opt/gcc/build_w/x86_64-apple-darwin14.1.0/i386/libstdc++-v3/src/.libs -Wl,-allow_stack_execute -shared-libgcc -lffi -lm -m32 -o ./struct5.exe gives dyld: Library not loaded: /opt/gcc/gcc4.10w/lib/i386/libffi.4.dylib Referenced from: /Users/dominiq/Documents/Fortran/g95bench/win/f90/bug/struct5.exe Reason: image not found Trace/BPT trap First I don't understand why /opt/gcc/build_w/gcc/xgcc -B/opt/gcc/build_w/gcc/ refers to my install directory. Second, I don't find any libffi library in my install directories under x86_64-apple-darwin14 (4.8 to 5.0), while I found them for x86_64-apple-darwin10 and 4.8 (r209181). Is this intended?