Opened 2 years ago

Closed 2 years ago

#7784 closed bug (fixed)

problems building HEAD dynamic on linux

Reported by: luite Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.7
Keywords: Cc: stephen.blackheath@…, krz.gogolewski@…, byorgey@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

hi, I'm seeing some problems when installing a perf build of HEAD, on my x86_64 Ubuntu 12.04 server, booting with GHC 7.6.2:

Reproducing is very simple on my system:

# git clone https://github.com/ghc/ghc
# cd ghc
# ./sync-all get
# perl boot
# ./configure --prefix=/home/luite/haskell/ghc-7.7-testinstall
# make -j8
# make install
....
"/home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/ghc-pkg" --force --global-package-db "/home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/package.conf.d" update rts/package.conf.install
/home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/ghc-pkg: error while loading shared libraries: libHSterminfo-0.3.2.5-ghc7.7.20130320.so: cannot open shared object file: No such file or directory
make[1]: *** [install_packages] Error 127
make: *** [install] Error 2

other executables have the same problem, the missing libraries appear to have an empty installation directory in a libraries subdir, without version info:

# ls -l /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/libraries
drwxr-xr-x 2 luite luite 4096 Mar 21 23:40 haskeline-
drwxr-xr-x 2 luite luite 4096 Mar 21 23:40 terminfo-
drwxr-xr-x 2 luite luite 4096 Mar 21 23:40 xhtml-

some info:

# ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.2
# export
declare -x HOME="/home/luite"
declare -x LANG="en_US.UTF-8"
declare -x LANGUAGE="en_US"
declare -x LC_CTYPE="en_US.UTF-8"
declare -x LC_MESSAGES="POSIX"
declare -x LESSCLOSE="/usr/bin/lesspipe %s %s"
declare -x LESSOPEN="| /usr/bin/lesspipe %s"
declare -x LOGNAME="luite"
declare -x LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
declare -x MAIL="/var/mail/luite"
declare -x OLDPWD="/home/luite/hask/ghc-test2/buildtest"
declare -x PATH="/home/luite/haskell/ghc-7.6.2/bin:/home/luite/bin:/home/luite/.cabal/bin:/home/luite/haskell/ghc/bin:/home/luite/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
declare -x PWD="/home/luite/hask/ghc-test2/buildtest/ghc"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_CLIENT="2001:980:1434:1:8d49:272f:e00f:3e1e 65029 22"
declare -x SSH_CONNECTION="2001:980:1434:1:8d49:272f:e00f:3e1e 65029 2a01:4f8:190:30a1::2 22"
declare -x SSH_TTY="/dev/pts/1"
declare -x TERM="xterm-256color"
declare -x USER="luite"


