
#844: Cabal reports "cabal: internal error: the package contains a library but there is no corresponding configuration data" when there exists no library in the cabal file ----------------------------+----------------------------------------------- Reporter: fushunpoon | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.8.0.6 Severity: normal | Keywords: Difficulty: normal | Ghcversion: Platform: Mac OS | ----------------------------+----------------------------------------------- Changes (by duncan): * keywords: library configuration data => Old description:
When trying to build my test project to play with SDL, I encountered the following message:
"cabal: internal error: the package contains a library but there is no corresponding configuration data" on the following cabal file:
even though my project cabal file specifies no libraries. Surely either this is an erroneous message or there is something wrong with the logic in cabal. Note that 'configure' and 'sdlexprs.buildinfo.in' exist as files, and they are attached with this post.
------------------------------------------------------ Name: sdlexprs Version: 0.1 Synopsis: Just some hacks using SDL! License: LGPL License-file: LICENSE Author: <<my-name>> Category: Graphics Build-type: Configure Extra-source-files: configure,sdlexprs.buildinfo.in
Cabal-version: >=1.2
Executable test -- Specify the source directory here Hs-source-dirs: src
-- .hs or .lhs file containing the Main module. Main-is: SDLWrapper.hs
New description: When trying to build my test project to play with SDL, I encountered the following message: "cabal: internal error: the package contains a library but there is no corresponding configuration data" on the following cabal file: even though my project cabal file specifies no libraries. Surely either this is an erroneous message or there is something wrong with the logic in cabal. Note that 'configure' and 'sdlexprs.buildinfo.in' exist as files, and they are attached with this post. {{{ Name: sdlexprs Version: 0.1 Synopsis: Just some hacks using SDL! License: LGPL License-file: LICENSE Author: <<my-name>> Category: Graphics Build-type: Configure Extra-source-files: configure,sdlexprs.buildinfo.in Cabal-version: >=1.2 Executable test -- Specify the source directory here Hs-source-dirs: src -- .hs or .lhs file containing the Main module. Main-is: SDLWrapper.hs }}} -- -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/844#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects