#2897: HsFFI.h not found in include path
--------------------------------+-------------------------------------------
Reporter:  cjs                  |          Owner:                
    Type:  bug                  |         Status:  new           
Priority:  normal               |      Component:  Compiler (FFI)
 Version:  6.10.1               |       Severity:  major         
Keywords:  include ffi hsffi.h  |       Testcase:                
      Os:  Linux                |   Architecture:  x86           
--------------------------------+-------------------------------------------
 Using the ghc 6.1.0 package for libedit2 downloaded from the GHC downloads
 page, on Ubuntu 8.04.1, attempting to compile an hsc file fails with:
 {{{
 In file included from
 /u/cjs/co/client/tsuru/trader/build/src/trader/src/HX/Empty_hsc_make.c:1:
 /usr/local/lib/ghc-6.10.1/hsc2hs-0.67/template-hsc.h:4:19: error: HsFFI.h:
 No such file or directory
 compiling
 /u/cjs/co/client/tsuru/trader/build/src/trader/src/HX/Empty_hsc_make.c
 failed
 command was: /usr/bin/gcc -c
 /u/cjs/co/client/tsuru/trader/build/src/trader/src/HX/Empty_hsc_make.c -o
 /u/cjs/co/client/tsuru/trader/build/src/trader/src/HX/Empty_hsc_make.o
 }}}
 I note that the command does not include a -I option. Either running the
 command by hand with an appropriate -I option, or setting the environment
 variable {{{CPATH=/usr/local/lib/ghc-6.10.1/include}}} fixes the issue.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2897>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to