[GHC] #8877: "if this code is reached, the program will abort" in sparc

#8877: "if this code is reached, the program will abort" in sparc ----------------------------+------------------------------------- Reporter: nomeata | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Keywords: | Operating System: Unknown/Multiple Architecture: sparc | Type of failure: Runtime crash Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #8857 | ----------------------------+------------------------------------- Hi, sparc, when built with dynamic libraries, fails with a segmentation fault: https://buildd.debian.org/status/fetch.php?pkg=ghc&arch=sparc&ver=7.8.20140228-1&stamp=1393975264 Possible cause indicated by {{{ "inplace/bin/ghc-stage1" -static -H32m -O -lffi -optl-pthread -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist- ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -package-name rts -optc-DNOSMP -dcmm-lint -i -irts -irts/dist/build -irts/dist/build/autogen -Irts/dist/build -Irts/dist/build/autogen -O2 -c rts/Apply.cmm -o rts/dist/build/Apply.o /tmp/ghc14927_0/ghc14927_2.hc: In function 'stg_PAP_entry': /tmp/ghc14927_0/ghc14927_2.hc:101:30: warning: function called through a non-compatible type [enabled by default] /tmp/ghc14927_0/ghc14927_2.hc:101:30: note: if this code is reached, the program will abort }}} It works without shared libraries (see #8857) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8877 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8877: "if this code is reached, the program will abort" in unregisterised build -------------------------------------+------------------------------------ Reporter: nomeata | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: #8857 -------------------------------------+------------------------------------ Changes (by trommler): * cc: ptrommler@… (added) * version: 7.6.3 => 7.8.1-rc2 * architecture: sparc => Unknown/Multiple Comment: I see the same on powerpc64 with dynamic libraries enabled: [https://build.opensuse.org/package/live_build_log/home:ptrommler/ghc/openSUS...] Changing architecture accordingly. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8877#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8877: "if this code is reached, the program will abort" in unregisterised build
-------------------------------------+-------------------------------------
Reporter: nomeata | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 7.10.1
Component: Compiler | Version: 7.8.1-rc2
Resolution: fixed | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Runtime crash | Unknown/Multiple
Blocked By: | Test Case:
Related Tickets: #8857 | Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
Changes (by thomie):
* cc: slyfox (added)
* status: new => closed
* resolution: => fixed
* milestone: => 7.10.1
Comment:
This should be fixed, thanks to the following commits:
In commit 78863edbb0751f5c9694ea10c6132a87cfd0ee10:
{{{
Author: Sergei Trofimovich <>
Date: Wed Aug 27 22:20:33 2014 +0300
Revert "disable shared libs on sparc (linux/solaris) (fixes #8857)"
This reverts commit 623883f1ed0ee11cc925c4590fb09565403fd231.
The commit a93ab43ab5f40cadbedea2f6342b93c245e91434
driver: pass '-fPIC' option to assembler as well
fixes shared libraries on sparc at least on linux.
Properly fixes Issue #8857
Signed-off-by: Sergei Trofimovich
participants (1)
-
GHC