|
RE: --make and -make-is: msg#00116lang.haskell.glasgow.bugs
Yes; same issue. I've added a note to the documentation of -main-is: >>>existing stuff Strictly speaking, <option>-main-is</option> is not a link-phase flag at all; it has no effect on the link step. The flag must be specified when compiling the module containing the specified main function (e.g. module <literal>A</literal> in the latter two items above). It has no effect for other modules, and hence can safely be given to <literal>ghc --make</literal>. >>>new stuff starts here: However, if all the modules are otherwise up to date, you may need to force recompilation both of the module where the new "main" is, and of the module where the "main" function used to be; <literal>ghc</literal> is not clever enough to figure out that they both need recompiling. You can force recompilation by removing the object file, or by using the <option>-no-recomp</option> flag. | -----Original Message----- | From: glasgow-haskell-bugs-bounces@xxxxxxxxxxx [mailto:glasgow-haskell-bugs- | bounces@xxxxxxxxxxx] On Behalf Of Kristofer Johannisson | Sent: 17 March 2005 22:58 | To: glasgow-haskell-bugs@xxxxxxxxxxx | Subject: --make and -make-is | | Running GHC 6.4 on Mac OS X 10.3.8. | | I have problems using --make and -make-is, which seem to be related to | bug "[ 935792 ] --make and -main-is don't work together". The shell | transcript below illustrates the problem. | | / Kristofer Johannisson | | | | prompt$ ls | A.hs | prompt$ more A.hs | module A where | | main = putStrLn "hello world" | | prompt$ ghc --make A.hs | Chasing modules from: A.hs | Compiling A ( A.hs, A.o ) | prompt$ ls | A.hi A.hs A.o | prompt$ ghc -main-is A --make A.hs | Chasing modules from: A.hs | Skipping A ( A.hs, A.o ) | Linking ... | ld: Undefined symbols: | _ZCMain_main_closure | ___stginit_ZCMain | prompt$ rm -f A.o | prompt$ ghc -main-is A --make A.hs | Chasing modules from: A.hs | Compiling A ( A.hs, A.o ) | Linking ... | prompt$ ./a.out | hello world | | _______________________________________________ | Glasgow-haskell-bugs mailing list | Glasgow-haskell-bugs@xxxxxxxxxxx | http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | --make and -make-is, Kristofer Johannisson |
|---|---|
| Next by Date: | [ ghc-Bugs-1166317 ] Unknown pseudo-op: .subsections_via_symbols (apple gcc 3.3), SourceForge.net |
| Previous by Thread: | --make and -make-is, Kristofer Johannisson |
| Next by Thread: | [ ghc-Bugs-1166317 ] Unknown pseudo-op: .subsections_via_symbols (apple gcc 3.3), SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |