build failure on FreeBSD 9.1

Ian Lynagh ian at
Tue Mar 19 20:22:30 CET 2013

On Tue, Mar 19, 2013 at 12:02:37PM +0900, Kazu Yamamoto wrote:
> Thank you. Building now works. But "validate" fails.
> "/usr/home/kazu/work/ghc/bindisttest/install   dir/lib/ghc-7.7.20130319/bin/ghc-pkg" --force --global-package-db "/usr/home/kazu/work/ghc/bindisttest/install   dir/lib/ghc-7.7.20130319/package.conf.d" update rts/package.conf.install
> Shared object "" not found, required by ""

I can't reproduce this. My ghc-pkg can find libffi:

$ ldd "/home/ian/ghc/git/ghc/bindisttest/install   dir/lib/ghc-7.7.20130319/bin/ghc-pkg" | grep ffi => /home/ian/ghc/git/ghc/bindisttest/install   dir/lib/ghc-7.7.20130319/bin/../rts-1.0/ (0x00007fd2faf6e000)

The library exists:

$ ls -l "/home/ian/ghc/git/ghc/bindisttest/install   dir/lib/ghc-7.7.20130319/bin/../rts-1.0/"
-rw-r--r-- 1 ian ian 105366 Mar 19 18:15 /home/ian/ghc/git/ghc/bindisttest/install   dir/lib/ghc-7.7.20130319/bin/../rts-1.0/

It was installed earlier, by:

for i in  rts/dist/build/libHSrts.a [...] rts/dist/build/ rts/dist/build/ rts/dist/build/ ; do case $i in *.a) /usr/bin/install -c -m 644  $i  "/home/ian/ghc/git/ghc/bindisttest/install   dir/lib/ghc-7.7.20130319/rts-1.0"; true  "/home/ian/ghc/git/ghc/bindisttest/install   dir/lib/ghc-7.7.20130319/rts-1.0"/`basename $i` ;; *.dll) /usr/bin/install -c -m 755  $i  "/home/ian/ghc/git/ghc/bindisttest/install   dir/lib/ghc-7.7.20130319/rts-1.0" ; :  "/home/ian/ghc/git/ghc/bindisttest/install   dir/lib/ghc-7.7.20130319/rts-1.0"/`basename $i` ;; *.so) /usr/bin/install -c -m 755  $i  "/home/ian/ghc/git/ghc/bindisttest/install   dir/lib/ghc-7.7.20130319/rts-1.0" ;; *.dylib) /usr/bin/install -c -m 755  $i  "/home/ian/ghc/git/ghc/bindisttest/install   dir/lib/ghc-7.7.20130319/rts-1.0";; *) /usr/bin/install -c -m 644  $i  "/home/ian/ghc/git/ghc/bindisttest/install   dir/lib/ghc-7.7.20130319/rts-1.0"; esac; done

Which bit is it that goes wrong for you?


More information about the ghc-devs mailing list