logo       

[ ghc-Bugs-668705 ] hsc2hs broken under Win32: msg#00025

lang.haskell.glasgow.bugs

Subject: [ ghc-Bugs-668705 ] hsc2hs broken under Win32

Bugs item #668705, was opened at 2003-01-15 12:12
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=668705&group_id=8032

Category: None
Group: 5.04.2
>Status: Closed
Resolution: None
Priority: 8
Submitted By: Antony Courtney (antonyc)
Assigned to: Nobody/Anonymous (nobody)
Summary: hsc2hs broken under Win32

Initial Comment:
Hi,

hsc2hs seems to be broken under Win32 with ghc
5.04.2. If I take a simple test program and attempt to
compile it with hsc2hs, I get the following output:

$ make -f Makefile.ghc-win32
hsc2hs Test.hsc
Test_hsc_make.o(.text+0x2d8):Test_hsc_make.c:
undefined reference to `_imp___iob
'
Test_hsc_make.o(.text+0x305):Test_hsc_make.c:
undefined reference to `_imp___iob
'
Test_hsc_make.o(.text+0x31b):Test_hsc_make.c:
undefined reference to `_imp___iob
'
Test_hsc_make.o(.text+0x348):Test_hsc_make.c:
undefined reference to `_imp___iob
'
Test_hsc_make.o(.text+0x373):Test_hsc_make.c:
undefined reference to `_imp___iob
'
Test_hsc_make.o(.text+0x3a0):Test_hsc_make.c: more
undefined references to `_imp
___iob' follow
collect2: ld returned 1 exit status
make: *** [Test.hs] Error 1

antony@AIRSTREAM ~/src/haskell/ffi/hsc2hs
$


----------------------------------------------------------------------

>Comment By: Sigbjorn Finne (sigbjorn)
Date: 2003-01-17 09:11

Message:
Logged In: YES
user_id=232905

Yes, I did. Better make sure you also use 'ghc' as your 'gcc'
if you're compiling up any .c files separately.

----------------------------------------------------------------------

Comment By: Antony Courtney (antonyc)
Date: 2003-01-17 09:04

Message:
Logged In: YES
user_id=689194

Thanks for the suggestion, Sigbjorn, but did you actually try
it? I get exactly the same output regardless of whether or not
I use the --cc=ghc option.


----------------------------------------------------------------------

Comment By: Sigbjorn Finne (sigbjorn)
Date: 2003-01-17 08:47

Message:
Logged In: YES
user_id=232905

C compiler mismatch; use hsc2hs with the option --cc=ghc
for better results.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=668705&group_id=8032


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise