<div dir="ltr">Hi<div><br></div><div>I attempt to build head today on OpenBSD current and failed, but i not sure where to start to fix the problems. The full configure and build logs are attached. Just a note: ghc-8.0 builds fine, ghc-8.2 fails with the same error.</div><div><br></div><div>the first error is</div><div><br></div><div>"inplace/bin/ghc-stage1" -optc-std=gnu99 -optc-fno-stack-protector -optc-Wall -optc-Wall -optc-Wextra -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Wi     nline -optc-Waggregate-return -optc-Wpointer-arith -optc-Wmissing-noreturn -optc-Wnested-externs -optc-Wredundant-decls -optc-Iincludes -optc-Iincludes/dist -optc-Iincludes/dist-derivedco<wbr>ns     tants/header -optc-Iincludes/dist-ghcconsta<wbr>nts/header -optc-Irts -optc-Irts/dist/build -optc-DCOMPILING_RTS -optc-fno-strict-aliasing -optc-fno-common -optc-Irts/dist/build/./autoge<wbr>n -optc-     O2 -optc-fomit-frame-pointer -optc-g -optc-DRtsWay=\"rts_v\" -optc-ffunction-sections -optc-fdata-sections -static  -H32m -O -Wall   -Iincludes -Iincludes/dist -Iincludes/dist-derivedconsta     nts/header -Iincludes/dist-ghcconstants/h<wbr>eader -Irts -Irts/dist/build -DCOMPILING_RTS -this-unit-id rts -dcmm-lint      -i -irts -irts/dist/build -Irts/dist/build -irts/dist/build/./autogen      -Irts/dist/build/./autogen           -O2    -Wnoncanonical-monad-instance<wbr>s  -c rts/Timer.c -o rts/dist/build/Timer.o<br></div><div><div> In file included from rts/posix/Signals.h:13,</div><div>                  from rts/RtsSignals.h:14,</div><div><br></div><div>                  from rts/Timer.c:26:0: error:</div><div><br></div><div> /usr/include/signal.h:72:0: error:<br></div><div>      warning: redundant redeclaration of '__errno'</div><div>    |</div><div>72 | extern int *__errno(void);</div><div>    | ^</div><div><br></div></div><div>and the last error is</div><div><br></div><div><div>rts/linker/Elf.c:539:0: error:  warning: unused variable 'secno'</div><div>    |</div><div>539 |          Elf_Word secno = stab[j].st_shndx;</div><div>    | ^</div><div>`gcc' failed in phase `C Compiler'. (Exit code: 1)</div><div>gmake[1]: *** [rts/<a href="http://ghc.mk:248" target="_blank">ghc.mk:248</a>: rts/dist/build/linker/Elf.o] Error 1</div><div>gmake: *** [Makefile:127: all] Error 2</div></div><div><br></div></div>