Skip to content

Install phase fails when using --enable-shared

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

Edited by Ian Lynagh -
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information