[GHC] #7709: ios patch no 7: Omit ghc-pwd from final stage when cross compiling

#7709: ios patch no 7: Omit ghc-pwd from final stage when cross compiling ------------------------------+--------------------------------------------- Reporter: StephenBlackheath | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: ------------------------------+--------------------------------------------- Without this patch, we get this error when cross compiling: {{{ "cp" -p utils/ghc-pwd/dist-install/build/tmp/ghc-pwd inplace/bin/ghc-pwd cp: utils/ghc-pwd/dist-install/build/tmp/ghc-pwd: No such file or directory make[1]: *** [inplace/bin/ghc-pwd] Error 1 make: *** [all] Error 2 }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7709 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7709: ios patch no 7: Omit ghc-pwd from final stage when cross compiling ------------------------------+--------------------------------------------- Reporter: StephenBlackheath | Owner: Type: bug | Status: patch Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: ------------------------------+--------------------------------------------- Changes (by StephenBlackheath): * status: new => patch -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7709#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7709: ios patch no 7: Omit ghc-pwd from final stage when cross compiling ------------------------------+--------------------------------------------- Reporter: StephenBlackheath | Owner: Type: feature request | Status: patch Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: ------------------------------+--------------------------------------------- Changes (by StephenBlackheath): * type: bug => feature request -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7709#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7709: ios patch no 7: Omit ghc-pwd from final stage when cross compiling ----------------------------------+----------------------------------------- Reporter: StephenBlackheath | Owner: Type: feature request | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: 7724 Related: | ----------------------------------+----------------------------------------- Changes (by igloo): * difficulty: => Unknown Comment: I'm confused about what's going on here. Why isn't `ghc-pwd` built when cross-compiling? -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7709#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7709: ios patch no 7: Omit ghc-pwd from final stage when cross compiling ----------------------------------+----------------------------------------- Reporter: StephenBlackheath | Owner: StephenBlackheath Type: feature request | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: 7724 Related: | ----------------------------------+----------------------------------------- Changes (by StephenBlackheath): * owner: => StephenBlackheath Comment: Sorry - I am pretty sure I got this wrong. I'll have to figure it out and get back to you. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7709#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7709: ios patch no 7: Omit ghc-pwd from final stage when cross compiling --------------------------------+------------------------------------------- Reporter: StephenBlackheath | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: 7724 | Related: --------------------------------+------------------------------------------- Changes (by igloo): * owner: StephenBlackheath => * status: patch => new Comment: OK, thanks -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7709#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7709: ios patch no 7: Omit ghc-pwd from final stage when cross compiling --------------------------------+------------------------------------------- Reporter: StephenBlackheath | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: 7724 | Related: --------------------------------+------------------------------------------- Comment(by StephenBlackheath): Here's what's going on: ghc-pwd is built in the final stage and so it's for the target. Our iOS compiler generates .a files in place of executables, so it produces ghc-pwd.a. Unfortunately it's not as simple as just changing exeext to .a, because we need to make sure a different exeext is used for host and target executables. Should I just go through all the exeexts and change them based on whether it's host or target? Or is it better to keep it simple and come up with a way to avoid ghc-pwd being installed into inplace/bin/ when Stage1Only=YES is selected in mk/build.mk (as we do when building cross compilers)? -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7709#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7709: ios patch no 7: Omit ghc-pwd from final stage when cross compiling --------------------------------+------------------------------------------- Reporter: StephenBlackheath | Owner: igloo Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: 7724 | Related: --------------------------------+------------------------------------------- Changes (by igloo): * owner: => igloo Comment: Ah, I see. We'd also have problems if anyone wanted to cross-compile to/from Windows. I think we may be able to do this in a tidier way; I'll take a look. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7709#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7709: ios patch no 7: Omit ghc-pwd from final stage when cross compiling --------------------------------+------------------------------------------- Reporter: StephenBlackheath | Owner: igloo Type: feature request | Status: new Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Resolution: | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: 7724 | Related: --------------------------------+------------------------------------------- Changes (by igloo): * milestone: => 7.8.1 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7709#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7709: ios patch no 7: Omit ghc-pwd from final stage when cross compiling
--------------------------------+-------------------------------------------
Reporter: StephenBlackheath | Owner: igloo
Type: feature request | Status: new
Priority: normal | Milestone: 7.8.1
Component: Compiler | Version: 7.7
Resolution: | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Difficulty: Unknown
Testcase: | Blockedby:
Blocking: 7724 | Related:
--------------------------------+-------------------------------------------
Comment(by ian@…):
commit d65a61dfa99e613a3f16b85e592b1e35270d4098
{{{
Author: Ian Lynagh

#7709: ios patch no 7: Omit ghc-pwd from final stage when cross compiling --------------------------------+------------------------------------------- Reporter: StephenBlackheath | Owner: igloo Type: feature request | Status: closed Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Resolution: fixed | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: 7724 | Related: --------------------------------+------------------------------------------- Changes (by igloo): * status: new => closed * resolution: => fixed Comment: Done -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7709#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC