Skip to content

compilation failure on OpenBSD

GHC HEAD as of June 30 2015 fails to compile on OpenBSD 5.7/5.8-beta with following error (I've cut off all warnings there):

"inplace/bin/ghc-stage1" -optc-fno-stack-protector -optc-Wall -optc-Wall -optc-Wextra -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate
-return -optc-Wpointer-arith -optc-Wmissing-noreturn -optc-Wnested-externs -optc-Wredundant-decls -optc-Iincludes -optc-Iincludes/dist -optc-Iincludes/dist-derivedconstants/header -optc-Iincludes
/dist-ghcconstants/header -optc-Irts -optc-Irts/dist/build -optc-DCOMPILING_RTS -optc-fno-strict-aliasing -optc-fno-common -optc-Irts/dist/build/autogen -optc-O2 -optc-fomit-frame-pointer -optc-g
 -optc-DRtsWay=\"rts_v\" -static  -H64m -O0  -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -this-pa
ckage-key rts -dcmm-lint      -i -irts -irts/dist/build -irts/dist/build/autogen -Irts/dist/build -Irts/dist/build/autogen           -O2    -c rts/Linker.c -o rts/dist/build/Linker.o

In file included from rts/Linker.c:92:0: error: 

[...]
rts/Linker.c: In function 'getSectionKind_ELF':

rts/Linker.c:5308:0: error:
     error: 'SHT_INIT_ARRAY' undeclared (first use in this function)

rts/Linker.c:5308:0: error:
     error: (Each undeclared identifier is reported only once

rts/Linker.c:5308:0: error:
     error: for each function it appears in.)
rts/ghc.mk:243: recipe for target 'rts/dist/build/Linker.o' failed
gmake[1]: *** [rts/dist/build/Linker.o] Error 1
Trac metadata
Trac field Value
Version 7.11
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Runtime System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC simonmar
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information