[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Failure building ghc-7.8 debs



On Mon, Feb 10, 2014 at 1:42 PM, Joachim Breitner <nomeata@debian.org> wrote:
>
> Hi,
>
> Am Montag, den 10.02.2014, 12:03 -0800 schrieb David Fox:
> > I have tried running dpkg-buildpackage on the ghc package uploaded to
> > experimental and I get the same error from both debian wheezy and
> > ubuntu precise after 14 meg of build progress messages:
> >
> >
> >     "inplace/bin/ghc-cabal" copy libraries/template-haskell
> > dist-install "strip" '/work/build/ghc/ghc-7.8.20140130/debian/tmp'
> > '/usr' '/usr/lib/ghc' '/usr/share/doc/ghc-doc/html/libraries' 'v p
> > dyn'
> >
> >   /work/build/ghc/ghc-7.8.20140130/debian/tmp/usr/lib/ghc/bin/ghc-pkg:
> > error while loading shared libraries:
> > libHSterminfo-0.4.0.0-ghc7.8.20140130.so: cannot open shared object
> > file: No such file or directory
> >
> >
> > I'm wondering if the control file is missing some build dependency?
>
> what architecture is this on?
>
> Are you simply building the package from experimental on Debian wheezy,
> without modification? I do practically the same on
> http://deb.haskell.org/dailies/latest/
> without problems...
>
> Do you have ld-gold installed, or use special hardening linker flags?


I am doing a simple build of the package from experimental on an amd64
machine in build environments created by debootstrap. I don't have
ld-gold installed - in fact, I don't even know what that is, nor do I
know what hardening linker flags are.  ;-)

It seems to me that part of the problem is that the package.conf.d
directory used by the ghc-pkg command that is failing is empty:

# strace "/work/build/ghc/ghc-7.8.20140130/debian/tmp/usr/lib/ghc/bin/ghc-pkg"
--force --global-package-db
"/work/build/ghc/ghc-7.8.20140130/debian/tmp/usr/lib/ghc/package.conf.d"
update rts/dist/package.conf.install
execve("/work/build/ghc/ghc-7.8.20140130/debian/tmp/usr/lib/ghc/bin/ghc-pkg",
["/work/build/ghc/ghc-7.8.20140130"..., "--force",
"--global-package-db", "/work/build/ghc/ghc-7.8.20140130"...,
"update", "rts/dist/package.conf.install"], [/* 21 vars */]) = 0
brk(0)                                  = 0x24e2000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7fb7bac3f000
readlink("/proc/self/exe", 0x7fff9ed58410, 4096) = -1 ENOENT (No such
file or directory)
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=29859, ...}) = 0
mmap(NULL, 29859, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb7bac37000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/tls/x86_64/libHSterminfo-0.4.0.0-ghc7.8.20140130.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu/tls/x86_64", 0x7fff9ed58d60) = -1 ENOENT
(No such file or directory)
open("/lib/x86_64-linux-gnu/tls/libHSterminfo-0.4.0.0-ghc7.8.20140130.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu/tls", 0x7fff9ed58d60) = -1 ENOENT (No such
file or directory)
open("/lib/x86_64-linux-gnu/x86_64/libHSterminfo-0.4.0.0-ghc7.8.20140130.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu/x86_64", 0x7fff9ed58d60) = -1 ENOENT (No
such file or directory)
open("/lib/x86_64-linux-gnu/libHSterminfo-0.4.0.0-ghc7.8.20140130.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/x86_64-linux-gnu/tls/x86_64/libHSterminfo-0.4.0.0-ghc7.8.20140130.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu/tls/x86_64", 0x7fff9ed58d60) = -1
ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/tls/libHSterminfo-0.4.0.0-ghc7.8.20140130.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu/tls", 0x7fff9ed58d60) = -1 ENOENT (No
such file or directory)
open("/usr/lib/x86_64-linux-gnu/x86_64/libHSterminfo-0.4.0.0-ghc7.8.20140130.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu/x86_64", 0x7fff9ed58d60) = -1 ENOENT
(No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libHSterminfo-0.4.0.0-ghc7.8.20140130.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu", {st_mode=S_IFDIR|0755,
st_size=20480, ...}) = 0
open("/lib/tls/x86_64/libHSterminfo-0.4.0.0-ghc7.8.20140130.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/tls/x86_64", 0x7fff9ed58d60) = -1 ENOENT (No such file or directory)
open("/lib/tls/libHSterminfo-0.4.0.0-ghc7.8.20140130.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/tls", 0x7fff9ed58d60)        = -1 ENOENT (No such file or directory)
open("/lib/x86_64/libHSterminfo-0.4.0.0-ghc7.8.20140130.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64", 0x7fff9ed58d60)     = -1 ENOENT (No such file or directory)
open("/lib/libHSterminfo-0.4.0.0-ghc7.8.20140130.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/tls/x86_64/libHSterminfo-0.4.0.0-ghc7.8.20140130.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/tls/x86_64", 0x7fff9ed58d60) = -1 ENOENT (No such file
or directory)
open("/usr/lib/tls/libHSterminfo-0.4.0.0-ghc7.8.20140130.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/tls", 0x7fff9ed58d60)    = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64/libHSterminfo-0.4.0.0-ghc7.8.20140130.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64", 0x7fff9ed58d60) = -1 ENOENT (No such file or directory)
open("/usr/lib/libHSterminfo-0.4.0.0-ghc7.8.20140130.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
writev(2, [{"/work/build/ghc/ghc-7.8.20140130"..., 67}, {": ", 2},
{"error while loading shared libra"..., 36}, {": ", 2},
{"libHSterminfo-0.4.0.0-ghc7.8.201"..., 40}, {": ", 2}, {"cannot open
shared object file", 30}, {": ", 2}, {"No such file or directory",
25}, {"\n", 1}],
10/work/build/ghc/ghc-7.8.20140130/debian/tmp/usr/lib/ghc/bin/ghc-pkg:
error while loading shared libraries:
libHSterminfo-0.4.0.0-ghc7.8.20140130.so: cannot open shared object
file: No such file or directory
) = 207
exit_group(127)                         = ?


Reply to: