build failure on FreeBSD 9.1

Páli Gábor János pali.gabor at gmail.com
Sun Mar 24 22:08:14 CET 2013


On Sun, Mar 24, 2013 at 3:51 PM, Páli Gábor János <pali.gabor at gmail.com> wrote:
> On Sun, Mar 24, 2013 at 12:50 PM, Kazu Yamamoto <kazu at iij.ad.jp> wrote:
>> % ghci
>> Shared object "libffi.so.6" not found, required by "libHSrts_thr-ghc7.7.20130323.so"
>
> What is the version of your devel/libffi port?  Could not adding
> --with-system-libffi and related flags to the configuration phase fix
> the problem?  Note that you can experience nice problems if the
> version of the in-tree and system libffi.so files differ.

It works for me (i.e. the "binary-dist" and "test_bindist" targets do
not give me errors) if I use the --with-system-libffi flags, and
ldd(1) shows that everything is okay:

$ ldd bindisttest/HelloWorld
bindisttest/HelloWorld:
        libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28126000)
        libgmp.so.10 => /usr/local/lib/libgmp.so.10 (0x2821e000)
        libm.so.5 => /lib/libm.so.5 (0x28281000)
        librt.so.1 => /usr/lib/librt.so.1 (0x2829b000)
        libffi.so.6 => /usr/local/lib/libffi.so.6 (0x282a0000)
        libc.so.7 => /lib/libc.so.7 (0x282a6000)

$ pkg info -x libffi
libffi-3.0.11                  Foreign Function Interface

However, if I do not use --with-system-libffi, but libffi.so.6 is
present on the system, the following happens at gmake binary-dist
(just for your information):

$ gmake binary-dist
[snip]
tar: ghc-7.7.20130324/rts/dist/build/libffi.a: Cannot stat: No such
file or directory
tar: ghc-7.7.20130324/rts/dist/build/libffi_p.a: Cannot stat: No such
file or directory
tar: ghc-7.7.20130324/rts/dist/build/libffi_l.a: Cannot stat: No such
file or directory
tar: ghc-7.7.20130324/rts/dist/build/libffi_debug.a: Cannot stat: No
such file or directory
tar: ghc-7.7.20130324/rts/dist/build/libffi_thr.a: Cannot stat: No
such file or directory
tar: ghc-7.7.20130324/rts/dist/build/libffi_thr_debug.a: Cannot stat:
No such file or directory
tar: ghc-7.7.20130324/rts/dist/build/libffi_thr_l.a: Cannot stat: No
such file or directory
tar: ghc-7.7.20130324/rts/dist/build/libffi_thr_p.a: Cannot stat: No
such file or directory
tar: ghc-7.7.20130324/rts/dist/build/libffi_debug-ghc7.7.20130324.so:
Cannot stat: No such file or directory
tar: ghc-7.7.20130324/rts/dist/build/libffi_thr-ghc7.7.20130324.so:
Cannot stat: No such file or directory
tar: ghc-7.7.20130324/rts/dist/build/libffi_thr_debug-ghc7.7.20130324.so:
Cannot stat: No such file or directory
tar: ghc-7.7.20130324/rts/dist/build/libffi_l-ghc7.7.20130324.so:
Cannot stat: No such file or directory
tar: ghc-7.7.20130324/rts/dist/build/libffi_thr_l-ghc7.7.20130324.so:
Cannot stat: No such file or directory
tar: ghc-7.7.20130324/rts/dist/build/libffi-6.dll: Cannot stat: No
such file or directory
tar: Error exit delayed from previous errors.
mv bindistprep/*.tar.bz2 .



More information about the ghc-devs mailing list