[GHC] #14025: Object file is put in wrong directory when any source has absolute path

#14025: Object file is put in wrong directory when any source has absolute path -------------------------------------+------------------------------------- Reporter: literon | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Files: `/tmp/e/A.hs`, `/tmp/e/dep.c`. Current dir: `/tmp/e`. `ghc -odir /tmp/xyzzy A.hs dep.c`: works as expected, puts `dep.o` in `/tmp/xyzzy`. But try to prefix either `A.hs` or `dep.c` (or both) with `/tmp/e/`, and suddenly `dep.o` is put in `/tmp/e`, not in `/tmp/xyzzy`. Couldn't check with 8.2.1 yet. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14025 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14025: Object file is put in wrong directory when any source has absolute path -------------------------------------+------------------------------------- Reporter: literon | Owner: RolandSenn Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RolandSenn): * owner: (none) => RolandSenn Comment: With 8.4.2 this error can be reproduced. I'll try to fix it. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14025#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14025: Object of a dependent c-file is put in wrong directory when this dependent is specified with a path -------------------------------------+------------------------------------- Reporter: literon | Owner: RolandSenn Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by RolandSenn): This bug has nothing to with absolute pathes! As soon as you specify the dep.c with a directory (different from ./) {{{ ghc -odir myodir A.hs subdir/dep.c }}} then GHC will write the dep.o file to myodir/subdir/dep.o . The bug occurs only if the dependent file is a ''*.c'' (or similar) file. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14025#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14025: Object file of a dependent c-file is put in wrong directory when this dependent is specified with a path -------------------------------------+------------------------------------- Reporter: literon | Owner: RolandSenn Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | driver/T14025, driver/T14025a Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Pahb: D Wiki Page: | -------------------------------------+------------------------------------- Changes (by RolandSenn): * status: new => patch * testcase: => driver/T14025, driver/T14025a * differential: => Pahb: D Comment: Patch uploaded to https://phabricator.haskell.org/D4930 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14025#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14025: Object file of a dependent c-file is put in wrong directory when this dependent is specified with a path -------------------------------------+------------------------------------- Reporter: literon | Owner: RolandSenn Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | driver/T14025, driver/T14025a Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Pahb: D4930 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RolandSenn): * differential: Pahb: D => Pahb: D4930 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14025#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14025: Object file of a dependent c-file is put in wrong directory when this dependent is specified with a path -------------------------------------+------------------------------------- Reporter: literon | Owner: RolandSenn Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | driver/T14025, driver/T14025a Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab: D4930 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RolandSenn): * differential: Pahb: D4930 => Phab: D4930 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14025#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14025: Object file of a dependent c-file is put in wrong directory when this dependent is specified with a path -------------------------------------+------------------------------------- Reporter: literon | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RolandSenn): * testcase: driver/T14025, driver/T14025a => * status: patch => new * differential: Phab: D4930 => * owner: RolandSenn => (none) Comment: Patch in Phab D4930 abandoned due to issues with Cabal. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14025#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14025: Object file is put in wrong directory when any source has absolute path -------------------------------------+------------------------------------- Reporter: literon | Owner: RolandSenn Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RolandSenn): * owner: (none) => RolandSenn Comment: I'll develop a new solution,just fixing the issue with the absolute path. I'll not change the difference with the use of subdirectories in odir between *.hs and *.c source files. Using again original ticket title. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14025#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14025: Object file is put in wrong directory when any source has absolute path -------------------------------------+------------------------------------- Reporter: literon | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RolandSenn): * owner: RolandSenn => (none) Comment: I stopped working on this ticket. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14025#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC