[GHC] #9381: Implement rdynamic
#9381: Implement rdynamic -------------------------------------+------------------------------------- Reporter: facundo.dominguez | Owner: Type: feature request | facundo.dominguez Priority: normal | Status: new Component: Compiler | Milestone: Keywords: | Version: 7.8.2 Architecture: Unknown/Multiple | Operating System: Difficulty: Unknown | Unknown/Multiple Blocked By: | Type of failure: Related Tickets: 7015 | None/Unknown | Test Case: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Currently ghc ignores the `-rdynamic` flag. With a small effort it can be used as a synonym of `-optl -rdynamic` in linux and `-optl -export-all-symbols` in windows/mingw32. In other platforms, similar translations must be possible to get the symbols of an executable exported. This feature would improve usability of an upcoming implementation of #7015. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9381> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9381: Implement -rdynamic -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez facundo.dominguez | Status: new Type: feature | Milestone: request | Version: 7.8.2 Priority: normal | Keywords: Component: Compiler | Architecture: Unknown/Multiple Resolution: | Difficulty: Unknown Operating System: | Blocked By: Unknown/Multiple | Related Tickets: 7015 Type of failure: | None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9381#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9381: Implement -rdynamic -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez facundo.dominguez | Status: new Type: feature | Milestone: request | Version: 7.8.2 Priority: normal | Keywords: Component: Compiler | Architecture: Unknown/Multiple Resolution: | Difficulty: Unknown Operating System: | Blocked By: Unknown/Multiple | Related Tickets: 7015 Type of failure: | None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D102 | -------------------------------------+------------------------------------- Changes (by facundo.dominguez): * differential: => Phab:D102 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9381#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9381: Implement -rdynamic -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez facundo.dominguez | Status: new Type: feature | Milestone: request | Version: Priority: normal | Keywords: Component: Compiler | Architecture: Unknown/Multiple Resolution: | Difficulty: Unknown Operating System: | Blocked By: Unknown/Multiple | Related Tickets: 7015 Type of failure: | None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D102 | -------------------------------------+------------------------------------- Changes (by facundo.dominguez): * version: 7.8.2 => -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9381#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9381: Implement -rdynamic -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez facundo.dominguez | Status: patch Type: feature | Milestone: request | Version: Priority: normal | Keywords: Component: Compiler | Architecture: Unknown/Multiple Resolution: | Difficulty: Unknown Operating System: | Blocked By: Unknown/Multiple | Related Tickets: 7015 Type of failure: | None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D102 | -------------------------------------+------------------------------------- Changes (by facundo.dominguez): * status: new => patch -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9381#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9381: Implement -rdynamic -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez facundo.dominguez | Status: patch Type: feature | Milestone: request | Version: Priority: normal | Keywords: Component: Compiler | Architecture: Unknown/Multiple Resolution: | Difficulty: Unknown Operating System: | Blocked By: Unknown/Multiple | Related Tickets: 7015 Type of failure: | None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D102 | -------------------------------------+------------------------------------- Comment (by Austin Seipp <austin@…>): In [changeset:"0138110125400581dc9872dedfcb21bd50b372f1/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="0138110125400581dc9872dedfcb21bd50b372f1" Implement -rdynamic in Linux and Windows/MinGW32. Summary: In Linux, it is a synonym for -optl -rdynamic. In Windows, it is a synonym for -optl -export-all-symbols. Test Plan: validate Reviewers: simonmar, austin Reviewed By: simonmar, austin Subscribers: mboes, phaskell, simonmar, relrod, ezyang, carter Differential Revision: https://phabricator.haskell.org/D102 GHC Trac Issues: #9381 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9381#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9381: Implement -rdynamic -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez facundo.dominguez | Status: closed Type: feature | Milestone: 7.10.1 request | Version: Priority: normal | Keywords: Component: Compiler | Architecture: Unknown/Multiple Resolution: fixed | Difficulty: Unknown Operating System: | Blocked By: Unknown/Multiple | Related Tickets: #7015 Type of failure: | None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D102 | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: patch => closed * resolution: => fixed * related: 7015 => #7015 * milestone: => 7.10.1 Comment: Merged, thanks! -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9381#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9381: Implement -rdynamic -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez | Status: new Type: feature request | Milestone: 7.10.1 Priority: normal | Version: Component: Compiler | Keywords: Resolution: | Architecture: Operating System: Windows | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #7015 | Differential Revisions: Phab:D102 -------------------------------------+------------------------------------- Changes (by thomie): * owner: facundo.dominguez => * resolution: fixed => * status: closed => new * os: Unknown/Multiple => Windows Comment: This test is failing on Windows 64 bit. {{{ =====> rdynamic(normal) 50 of 71 [0, 0, 0] cd . && "D:/home/thomie/ghc-master/inplace/bin/ghc-stage2.exe" -o rdynamic rdynamic.hs -fforce-recomp -dcore-lint -dcmm-lint -dno-debug- output -no-user-package-db -rtsopts -fno-warn-tabs -fno-ghci-history -rdynamic -package ghc -v > rdynamic.comp.stderr 2>&1 cd . && ./rdynamic </dev/null > rdynamic.run.stdout 2> rdynamic.run.stderr Wrong exit code (expected 0 , actual 160 ) Stdout: Stderr: *** unexpected failure for rdynamic(normal) }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9381#comment:7> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9381: Implement -rdynamic -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez | Status: new Type: feature request | Milestone: 7.10.1 Priority: normal | Version: Component: Compiler | Keywords: Resolution: | Architecture: Operating System: Windows | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #7015 | Differential Revisions: Phab:D102 -------------------------------------+------------------------------------- Comment (by Thomas Miedema <thomasmiedema@…>): In [changeset:"a765f72c130111cdbd30f2a3e159186c6e625d2a/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="a765f72c130111cdbd30f2a3e159186c6e625d2a" Testsuite: mark tests as expect_broken on win64 Tickets: #1407, #9381, #9878. Differential Revision: https://phabricator.haskell.org/D977 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9381#comment:8> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9381: Implement -rdynamic -------------------------------------+------------------------------------- Reporter: | Owner: Phyx- facundo.dominguez | Type: feature request | Status: new Priority: normal | Milestone: 7.10.1 Component: Compiler | Version: Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #7015 | Differential Revisions: Phab:D102 -------------------------------------+------------------------------------- Changes (by Phyx-): * owner: => Phyx- -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9381#comment:9> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9381: Implement -rdynamic -------------------------------------+------------------------------------- Reporter: | Owner: Phyx- facundo.dominguez | Type: feature request | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #7015 | Differential Revisions: Phab:D102 -------------------------------------+------------------------------------- Changes (by Phyx-): * milestone: 7.10.1 => 7.12.1 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9381#comment:10> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9381: Implement -rdynamic -------------------------------------+------------------------------------- Reporter: | Owner: Phyx- facundo.dominguez | Type: feature request | Status: patch Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #7015 | Differential Revisions: Phab:D1149 -------------------------------------+------------------------------------- Changes (by Phyx-): * status: new => patch * differential: Phab:D102 => Phab:D1149 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9381#comment:11> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9381: Implement -rdynamic -------------------------------------+------------------------------------- Reporter: | Owner: Phyx- facundo.dominguez | Type: feature request | Status: patch Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #7015 | Differential Revisions: Phab:D1149 -------------------------------------+------------------------------------- Comment (by Ben Gamari <bgamari.foss@…>): In [changeset:"b17ec5674f26b0b65dda4ec446e0b9b5336b7562/ghc" b17ec567/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="b17ec5674f26b0b65dda4ec446e0b9b5336b7562" Fix rdynamic flag and test on Windows The rdynamic tests and feature are marked broken on windows. This is because the flag used doesn't exist and the symbol lookup in the test did not account for platform differences in name mangling. This commit fixes the flag and tests for rdynamic on windows. Test Plan: make TEST="rdynamic" on both x86 and x86_64 Reviewers: austin, thomie, bgamari Reviewed By: thomie, bgamari Subscribers: #ghc_windows_task_force Differential Revision: https://phabricator.haskell.org/D1149 GHC Trac Issues: #9381 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9381#comment:12> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9381: Implement -rdynamic -------------------------------------+------------------------------------- Reporter: | Owner: Phyx- facundo.dominguez | Type: feature request | Status: closed Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #7015 | Differential Revisions: Phab:D1149 -------------------------------------+------------------------------------- Changes (by Phyx-): * status: patch => closed * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9381#comment:13> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC