|
[ ghc-Bugs-935792 ] --make and -main-is don't work together: msg#00045lang.haskell.glasgow.bugs
Bugs item #935792, was opened at 2004-04-15 10:48 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=935792&group_id=8032 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. 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@xxxxxxxxx ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2005-08-09 07:53 Message: Logged In: NO Still getting this with 6.4: /usr/lib/ghc-6.4/libHSrts.a(Main.o)(.text+0xe): In function `main': : undefined reference to `__stginit_ZCMain' /usr/lib/ghc-6.4/libHSrts.a(Main.o)(.text+0x28): In function `main': : undefined reference to `ZCMain_main_closure' collect2: ld returned 1 exit status after executing ghc with '-main-is MyModule.Main.main' and '--make' ---------------------------------------------------------------------- Comment By: Simon Marlow (simonmar) Date: 2004-04-16 02: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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-1255023 ] haddock doesn't like records, SourceForge.net |
|---|---|
| Next by Date: | queryFdOption broken, Adam Sampson |
| Previous by Thread: | [ ghc-Bugs-1255023 ] haddock doesn't like records, SourceForge.net |
| Next by Thread: | queryFdOption broken, Adam Sampson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |