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

SourceForge.net noreply at sourceforge.net
Thu Apr 15 13:48:20 EDT 2004


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

Category: Compiler
Group: 6.2
Status: Open
Resolution: None
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

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

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