Skip to content

"if this code is reached, the program will abort" in unregisterised build

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 (closed))

Trac metadata
Trac field Value
Version 7.6.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture sparc
Edited by Peter Trommler
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information