[Hugs] #63: hugs cabal incomplete

Hugs trac at galois.com
Thu Apr 12 19:12:36 EDT 2007


#63: hugs cabal incomplete
--------------------------------+-------------------------------------------
 Reporter:  jvlask at hotmail.com  |       Owner:  nobody
     Type:  defect              |      Status:  new   
 Priority:  major               |   Milestone:        
Component:  hugs                |     Version:  200609
 Keywords:  cabal               |  
--------------------------------+-------------------------------------------
Two things

 1) hugs cabal does not take any notice of additional C files specified in
 the
 cabal config

 2) hugs cabal passes libraries using mingw conventions and does not
 support a
 build process using msvc. i.e. libraries passed as -lodbc

 3) I used to be able to generate the C stub for seporate compilation with
 the following command
 ffihugs -98 +G -Pbuild: +L"-D_WIN32_" +L"-Dmingw32_HOST_OS"  +L"-I./HSQL"
 +L"./ODBC/Database/HSQL/HsODBC.o" +L"odbc32.lib"
 +L"-I./ODBC/Database/HSQL" $<

 this worked fine and achieved what was desired:- generating a C file
 compiling and specifying additional link libraries and include path.
 this can be done with the new hugs like so

 ffihugs -98 $< -D_WIN32_ -Dmingw32_HOST_OS  -I./HSQL
 ./ODBC/Database/HSQL/HsODBC.o odbc32.lib -I./ODBC/Database/HSQL

 The current cabal setup for hugs does not support the
 generation/specification of such a command, so I am left with no option
 but to use a hybrid of cabal and make files ... very unsatisfactory.

 4) you should really think about linking hugs against the multithreaded
 library /MD by default many external gnu etc libraries (actually all that
 I have come accross) link against msvcrt.lib. Having two different rtl
 being called can cause problems.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hugs/ticket/63>
Hugs <http://www.haskell.org/hugs/>
Hugs 98, an interpreter for Haskell


More information about the Hugs-Bugs mailing list