RE: Bug in placing _stub.o files with HEAD

2005-08-03 Thread Simon Marlow
On 01 August 2005 15:19, Einar Karttunen wrote:

> "Simon Marlow" <[EMAIL PROTECTED]> writes:
>> I thought I fixed this in CVS recently (rev. 1.54 of
>> Distribution.Simple.Build to be exact).  Are you running Cabal from
>> CVS, or some other version?
> 
> Cabal from CVS. The versions are GHC 6.5.20050728 and Cabal-1.1.2.
> 
> I created a small Cabal package to demonstrate the problem.
>
http://www.cs.helsinki.fi/u/ekarttun/haskell/test-hs-source-dirs-w-fexp.
tar.gz
> 
> The _stub.o file is not added into the static library.

Thanks, should be fixed now.

Cheers,
Simon
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Bug in placing _stub.o files with HEAD

2005-08-01 Thread Einar Karttunen
"Simon Marlow" <[EMAIL PROTECTED]> writes:
> I thought I fixed this in CVS recently (rev. 1.54 of
> Distribution.Simple.Build to be exact).  Are you running Cabal from CVS,
> or some other version?

Cabal from CVS. The versions are GHC 6.5.20050728 and Cabal-1.1.2.

I created a small Cabal package to demonstrate the problem.
http://www.cs.helsinki.fi/u/ekarttun/haskell/test-hs-source-dirs-w-fexp.tar.gz

The _stub.o file is not added into the static library.

- Einar Karttunen
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


RE: Bug in placing _stub.o files with HEAD

2005-08-01 Thread Simon Marlow
On 30 July 2005 01:21, Einar Karttunen wrote:

> I noticed the following behaviour using GHC 6.5.20050728:
> If compiling a Cabal package containing hs-source-dirs it
> places the _stub.o under dist/build//path/to/Module
> when Cabal expects it in dist/build/path/to/Module. Things
> appear to work without hs-source-dirs.
> 
> For example with "hs-source-dirs: src"
> Network/GnuTLS/IOWrap.hs contains foreign export declarations.
> runnning Setup build creates the files:
> dist/build/src/Network/GnuTLS/IOWrap_stub.o
> src/Network/GnuTLS/IOWrap_stub.h
> src/Network/GnuTLS/IOWrap_stub.c
> 
> But Cabal fails to include the IOWrap_stub.o as it is
> expected as dist/build/Network/GnuTLS/IOWrap_stub.o

I thought I fixed this in CVS recently (rev. 1.54 of
Distribution.Simple.Build to be exact).  Are you running Cabal from CVS,
or some other version?

Cheers,
Simon
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Bug in placing _stub.o files with HEAD

2005-07-29 Thread Einar Karttunen
Hello

I noticed the following behaviour using GHC 6.5.20050728:
If compiling a Cabal package containing hs-source-dirs it 
places the _stub.o under dist/build//path/to/Module
when Cabal expects it in dist/build/path/to/Module. Things
appear to work without hs-source-dirs. 

For example with "hs-source-dirs: src"
Network/GnuTLS/IOWrap.hs contains foreign export declarations.
runnning Setup build creates the files:
dist/build/src/Network/GnuTLS/IOWrap_stub.o
src/Network/GnuTLS/IOWrap_stub.h
src/Network/GnuTLS/IOWrap_stub.c

But Cabal fails to include the IOWrap_stub.o as it is 
expected as dist/build/Network/GnuTLS/IOWrap_stub.o

- Einar Karttunen
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users