#63: hugs cabal incomplete

View: New views
2 Messages — Rating Filter:   Alert me  

#63: hugs cabal incomplete

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#63: hugs cabal incomplete
--------------------------------+-------------------------------------------
 Reporter:  jvlask@...  |       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
_______________________________________________
Hugs-Bugs mailing list
Hugs-Bugs@...
http://www.haskell.org/mailman/listinfo/hugs-bugs

Re: #63: hugs cabal incomplete

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#63: hugs cabal incomplete
---------------------------------+------------------------------------------
  Reporter:  jvlask@...  |       Owner:  nobody
      Type:  defect              |      Status:  new  
  Priority:  major               |   Milestone:        
 Component:  hugs                |     Version:  200609
Resolution:                      |    Keywords:  cabal
---------------------------------+------------------------------------------
Comment (by ross):

 (Multi-barrel bugs like this are a bit inconvenient to deal with.)

 1) isn't a bug: Cabal uses a different method for Hugs, as documented in
 the Cabal User's Guide.

 2) and 3) are the same thing, I think, because Cabal does pass -D and -I
 options.  The problem is libraries.

--
Ticket URL: <http://hackage.haskell.org/trac/hugs/ticket/63>
Hugs <http://www.haskell.org/hugs/>
Hugs 98, an interpreter for Haskell
_______________________________________________
Hugs-Bugs mailing list
Hugs-Bugs@...
http://www.haskell.org/mailman/listinfo/hugs-bugs
LightInTheBox - Buy quality products at wholesale price!