# ldd /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/ghc-pkg
	linux-vdso.so.1 =>  (0x00007fff9a3ff000)
	libHSterminfo-0.3.2.5-ghc7.7.20130320.so => not found
	libHSbin-package-db-0.0.0.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../bin-package-db-0.0.0.0/libHSbin-package-db-0.0.0.0-ghc7.7.20130320.so (0x00007f421af38000)
	libHSbinary-0.7.0.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../binary-0.7.0.0/libHSbinary-0.7.0.0-ghc7.7.20130320.so (0x00007f421acb4000)
	libHSCabal-1.17.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../Cabal-1.17.0/libHSCabal-1.17.0-ghc7.7.20130320.so (0x00007f421a21d000)
	libHSprocess-1.2.0.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../process-1.2.0.0/libHSprocess-1.2.0.0-ghc7.7.20130320.so (0x00007f421a001000)
	libHSpretty-1.1.1.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../pretty-1.1.1.0/libHSpretty-1.1.1.0-ghc7.7.20130320.so (0x00007f4219de1000)
	libHSdirectory-1.2.0.1-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../directory-1.2.0.1/libHSdirectory-1.2.0.1-ghc7.7.20130320.so (0x00007f4219bc2000)
	libHSunix-2.7.0.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../unix-2.7.0.0/libHSunix-2.7.0.0-ghc7.7.20130320.so (0x00007f42198f2000)
	libHStime-1.4.0.2-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../time-1.4.0.2/libHStime-1.4.0.2-ghc7.7.20130320.so (0x00007f42195c8000)
	libHSfilepath-1.3.0.2-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../filepath-1.3.0.2/libHSfilepath-1.3.0.2-ghc7.7.20130320.so (0x00007f42193a6000)
	libHSbytestring-0.10.3.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../bytestring-0.10.3.0/libHSbytestring-0.10.3.0-ghc7.7.20130320.so (0x00007f42190ad000)
	libHSbase-4.7.0.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../base-4.7.0.0/libHSbase-4.7.0.0-ghc7.7.20130320.so (0x00007f4218739000)
	libHSinteger-gmp-0.5.1.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../integer-gmp-0.5.1.0/libHSinteger-gmp-0.5.1.0-ghc7.7.20130320.so (0x00007f4218524000)
	libHSghc-prim-0.3.1.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../ghc-prim-0.3.1.0/libHSghc-prim-0.3.1.0-ghc7.7.20130320.so (0x00007f42182aa000)
	libHSrts-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../rts-1.0/libHSrts-ghc7.7.20130320.so (0x00007f4218047000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4217c88000)
	libHScontainers-0.5.0.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../binary-0.7.0.0/../containers-0.5.0.0/libHScontainers-0.5.0.0-ghc7.7.20130320.so (0x00007f421789a000)
	libHSarray-0.4.0.2-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../binary-0.7.0.0/../array-0.4.0.2/libHSarray-0.4.0.2-ghc7.7.20130320.so (0x00007f42175e1000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f42173c2000)
	libHSdeepseq-1.3.0.2-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../Cabal-1.17.0/../deepseq-1.3.0.2/libHSdeepseq-1.3.0.2-ghc7.7.20130320.so (0x00007f42171b9000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f4216fb4000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f4216db0000)
	libHSold-locale-1.0.0.5-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../time-1.4.0.2/../old-locale-1.0.0.5/libHSold-locale-1.0.0.5-ghc7.7.20130320.so (0x00007f4216b9b000)
	libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f421692c000)
	libffi.so.6 => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../rts-1.0/libffi.so.6 (0x00007f421671f000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f4216423000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f421621a000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f421b15b000)





