[Bug 1106533] New: Haskell stack cannot load libgmp.so

http://bugzilla.opensuse.org/show_bug.cgi?id=1106533 Bug ID: 1106533 Summary: Haskell stack cannot load libgmp.so Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: All OS: All Status: NEW Severity: Major Priority: P5 - None Component: Development Assignee: bnc-team-screening@forge.provo.novell.com Reporter: taekyung.kim.maths@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- After installing haskell stack, I run `stack setup` in order to download the compiler in my home directory. But haskell complains it can't find libgmp. Although libgmp installed in /usr/lib and /usr/lib64 as libgmp.so.10. This is because haskell stack only recognises /usr/lib/libgmp.so and/or /usr/lib64/libgmp.so and not libgmp.so.10 files. Simple symlinks can fix the problem , but I think it is better to file a claim here to minimize user intervention on system-wide directories. How to reproduce: 1. Install haskell stack: `zypper install stack`. 2. Run stack setup: `stack setup` Actual results: /usr/bin/ld.bfd: cannot find -lgmp collect2: error: ld returned 1 exit status `gcc' failed in phase `Linker'. (Exit code: 1) The GHC located at $HOME/.stack/programs/x86_64-linux/ghc-tinfo6-8.4.3/bin/ghc failed to compile a sanity check. Please see: http://docs.haskellstack.org/en/stable/install_and_upgrade/ for more information. Exception was: Received ExitFailure 1 when running Raw command: $HOME/.stack/programs/x86_64-linux/ghc-tinfo6-8.4.3/bin/ghc /tmp/stack-sanity-check22740/Main.hs -no-user-package-db Run from: /tmp/stack-sanity-check22740/ Standard output: [1 of 1] Compiling Main ( /tmp/stack-sanity-check22740/Main.hs, /tmp/stack-sanity-check22740/Main.o ) Linking /tmp/stack-sanity-check22740/Main ... I am not sure this bug is due to upstream or just to opensuse packaging. Thanks. -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1106533 http://bugzilla.opensuse.org/show_bug.cgi?id=1106533#c1 Ondřej Súkup <osukup@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |osukup@suse.com Resolution|--- |INVALID --- Comment #1 from Ondřej Súkup <osukup@suse.com> --- 1)You doing a horrible thing ... use distribution stack to BUILD own ghc from sources, so before this, If You really want own GHC is needed to install all Build dependencies of GHC ( pretty long list of devel packages) And this way is totally unsupported on any Distribution - so every problem is Your 2) Better and supported way: U se system GHC and libraries .. `zypper in ghc ghc-ghc-devel` and `zypper in ghc-libraryname-devel ......` an then set in `~/.stack/config.yaml` option `system-ghc: true` and last ``` cd myhaskellproject stack init .. ``` -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1106533 http://bugzilla.opensuse.org/show_bug.cgi?id=1106533#c2 --- Comment #2 from Peter Simons <peter.simons@suse.com> --- The update https://build.opensuse.org/request/show/632494 adds an appropriate "Suggests:" attribute to the stack spec file to avoid this issue. Thank you very much for pointing this out. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com