[GHC] #9060: `cabal` linking error with GHC 7.8.2

#9060: `cabal` linking error with GHC 7.8.2 ----------------------------------+-------------------------- Reporter: pseudonom | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Package system | Version: 7.8.2 Keywords: | Operating System: Linux Architecture: x86_64 (amd64) | Type of failure: Other Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ----------------------------------+-------------------------- First reported on [https://github.com/haskell/cabal/issues/1830 GitHub]. Trying {{{ rm -r .ghc .cabal cabal update cabal install cabal-install # Update from 1.16.0.2 to 1.20.0.0 cabal install polyparse }}} with GHC 7.8.2 throws the following error: {{{ [18 of 18] Compiling Text.ParserCombinators.HuttonMeijer ( src/Text/ParserCombinators/HuttonMeijer.hs, dist/build/Text/ParserCombinators/HuttonMeijer.o ) src/Text/ParserCombinators/HuttonMeijer.hs:53:10: Warning: ‘Parser’ is an instance of Monad but not Applicative - this will become an error in GHC 7.10, under the Applicative-Monad Proposal. src/Text/ParserCombinators/HuttonMeijer.hs:63:10: Warning: ‘Parser’ is an instance of MonadPlus but not Alternative - this will become an error in GHC 7.10, under the Applicative-Monad Proposal. Linking... /usr/bin/ar -r dist/build/libHSpolyparse-1.9.a-12038/libHSpolyparse-1.9.a dist/build/Text/ParserCombinators/HuttonMeijer.o dist/build/Text/ParserCombinators/HuttonMeijerWallace.o dist/build/Text/ParserCombinators/Poly.o dist/build/Text/ParserCombinators/Poly/Base.o dist/build/Text/ParserCombinators/Poly/Result.o dist/build/Text/ParserCombinators/Poly/Parser.o dist/build/Text/ParserCombinators/Poly/Plain.o dist/build/Text/ParserCombinators/Poly/Lazy.o dist/build/Text/ParserCombinators/Poly/StateParser.o dist/build/Text/ParserCombinators/Poly/State.o dist/build/Text/ParserCombinators/Poly/StateLazy.o dist/build/Text/ParserCombinators/Poly/Lex.o dist/build/Text/Parse.o dist/build/Text/ParserCombinators/Poly/ByteString.o dist/build/Text/ParserCombinators/Poly/ByteStringChar.o dist/build/Text/Parse/ByteString.o dist/build/Text/ParserCombinators/Poly/Text.o dist/build/Text/ParserCombinators/Poly/StateText.o /usr/bin/ar: creating dist/build/libHSpolyparse-1.9.a-12038/libHSpolyparse-1.9.a /usr/bin/strip dist/build/libHSpolyparse-1.9.a-12038/libHSpolyparse-1.9.a --strip-unneeded /usr/bin/ghc -shared -dynamic -package-name polyparse-1.9 -no-auto-link- packages -package-db dist/package.conf.inplace -package-id base-4.7.0.0-018311399e3b6350d5be3a16b144df9b -package-id bytestring-0.10.4.0-7de5230c6d895786641a4de344336838 -package-id text-1.1.1.1-dd6849c4a01e66d368eb3b161ca67182 dist/build/Text/ParserCombinators/HuttonMeijer.dyn_o dist/build/Text/ParserCombinators/HuttonMeijerWallace.dyn_o dist/build/Text/ParserCombinators/Poly.dyn_o dist/build/Text/ParserCombinators/Poly/Base.dyn_o dist/build/Text/ParserCombinators/Poly/Result.dyn_o dist/build/Text/ParserCombinators/Poly/Parser.dyn_o dist/build/Text/ParserCombinators/Poly/Plain.dyn_o dist/build/Text/ParserCombinators/Poly/Lazy.dyn_o dist/build/Text/ParserCombinators/Poly/StateParser.dyn_o dist/build/Text/ParserCombinators/Poly/State.dyn_o dist/build/Text/ParserCombinators/Poly/StateLazy.dyn_o dist/build/Text/ParserCombinators/Poly/Lex.dyn_o dist/build/Text/Parse.dyn_o dist/build/Text/ParserCombinators/Poly/ByteString.dyn_o dist/build/Text/ParserCombinators/Poly/ByteStringChar.dyn_o dist/build/Text/Parse/ByteString.dyn_o dist/build/Text/ParserCombinators/Poly/Text.dyn_o dist/build/Text/ParserCombinators/Poly/StateText.dyn_o -o dist/build/libHSpolyparse-1.9-ghc7.8.2.so /usr/bin/ld: cannot find -lHStext-1.1.1.1-ghc7.8.2 collect2: error: ld returned 1 exit status Failed to install polyparse-1.9 Updating world file... cabal: Error: some packages failed to install: polyparse-1.9 failed during the building phase. The exception was: ExitFailure 1 }}} It happens with other packages as well. {{{hashable}}}, for example. The {{{text}}} that {{{polyparse}}} fails on is installed as a transitive dependency of {{{cabal-install}}}: {{{ ... [43 of 43] Compiling Data.Text.Read ( Data/Text/Read.hs, dist/build/Data/Text/Read.o ) Building C Sources... creating dist/build /usr/bin/ghc -c -odir dist/build -Idist/build -Iinclude -optc-O2 -package- db dist/package.conf.inplace -package-id array-0.5.0.0-9f212a0e8caa74d931af75060b4de2ab -package-id base-4.7.0.0-018311399e3b6350d5be3a16b144df9b -package-id bytestring-0.10.4.0-7de5230c6d895786641a4de344336838 -package-id deepseq-1.3.0.2-7160f83fdfe69b3794a2d7a3ad8d4c19 -package-id ghc- prim-0.3.1.0-948744e1f99cc8bcc7c7d3ba60c7c2d8 -package-id integer- gmp-0.5.1.0-dc47f6b546fc171f67a7f7d311684a99 cbits/cbits.c Linking... /usr/bin/ar -r dist/build/libHStext-1.1.1.1.a dist/build/Data/Text.o dist/build/Data/Text/Array.o dist/build/Data/Text/Encoding.o dist/build/Data/Text/Encoding/Error.o dist/build/Data/Text/Foreign.o dist/build/Data/Text/IO.o dist/build/Data/Text/Internal.o dist/build/Data/Text/Internal/Builder.o dist/build/Data/Text/Internal/Builder/Functions.o dist/build/Data/Text/Internal/Builder/Int/Digits.o dist/build/Data/Text/Internal/Builder/RealFloat/Functions.o dist/build/Data/Text/Internal/Encoding/Fusion.o dist/build/Data/Text/Internal/Encoding/Fusion/Common.o dist/build/Data/Text/Internal/Encoding/Utf16.o dist/build/Data/Text/Internal/Encoding/Utf32.o dist/build/Data/Text/Internal/Encoding/Utf8.o dist/build/Data/Text/Internal/Functions.o dist/build/Data/Text/Internal/Fusion.o dist/build/Data/Text/Internal/Fusion/CaseMapping.o dist/build/Data/Text/Internal/Fusion/Common.o dist/build/Data/Text/Internal/Fusion/Size.o dist/build/Data/Text/Internal/Fusion/Types.o dist/build/Data/Text/Internal/IO.o dist/build/Data/Text/Internal/Lazy.o dist/build/Data/Text/Internal/Lazy/Encoding/Fusion.o dist/build/Data/Text/Internal/Lazy/Fusion.o dist/build/Data/Text/Internal/Lazy/Search.o dist/build/Data/Text/Internal/Private.o dist/build/Data/Text/Internal/Read.o dist/build/Data/Text/Internal/Search.o dist/build/Data/Text/Internal/Unsafe.o dist/build/Data/Text/Internal/Unsafe/Char.o dist/build/Data/Text/Internal/Unsafe/Shift.o dist/build/Data/Text/Lazy.o dist/build/Data/Text/Lazy/Builder.o dist/build/Data/Text/Lazy/Builder/Int.o dist/build/Data/Text/Lazy/Builder/RealFloat.o dist/build/Data/Text/Lazy/Encoding.o dist/build/Data/Text/Lazy/IO.o dist/build/Data/Text/Lazy/Internal.o dist/build/Data/Text/Lazy/Read.o dist/build/Data/Text/Read.o dist/build/Data/Text/Unsafe.o dist/build/cbits/cbits.o /usr/bin/ar: creating dist/build/libHStext-1.1.1.1.a /usr/bin/ld -x -r -o dist/build/HStext-1.1.1.1.o dist/build/Data/Text.o dist/build/Data/Text/Array.o dist/build/Data/Text/Encoding.o dist/build/Data/Text/Encoding/Error.o dist/build/Data/Text/Foreign.o dist/build/Data/Text/IO.o dist/build/Data/Text/Internal.o dist/build/Data/Text/Internal/Builder.o dist/build/Data/Text/Internal/Builder/Functions.o dist/build/Data/Text/Internal/Builder/Int/Digits.o dist/build/Data/Text/Internal/Builder/RealFloat/Functions.o dist/build/Data/Text/Internal/Encoding/Fusion.o dist/build/Data/Text/Internal/Encoding/Fusion/Common.o dist/build/Data/Text/Internal/Encoding/Utf16.o dist/build/Data/Text/Internal/Encoding/Utf32.o dist/build/Data/Text/Internal/Encoding/Utf8.o dist/build/Data/Text/Internal/Functions.o dist/build/Data/Text/Internal/Fusion.o dist/build/Data/Text/Internal/Fusion/CaseMapping.o dist/build/Data/Text/Internal/Fusion/Common.o dist/build/Data/Text/Internal/Fusion/Size.o dist/build/Data/Text/Internal/Fusion/Types.o dist/build/Data/Text/Internal/IO.o dist/build/Data/Text/Internal/Lazy.o dist/build/Data/Text/Internal/Lazy/Encoding/Fusion.o dist/build/Data/Text/Internal/Lazy/Fusion.o dist/build/Data/Text/Internal/Lazy/Search.o dist/build/Data/Text/Internal/Private.o dist/build/Data/Text/Internal/Read.o dist/build/Data/Text/Internal/Search.o dist/build/Data/Text/Internal/Unsafe.o dist/build/Data/Text/Internal/Unsafe/Char.o dist/build/Data/Text/Internal/Unsafe/Shift.o dist/build/Data/Text/Lazy.o dist/build/Data/Text/Lazy/Builder.o dist/build/Data/Text/Lazy/Builder/Int.o dist/build/Data/Text/Lazy/Builder/RealFloat.o dist/build/Data/Text/Lazy/Encoding.o dist/build/Data/Text/Lazy/IO.o dist/build/Data/Text/Lazy/Internal.o dist/build/Data/Text/Lazy/Read.o dist/build/Data/Text/Read.o dist/build/Data/Text/Unsafe.o dist/build/cbits/cbits.o In-place registering text-1.1.1.1... /usr/bin/ghc-pkg update - --global --user --package- db=dist/package.conf.inplace directory dist/doc/html/text does exist: False creating /home/intrados/.cabal/share/doc/text-1.1.1.1 Installing LICENSE to /home/intrados/.cabal/share/doc/text-1.1.1.1/LICENSE Installing library in /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2 creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2 creating /home/intrados/.cabal/lib/text-1.1.1.1 creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2 creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Encoding creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Builder creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Builder/Int creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Builder/RealFloat creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Encoding creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Encoding/Fusion creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Fusion creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Lazy/Encoding creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Lazy creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Lazy/Encoding creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Lazy creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Unsafe creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Lazy creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Lazy/Builder Installing dist/build/Data/Text.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text.hi Installing dist/build/Data/Text/Array.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Array.hi Installing dist/build/Data/Text/Encoding.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Encoding.hi Installing dist/build/Data/Text/Encoding/Error.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Encoding/Error.hi Installing dist/build/Data/Text/Foreign.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Foreign.hi Installing dist/build/Data/Text/IO.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/IO.hi Installing dist/build/Data/Text/Internal.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal.hi Installing dist/build/Data/Text/Internal/Builder.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Builder.hi Installing dist/build/Data/Text/Internal/Builder/Functions.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Builder/Functions.hi Installing dist/build/Data/Text/Internal/Builder/Int/Digits.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Builder/Int/Digits.hi Installing dist/build/Data/Text/Internal/Builder/RealFloat/Functions.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Builder/RealFloat/Functions.hi Installing dist/build/Data/Text/Internal/Encoding/Fusion.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Encoding/Fusion.hi Installing dist/build/Data/Text/Internal/Encoding/Fusion/Common.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Encoding/Fusion/Common.hi Installing dist/build/Data/Text/Internal/Encoding/Utf16.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Encoding/Utf16.hi Installing dist/build/Data/Text/Internal/Encoding/Utf32.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Encoding/Utf32.hi Installing dist/build/Data/Text/Internal/Encoding/Utf8.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Encoding/Utf8.hi Installing dist/build/Data/Text/Internal/Functions.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Functions.hi Installing dist/build/Data/Text/Internal/Fusion.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Fusion.hi Installing dist/build/Data/Text/Internal/Fusion/CaseMapping.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Fusion/CaseMapping.hi Installing dist/build/Data/Text/Internal/Fusion/Common.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Fusion/Common.hi Installing dist/build/Data/Text/Internal/Fusion/Size.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Fusion/Size.hi Installing dist/build/Data/Text/Internal/Fusion/Types.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Fusion/Types.hi Installing dist/build/Data/Text/Internal/IO.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/IO.hi Installing dist/build/Data/Text/Internal/Lazy.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Lazy.hi Installing dist/build/Data/Text/Internal/Lazy/Encoding/Fusion.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Lazy/Encoding/Fusion.hi Installing dist/build/Data/Text/Internal/Lazy/Fusion.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Lazy/Fusion.hi Installing dist/build/Data/Text/Internal/Lazy/Search.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Lazy/Search.hi Installing dist/build/Data/Text/Internal/Private.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Private.hi Installing dist/build/Data/Text/Internal/Read.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Read.hi Installing dist/build/Data/Text/Internal/Search.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Search.hi Installing dist/build/Data/Text/Internal/Unsafe.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Unsafe.hi Installing dist/build/Data/Text/Internal/Unsafe/Char.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Unsafe/Char.hi Installing dist/build/Data/Text/Internal/Unsafe/Shift.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Internal/Unsafe/Shift.hi Installing dist/build/Data/Text/Lazy.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Lazy.hi Installing dist/build/Data/Text/Lazy/Builder.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Lazy/Builder.hi Installing dist/build/Data/Text/Lazy/Builder/Int.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Lazy/Builder/Int.hi Installing dist/build/Data/Text/Lazy/Builder/RealFloat.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Lazy/Builder/RealFloat.hi Installing dist/build/Data/Text/Lazy/Encoding.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Lazy/Encoding.hi Installing dist/build/Data/Text/Lazy/IO.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Lazy/IO.hi Installing dist/build/Data/Text/Lazy/Internal.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Lazy/Internal.hi Installing dist/build/Data/Text/Lazy/Read.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Lazy/Read.hi Installing dist/build/Data/Text/Read.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Read.hi Installing dist/build/Data/Text/Unsafe.hi to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/Data/Text/Unsafe.hi creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2 Installing dist/build/libHStext-1.1.1.1.a to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/libHStext-1.1.1.1.a creating /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2 Installing dist/build/HStext-1.1.1.1.o to /home/intrados/.cabal/lib/text-1.1.1.1/ghc-7.8.2/HStext-1.1.1.1.o /usr/bin/ghc --abi-hash -fbuilding-cabal-package -O -odir dist/build -hidir dist/build -stubdir dist/build -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -Iinclude -optP- DINTEGER_GMP -optP-DHAVE_DEEPSEQ -optP-include -optPdist/build/autogen/cabal_macros.h -package-name text-1.1.1.1 -hide- all-packages -package-id array-0.5.0.0-9f212a0e8caa74d931af75060b4de2ab -package-id base-4.7.0.0-018311399e3b6350d5be3a16b144df9b -package-id bytestring-0.10.4.0-7de5230c6d895786641a4de344336838 -package-id deepseq-1.3.0.2-7160f83fdfe69b3794a2d7a3ad8d4c19 -package-id ghc- prim-0.3.1.0-948744e1f99cc8bcc7c7d3ba60c7c2d8 -package-id integer- gmp-0.5.1.0-dc47f6b546fc171f67a7f7d311684a99 -XHaskell98 Data.Text Data.Text.Array Data.Text.Encoding Data.Text.Encoding.Error Data.Text.Foreign Data.Text.IO Data.Text.Internal Data.Text.Internal.Builder Data.Text.Internal.Builder.Functions Data.Text.Internal.Builder.Int.Digits Data.Text.Internal.Builder.RealFloat.Functions Data.Text.Internal.Encoding.Fusion Data.Text.Internal.Encoding.Fusion.Common Data.Text.Internal.Encoding.Utf16 Data.Text.Internal.Encoding.Utf32 Data.Text.Internal.Encoding.Utf8 Data.Text.Internal.Functions Data.Text.Internal.Fusion Data.Text.Internal.Fusion.CaseMapping Data.Text.Internal.Fusion.Common Data.Text.Internal.Fusion.Size Data.Text.Internal.Fusion.Types Data.Text.Internal.IO Data.Text.Internal.Lazy Data.Text.Internal.Lazy.Encoding.Fusion Data.Text.Internal.Lazy.Fusion Data.Text.Internal.Lazy.Search Data.Text.Internal.Private Data.Text.Internal.Read Data.Text.Internal.Search Data.Text.Internal.Unsafe Data.Text.Internal.Unsafe.Char Data.Text.Internal.Unsafe.Shift Data.Text.Lazy Data.Text.Lazy.Builder Data.Text.Lazy.Builder.Int Data.Text.Lazy.Builder.RealFloat Data.Text.Lazy.Encoding Data.Text.Lazy.IO Data.Text.Lazy.Internal Data.Text.Lazy.Read Data.Text.Read Data.Text.Unsafe -Wall -fwarn-tabs -funbox-strict-fields -O2 Registering text-1.1.1.1... /usr/bin/ghc-pkg update - --global --user Installed text-1.1.1.1 }}} The same procedure succeeds with a clean GHC 7.6.3. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9060 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9060: `cabal` linking error with GHC 7.8.2 -----------------------------------+---------------------------------- Reporter: pseudonom | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Package system | Version: 7.8.2 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: Other | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -----------------------------------+---------------------------------- Comment (by pseudonom): It looks as thought cabal is expecting {{{HStext-1.1.1.1-ghc7.8.2}}} but only {{{HStext-1.1.1.1}}} is provided. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9060#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9060: `cabal` linking error with GHC 7.8.2 -----------------------------------+---------------------------------- Reporter: pseudonom | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Package system | Version: 7.8.2 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: Other | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -----------------------------------+---------------------------------- Comment (by tibbe): I think this might be related to dynamic linking. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9060#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9060: `cabal` linking error with GHC 7.8.2 -----------------------------------+---------------------------------- Reporter: pseudonom | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Package system | Version: 7.8.2 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: Other | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -----------------------------------+---------------------------------- Comment (by rwbarton): You seem to be trying to build a dynamic `polyparse` library but you only have a static `text` library, probably because the default of what kind of libraries to build changed between cabal 1.16 and cabal 1.20. Try reinstalling the text library (or just blowing away your whole 7.8.2 packages tree). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9060#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9060: `cabal` linking error with GHC 7.8.2 -----------------------------------+---------------------------------- Reporter: pseudonom | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Package system | Version: 7.8.2 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: Other | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -----------------------------------+---------------------------------- Comment (by tibbe): @rwbarton, I think pseudonom did blow away the whole tree. text is pulled in by cabal-install (through network > parsec > text) so it ought to have been built in a dynamic way if polyparse was. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9060#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9060: `cabal` linking error with GHC 7.8.2 -----------------------------------+---------------------------------- Reporter: pseudonom | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Package system | Version: 7.8.2 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: Other | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -----------------------------------+---------------------------------- Comment (by rwbarton): tibbe: there are two steps involved here with different versions of cabal. First cabal 1.16 installed cabal 1.20, and as a side effect, installed text too. Since cabal 1.16 did the building, it installed a static library for text. Then cabal 1.20 tried to build a dynamic library for polyparse so it looked for a dynamic library for text. Keep the cabal 1.20 binary and blow away `~/.ghc` and then cabal 1.20 should be able to install (a dynamic library for) polyparse without any problems. Or, start the whole process with cabal 1.18 or newer. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9060#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9060: `cabal` linking error with GHC 7.8.2 -----------------------------------+---------------------------------- Reporter: pseudonom | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Package system | Version: 7.8.2 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: Other | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -----------------------------------+---------------------------------- Comment (by pseudonom): Ah, that makes sense. Thanks. It all works after getting rid of ~/.ghc and retrying. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9060#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9060: `cabal` linking error with GHC 7.8.2 -----------------------------------+---------------------------------- Reporter: pseudonom | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Package system | Version: 7.8.2 Resolution: invalid | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: Other | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -----------------------------------+---------------------------------- Changes (by tibbe): * status: new => closed * resolution: => invalid Comment: rwbarton: Thanks for explanation. I think we ought to warn users somehow, probably by having cabal check for the presence of the dynamic library and erroring out earlier with a better error message. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9060#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9060: `cabal` linking error with GHC 7.8.2 -----------------------------------+---------------------------------- Reporter: pseudonom | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Package system | Version: 7.8.2 Resolution: invalid | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: Other | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -----------------------------------+---------------------------------- Comment (by rwbarton): Yes, agreed. My initial reaction is (as you say) that cabal is the proper place for this check. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9060#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC