Re: [GHC] #3687: Merge _stub.o files back in to the .o file
#3687: Merge _stub.o files back in to the .o file --+- Reporter: NeilMitchell | Owner: simonmar Type: feature request | Status: closed Priority: high | Milestone: 7.4.1 Component: Compiler |Version: 6.10.4 Resolution: fixed| Keywords: Testcase: | Blockedby: Difficulty: | Os: Unknown/Multiple Blocking: 706 | Architecture: Unknown/Multiple Failure: None/Unknown | --+- Changes (by simonmar): * status: new = closed * resolution: = fixed Comment: Done: changeset:7b0ff1792d699ff02a604163c9ccf4a98a1ca3eb -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/3687#comment:13 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #3687: Merge _stub.o files back in to the .o file
#3687: Merge _stub.o files back in to the .o file -+-- Reporter: NeilMitchell |Owner: simonmar Type: feature request | Status: new Priority: high |Milestone: 7.0.2 Component: Compiler | Version: 6.10.4 Keywords:| Testcase: Blockedby:| Difficulty: Os: Unknown/Multiple | Blocking: Architecture: Unknown/Multiple | Failure: None/Unknown -+-- Changes (by simonmar): * owner: = simonmar * priority: low = high Comment: I've done this, will commit shortly. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/3687#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #3687: Merge _stub.o files back in to the .o file
#3687: Merge _stub.o files back in to the .o file -+-- Reporter: NeilMitchell |Owner: simonmar Type: feature request | Status: new Priority: high |Milestone: 7.2.1 Component: Compiler | Version: 6.10.4 Keywords:| Testcase: Blockedby:| Difficulty: Os: Unknown/Multiple | Blocking: Architecture: Unknown/Multiple | Failure: None/Unknown -+-- Changes (by simonmar): * milestone: 7.0.2 = 7.2.1 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/3687#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #3687: Merge _stub.o files back in to the .o file
#3687: Merge _stub.o files back in to the .o file -+-- Reporter: NeilMitchell |Owner: Type: feature request | Status: new Priority: normal|Milestone: 6.12 branch Component: Compiler | Version: 6.10.4 Keywords:| Difficulty: Os: Unknown/Multiple | Testcase: Architecture: Unknown/Multiple | Failure: None/Unknown -+-- Changes (by igloo): * milestone: = 6.12 branch -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/3687#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #3687: Merge _stub.o files back in to the .o file
#3687: Merge _stub.o files back in to the .o file --+- Reporter: NeilMitchell | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler |Version: 6.10.4 Resolution: | Keywords: Difficulty: | Os: Unknown/Multiple Testcase: | Architecture: Unknown/Multiple Failure: None/Unknown | --+- Comment (by NeilMitchell): I tracked down the bug. If you pass the same -osuf/-hisuf to GHCi as you do to when compiling the files then it works, so I guess this is a bug in the way I was invoking GHCi. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/3687#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #3687: Merge _stub.o files back in to the .o file
#3687: Merge _stub.o files back in to the .o file --+- Reporter: NeilMitchell | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler |Version: 6.10.4 Resolution: | Keywords: Difficulty: | Os: Unknown/Multiple Testcase: | Architecture: Unknown/Multiple Failure: None/Unknown | --+- Comment (by NeilMitchell): I've got flags like hidir/odir and hisuf/osuf set, so my guess is it's not honouring one of those (probably osuf). I can figure out a test case for that, or if you're just going to merge the _stub.o, I won't need to. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/3687#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #3687: Merge _stub.o files back in to the .o file
#3687: Merge _stub.o files back in to the .o file --+- Reporter: NeilMitchell | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler |Version: 6.10.4 Resolution: | Keywords: Difficulty: | Os: Unknown/Multiple Testcase: | Architecture: Unknown/Multiple Failure: None/Unknown | --+- Comment (by simonmar): I'd appreciate the test case - it may indicate a bug that we need to fix anyway. I'm surprised, since GHC uses the same code find files regardless of what mode it's running in, so the behaviour of -osuf etc. should be exactly the same with GHCi as it is with --make. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/3687#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #3687: Merge _stub.o files back in to the .o file
#3687: Merge _stub.o files back in to the .o file --+- Reporter: NeilMitchell | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler |Version: 6.10.4 Resolution: | Keywords: Difficulty: | Os: Unknown/Multiple Testcase: | Architecture: Unknown/Multiple Failure: None/Unknown | --+- Comment (by simonmar): I like this idea better than the fix in #706. Neil: I'm surprised that you say ghci forgets to link the _stub.o files, as far as I'm aware it should just pick up the _stub.o file if it exists (that's the #706 bug). -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/3687#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
[GHC] #3687: Merge _stub.o files back in to the .o file
#3687: Merge _stub.o files back in to the .o file -+-- Reporter: NeilMitchell | Owner: Type: feature request | Status: new Priority: normal| Component: Compiler Version: 6.10.4|Keywords: Os: Unknown/Multiple |Testcase: Architecture: Unknown/Multiple | Failure: None/Unknown -+-- GHC sometimes generates _stub.o files. When it does, ghci doesn't work with compiled files (it forgets to include the _stub.o in the files to link against), and it complicates many building rules (including those inside GHC's makefile). It would be far better if the _stub.o files were merged back in with the original. This is actually reasonably easy: {{{ b - doesFileExist stub when b $ do let tmp = res . tmp.o mv obj tmp exec [ld,-r,-o,obj,tmp,stub] rm stub rm tmp }}} While being mainly a feature request, this enhancement also fixes a bug with GHCi loading files with _stub's, so includes a bug fix for free. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/3687 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #3687: Merge _stub.o files back in to the .o file
#3687: Merge _stub.o files back in to the .o file --+- Reporter: NeilMitchell | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler |Version: 6.10.4 Resolution: | Keywords: Difficulty: | Os: Unknown/Multiple Testcase: | Architecture: Unknown/Multiple Failure: None/Unknown | --+- Changes (by igloo): * difficulty: = Comment: See also #706 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/3687#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs