Building head on Openbsd
Adam Steen
adam at adamsteen.com.au
Sun Mar 26 11:24:07 UTC 2017
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20170326/a9a2363d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: conf.log
Type: text/x-log
Size: 14605 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20170326/a9a2363d/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make.log
Type: text/x-log
Size: 3038290 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20170326/a9a2363d/attachment-0003.bin>
More information about the ghc-devs
mailing list