Skip to content

Patching libffi fails in Solaris

This is what happens:

gmake[1]: Entering directory `/home/rl/ghc/ghc/libffi'
rm -f -rf libffi-3.0.6 build
/usr/sfw/bin/gtar -zxf libffi-3.0.6.tar.gz
mv libffi-3.0.6 build
chmod +x ln
patch -p0 < libffi-dllize-3.0.6.patch
  Looks like a unified context diff.
Hunk #5 failed at line 344.
Hunk #6 failed at line 165.
Hunk #7 failed at line 33.
3 out of 7 hunks failed: saving rejects to build/include/ffi.h.in.rej
  The next patch looks like a unified context diff.
Hunk #2 failed at line 66.
Hunk #3 failed at line 26.
2 out of 3 hunks failed: saving rejects to build/include/ffi_common.h.rej
done
gmake[1]: *** [stamp.ffi.configure] Error 1

Using GNU patch instead of the Solaris version works.

Trac metadata
Trac field Value
Version 6.11
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information