[Hackage] #245: Cabal should support hsc2hs's stub .c feature

Hackage trac at galois.com
Tue Aug 26 17:57:28 EDT 2008


#245: Cabal should support hsc2hs's stub .c feature
----------------------------+-----------------------------------------------
  Reporter:  guest          |        Owner:         
      Type:  defect         |       Status:  new    
  Priority:  low            |    Milestone:  _|_    
 Component:  Cabal library  |      Version:  1.2.3.0
  Severity:  normal         |   Resolution:         
  Keywords:                 |   Difficulty:  normal 
Ghcversion:  6.8.2          |     Platform:         
----------------------------+-----------------------------------------------
Comment (by dons):

 This breaks Tuomov's 'riot' too,

 http://modeemi.fi/~tuomov/riot/

  where his Makefile build system compiles and links in,

 ghc -c -fglasgow-exts -cpp -fasm -funbox-strict-fields -fignore-asserts
 -cpp -DCF_CHARSET_SUPPORT -DCF_WCHAR_SUPPORT -DHAVE_WADDNWSTR
 -DHAVE_RESIZETERM -DGHC64 -I. -Icbits Ginsu/CWString_hsc.c -o
 Ginsu/CWString_hsc.o
 ghc -c -fglasgow-exts -cpp -fasm -funbox-strict-fields -fignore-asserts
 -cpp -DCF_CHARSET_SUPPORT -DCF_WCHAR_SUPPORT -DHAVE_WADDNWSTR
 -DHAVE_RESIZETERM -DGHC64 -I. -Icbits Curses/Curses_hsc.c -o
 Curses/Curses_hsc.o

 But with a .cabal file, we can't get those linked, leading to errors:
 (.text+0xc087): undefined reference to `hs_curses_acs_ulcorner'
 dist/build/riot/riot-tmp/Curses/Curses.o: In function `rkgA_info':
 (.text+0x12fd4): undefined reference to `hs_curses_color_pair'
 dist/build/riot/riot-tmp/Ginsu/CWString.o: In function `sdkc_info':
 (.text+0x24ff): undefined reference to `hs_get_mb_cur_max'
 collect2: ld returned 1 exit status
 cabal: Error: some packages failed to install:
 riot-1.20080618 failed during the building phase. The exception was:
 exit: ExitFailure 1

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/245#comment:5>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list