#2977: Install phase fails when using --enable-shared
-------------------+--------------------------------------------------------
Reporter: ingmar | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.11 | Severity: normal
Keywords: | Testcase:
Os: Linux | Architecture: x86_64 (amd64)
-------------------+--------------------------------------------------------
Using todays snapshot (6.11.20090123), --enable-shared fails to install
because the ghc-pkg we just built can't find its shared objects when run
from the build directory.
The install command used is:
make -j5 -l5 -j1 DESTDIR=/var/tmp/paludis/build/dev-lang-
ghc-6.11.20090123/image/ install-docs install
Output snippet:
------------------------------------------------------------------------
== make install -rl 5;
in /var/tmp/paludis/build/dev-lang-
ghc-6.11.20090123/work/ghc-6.11.20090123/libffi
------------------------------------------------------------------------
x86_64-pc-linux-gnu-gcc -E -undef -traditional -P -DINSTALLING \
-DIMPORT_DIR='"/usr/lib64/ghc-6.11.20090123/imports"' \
-DLIB_DIR='"/usr/lib64/ghc-6.11.20090123"' \
-DINCLUDE_DIR='"/usr/lib64/ghc-6.11.20090123/include"' \
-DDATA_DIR='"/usr/lib64/ghc-6.11.20090123"' \
-DHTML_DIR='"/usr/lib64/ghc-6.11.20090123/html/libraries/ffi"' \
-DHADDOCK_IFACE='"/usr/lib64/ghc-6.11.20090123/html/libraries/ffi/ffi.haddock"'
\
-I../includes \
-x c -I../includes -Iinclude -DPACKAGE=ffi -DVERSION=
-DPKG_LIBDIR='"/usr/lib64/ghc-6.11.20090123"'
-DPKG_DATADIR='"/usr/lib64/ghc-6.11.20090123"' package.conf.in \
| grep -v '^#pragma GCC' \
| sed -e 's/""//g' -e 's/:[ ]*,/: /g' \
| /var/tmp/paludis/build/dev-lang-
ghc-6.11.20090123/work/ghc-6.11.20090123/utils/ghc-pkg/dist-install/build
/ghc-pkg/ghc-pkg --global-conf /var/tmp/paludis/build/dev-lang-
ghc-6.11.20090123/image//usr/lib64/ghc-6.11.20090123/package.conf update -
--force
/var/tmp/paludis/build/dev-lang-
ghc-6.11.20090123/work/ghc-6.11.20090123/utils/ghc-pkg/dist-install/build
/ghc-pkg/ghc-pkg: error while loading shared libraries:
libHShaskell98-1.0.1.0-ghc6.11.20090123.so: cannot open shared object
file: No such file or directory
make[1]: *** [install] Error 127
make: *** [install] Error 1
I'll attach a full build log
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2977>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs