Opened 4 months ago

Last modified 3 months ago

#8618 new bug

can't load .so/.DLL

Reported by: Feuerbach Owned by:
Priority: normal Milestone:
Component: Compiler (NCG) Version: 7.7
Keywords: Cc: simonmar
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Compile-time crash Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

This happens in a fresh sandbox:

% cabal install uniplate -j
Resolving dependencies...
Configuring syb-0.4.1...
Configuring text-1.0.0.0...
Building syb-0.4.1...
Building text-1.0.0.0...
Installed syb-0.4.1
Installed text-1.0.0.0
Configuring hashable-1.2.1.0...
Building hashable-1.2.1.0...
Installed hashable-1.2.1.0
Configuring unordered-containers-0.2.3.3...
Building unordered-containers-0.2.3.3...
Installed unordered-containers-0.2.3.3
Configuring uniplate-1.6.12...
Building uniplate-1.6.12...
Failed to install uniplate-1.6.12
Last 10 lines of the build log ( /home/feuerbach/.cabal/logs/uniplate-1.6.12.log ):
Preprocessing library uniplate-1.6.12...
[ 1 of 21] Compiling Data.Generics.Uniplate.Data.Instances ( Data/Generics/Uniplate/Data/Instances.hs, dist/build/Data/Generics/Uniplate/Data/Instances.o )
[ 2 of 21] Compiling Data.Generics.Uniplate.Internal.Utils ( Data/Generics/Uniplate/Internal/Utils.hs, dist/build/Data/Generics/Uniplate/Internal/Utils.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array-0.5.0.0 ... linking ... done.
Loading package deepseq-1.3.0.2 ... linking ... done.
Loading package bytestring-0.10.4.0 ... linking ... done.
Loading package text-1.0.0.0 ... <command line>: can't load .so/.DLL for: libHStext-1.0.0.0.so (libHStext-1.0.0.0.so: cannot open shared object file: No such file or directory)
cabal: Error: some packages failed to install:
uniplate-1.6.12 failed during the building phase. The exception was:
ExitFailure 1

I have shared: False in cabal.config, so it's not surprising that libHStext-1.0.0.0.so is not found. What is surprising is that it's needed. uniplate doesn't use TemplateHaskell, from what I can tell.

This is GHC 7.7.20131217.

Change History (3)

comment:1 Changed 4 months ago by carter

What OS and Arch is this? Why do you have shared disabled?

comment:2 Changed 4 months ago by Feuerbach

% uname -a
Linux sniper 3.11-2-686-pae #1 SMP Debian 3.11.8-1 (2013-11-13) i686 GNU/Linux

"shared: False" is from some older times when ghc actually had problems with dynamic linking. I already switched to "shared: True", but I thought I'd still report the issue.

comment:3 Changed 3 months ago by nushio

I hit the same issue while installing singletons package using GHC 7.7.20131217 on

Linux nusid 3.8-2-amd64 #1 SMP Debian 3.8.13-1 x86_64 GNU/Linux

The tail of the installation message was:

Loading package mtl-2.1.2 ... <command line>: can't load .so/.DLL for: libHSmtl-2.1.2.so (libHSmtl-2.1.2.so: cannot open shared object file: No such file or directory)
Failed to install singletons-0.9.3
cabal: Error: some packages failed to install:
singletons-0.9.3 failed during the building phase. The exception was:
ExitFailure 1

The temporal solution to this was (as hinted by Feuerbach) to set shared: True in my ~/.cabal/config file, and then to cabal install mtl --force-reinstall --reinstall .

Note: See TracTickets for help on using tickets.