# ldd /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/ghc

	linux-vdso.so.1 =>  (0x00007fff28bff000)
	libHShaskeline-0.7.0.4-ghc7.7.20130320.so => not found
	libHSghc-7.7.20130320-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../ghc-7.7.20130320/libHSghc-7.7.20130320-ghc7.7.20130320.so (0x00007f8a73da4000)
	libHStransformers-0.3.0.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../transformers-0.3.0.0/libHStransformers-0.3.0.0-ghc7.7.20130320.so (0x00007f8a73af6000)
	libHSprocess-1.2.0.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../process-1.2.0.0/libHSprocess-1.2.0.0-ghc7.7.20130320.so (0x00007f8a738da000)
	libHScontainers-0.5.0.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../containers-0.5.0.0/libHScontainers-0.5.0.0-ghc7.7.20130320.so (0x00007f8a734ec000)
	libHSdirectory-1.2.0.1-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../directory-1.2.0.1/libHSdirectory-1.2.0.1-ghc7.7.20130320.so (0x00007f8a732cd000)
	libHSunix-2.7.0.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../unix-2.7.0.0/libHSunix-2.7.0.0-ghc7.7.20130320.so (0x00007f8a72ffd000)
	libHSfilepath-1.3.0.2-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../filepath-1.3.0.2/libHSfilepath-1.3.0.2-ghc7.7.20130320.so (0x00007f8a72ddc000)
	libHSbytestring-0.10.3.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../bytestring-0.10.3.0/libHSbytestring-0.10.3.0-ghc7.7.20130320.so (0x00007f8a72ae2000)
	libHSbase-4.7.0.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../base-4.7.0.0/libHSbase-4.7.0.0-ghc7.7.20130320.so (0x00007f8a7216e000)
	libHSinteger-gmp-0.5.1.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../integer-gmp-0.5.1.0/libHSinteger-gmp-0.5.1.0-ghc7.7.20130320.so (0x00007f8a71f59000)
	libHSghc-prim-0.3.1.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../ghc-prim-0.3.1.0/libHSghc-prim-0.3.1.0-ghc7.7.20130320.so (0x00007f8a71cdf000)
	libHSrts_thr-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../rts-1.0/libHSrts_thr-ghc7.7.20130320.so (0x00007f8a71a72000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8a716b3000)
	libHStemplate-haskell-2.9.0.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../ghc-7.7.20130320/../template-haskell-2.9.0.0/libHStemplate-haskell-2.9.0.0-ghc7.7.20130320.so (0x00007f8a71205000)
	libHShpc-0.6.0.1-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../ghc-7.7.20130320/../hpc-0.6.0.1/libHShpc-0.6.0.1-ghc7.7.20130320.so (0x00007f8a70fd4000)
	libHShoopl-3.10.0.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../ghc-7.7.20130320/../hoopl-3.10.0.0/libHShoopl-3.10.0.0-ghc7.7.20130320.so (0x00007f8a70d52000)
	libHSbin-package-db-0.0.0.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../ghc-7.7.20130320/../bin-package-db-0.0.0.0/libHSbin-package-db-0.0.0.0-ghc7.7.20130320.so (0x00007f8a70b3a000)
	libHSbinary-0.7.0.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../ghc-7.7.20130320/../binary-0.7.0.0/libHSbinary-0.7.0.0-ghc7.7.20130320.so (0x00007f8a708b5000)
	libHSCabal-1.17.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../ghc-7.7.20130320/../Cabal-1.17.0/libHSCabal-1.17.0-ghc7.7.20130320.so (0x00007f8a6fe1f000)
	libHSpretty-1.1.1.0-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../ghc-7.7.20130320/../pretty-1.1.1.0/libHSpretty-1.1.1.0-ghc7.7.20130320.so (0x00007f8a6fbff000)
	libHStime-1.4.0.2-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../ghc-7.7.20130320/../time-1.4.0.2/libHStime-1.4.0.2-ghc7.7.20130320.so (0x00007f8a6f8d5000)
	libHSarray-0.4.0.2-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../ghc-7.7.20130320/../array-0.4.0.2/libHSarray-0.4.0.2-ghc7.7.20130320.so (0x00007f8a6f61c000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f8a6f3fe000)
	libHSdeepseq-1.3.0.2-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../process-1.2.0.0/../deepseq-1.3.0.2/libHSdeepseq-1.3.0.2-ghc7.7.20130320.so (0x00007f8a6f1f4000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f8a6eff0000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8a6edec000)
	libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f8a6eb7d000)
	libffi.so.6 => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../rts-1.0/libffi.so.6 (0x00007f8a6e970000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8a6e673000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f8a6e46b000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f8a76f9c000)
	libHSold-locale-1.0.0.5-ghc7.7.20130320.so => /home/luite/haskell/ghc-7.7-testinstall/lib/ghc-7.7.20130320/bin/../ghc-7.7.20130320/../time-1.4.0.2/../old-locale-1.0.0.5/libHSold-locale-1.0.0.5-ghc7.7.20130320.so (0x00007f8a6e255000)

Change History (7)

comment:1 Changed 2 years ago by StephenBlackheath

  • Cc stephen.blackheath@… added

comment:2 Changed 2 years ago by StephenBlackheath

How can I make a usable ghc build at all (how do you do a "static build"?), so I can get on with my life?

comment:3 Changed 2 years ago by StephenBlackheath

Here's how to do a static build: Copy mk/build.mk.sample to mk/build.mk then change the commented out 'quick' line to this. This gives a working ghc.

# Fast build with optimised libraries, no profiling (RECOMMENDED):
BuildFlavour = quick
DYNAMIC_GHC_PROGRAMS=NO

comment:4 Changed 2 years ago by monoidal

  • Cc krz.gogolewski@… added

comment:5 Changed 2 years ago by byorgey

  • Cc byorgey@… added

comment:6 Changed 2 years ago by ian@…

commit 4373e84b60f1bf81b39fb54253fcad23acba025a

Author: Ian Lynagh <[email protected]>
Date:   Sun Apr 7 18:54:25 2013 +0100

    Fix installation; fixes #7784
    
    The build system thought that $(INSTALL_DYNLIBS) contained things
    like "terminfo", but actually it contains things like
    "libraries/terminfo".

 ghc.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

comment:7 Changed 2 years ago by igloo

  • difficulty set to Unknown
  • Resolution set to fixed
  • Status changed from new to closed

Thanks for the reproduction instructions; fixed.

Note: See TracTickets for help on using tickets.