Hi
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.
the first error is
"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-derivedcons tants/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\" -optc-ffunction-sections -optc-fdata-sections -static -H32m -O -Wall -Iincludes -Iincludes/dist -Iincludes/dist-derivedconsta nts/header -Iincludes/dist-ghcconstants/header -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-instances -c rts/Timer.c -o rts/dist/build/Timer.o
In file included from rts/posix/Signals.h:13,
from rts/RtsSignals.h:14,
from rts/Timer.c:26:0: error:
/usr/include/signal.h:72:0: error:
warning: redundant redeclaration of '__errno'
|
72 | extern int *__errno(void);
| ^
and the last error is
rts/linker/Elf.c:539:0: error: warning: unused variable 'secno'
|
539 | Elf_Word secno = stab[j].st_shndx;
| ^
`gcc' failed in phase `C Compiler'. (Exit code: 1)
gmake[1]: *** [rts/
ghc.mk:248: rts/dist/build/linker/Elf.o] Error 1
gmake: *** [Makefile:127: all] Error 2