--make and -main-is don't work together
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@gmail.com
Trac metadata
Trac field |
Value |
Version |
6.2 |
Type |
Bug |
TypeOfFailure |
OtherFailure |
Priority |
normal |
Resolution |
ResolvedFixed |
Component |
Compiler |
Test case |
|
Differential revisions |
|
BlockedBy |
|
Related |
|
Blocking |
|
CC |
|
Operating system |
|
Architecture |
|