[ ghc-Bugs-935792 ] --make and -main-is don't work together

SourceForge.net noreply at sourceforge.net
Fri Apr 16 05:46:38 EDT 2004


Bugs item #935792, was opened at 2004-04-15 17:48
Message generated for change (Comment added) made by simonmar
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=935792&group_id=8032

Category: Compiler
Group: 6.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: --make and -main-is don't work together

Initial Comment:
The --make option doesn't take into account the
presence of a -main-is option; if a Main module isn't
present, it won't link, and if one is present (but
would not be used as the entry point because of
-main-is), linking fails with:

Linking ...
/usr/lib/ghc-6.2/libHSrts.a(Main.o)(.text+0xe): In
function `main':
: undefined reference to `__stginit_ZCMain'
/usr/lib/ghc-6.2/libHSrts.a(Main.o)(.text+0x28): In
function `main':
: undefined reference to `ZCMain_main_closure'
collect2: ld returned 1 exit status

- abe.egnor at gmail.com

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

>Comment By: Simon Marlow (simonmar)
Date: 2004-04-16 09:46

Message:
Logged In: YES 
user_id=48280

This bug was fixed in 6.2.1.

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

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


More information about the Glasgow-haskell-bugs mailing list