[Bug 1018895] New: problem building with ghc
http://bugzilla.opensuse.org/show_bug.cgi?id=1018895 Bug ID: 1018895 Summary: problem building with ghc Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: openSUSE 42.1 Status: NEW Severity: Major Priority: P5 - None Component: Development Assignee: osukup@suse.com Reporter: bwiedemann@suse.com QA Contact: qa-bugs@suse.de CC: peter.trommler@ohm-hochschule.de Found By: Development Blocker: --- on one host, I always have problems building (with osc build) packages like xmobar and xmonad that use ghc. the build fails with ghc --make -no-user-package-db Setup /usr/lib64/ghc-8.0.1/package.conf.d/package.cache: openBinaryFile: does not exist (No such file or directory) and this is likely related to the build.log having multiple instances of /usr/lib64/ghc-8.0.1/bin/ghc-pkg: error while loading shared libraries: libHSterminfo-0.4.0.2-ghc8.0.1.so: cannot open shared object file: No such file or directory even though ghc-terminfo was installed before that point, but since it does not have a %post section calling ldconfig the library could not be found by the dynamic linker. interestingly, on another host, I dont have that problem, so it might depend on the host's version of osc, build or kernel or random timing/ordering, so that sometimes another lib gets installed between ghc-terminfo and its user and that calls ldconfig. IMHO, all of ghc's subpackages containing .so files should call ldconfig in %post -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1018895
http://bugzilla.opensuse.org/show_bug.cgi?id=1018895#c1
Peter Trommler
the build fails with ghc --make -no-user-package-db Setup /usr/lib64/ghc-8.0.1/package.conf.d/package.cache: openBinaryFile: does not exist (No such file or directory) I take it this error happens in your `%build` section...
and this is likely related to the build.log having multiple instances of /usr/lib64/ghc-8.0.1/bin/ghc-pkg: error while loading shared libraries: libHSterminfo-0.4.0.2-ghc8.0.1.so: cannot open shared object file: No such file or directory ... and this error happens while osc installs `BuildRequires`?
even though ghc-terminfo was installed before that point, but since it does not have a %post section calling ldconfig the library could not be found by the dynamic linker. Haskell shared objects (.so) are not installed in any standard path of the runtime linker and loader so calling ldconfig will have no effect.
Haskell sets a RUNPATH for each package and finds shared object that way.
interestingly, on another host, I dont have that problem, so it might depend on the host's version of osc, build or kernel or random timing/ordering, so that sometimes another lib gets installed between ghc-terminfo and its user and that calls ldconfig.
This is very strange! All builds of both packages in devel:languages:haskell succeeded in all configured repositories. Do you have a full build log of a failed build? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1018895
http://bugzilla.opensuse.org/show_bug.cgi?id=1018895#c2
Bernhard Wiedemann
http://bugzilla.opensuse.org/show_bug.cgi?id=1018895
http://bugzilla.opensuse.org/show_bug.cgi?id=1018895#c3
Bernhard Wiedemann
http://bugzilla.opensuse.org/show_bug.cgi?id=1018895
http://bugzilla.opensuse.org/show_bug.cgi?id=1018895#c4
Bernhard Wiedemann
http://bugzilla.opensuse.org/show_bug.cgi?id=1018895
http://bugzilla.opensuse.org/show_bug.cgi?id=1018895#c5
--- Comment #5 from Bernhard Wiedemann
http://bugzilla.opensuse.org/show_bug.cgi?id=1018895
Scott Bahling
http://bugzilla.opensuse.org/show_bug.cgi?id=1018895
http://bugzilla.opensuse.org/show_bug.cgi?id=1018895#c6
Bernhard Wiedemann
http://bugzilla.opensuse.org/show_bug.cgi?id=1018895
http://bugzilla.opensuse.org/show_bug.cgi?id=1018895#c7
Adrian Schröter
participants (1)
-
bugzilla_noreply@novell.com