commercialhaskell / commercialhaskell/stackage

regex-pcre2 compilation failure

Open
#7,698 9 comments 0 reactions 0 assignees View on GitHub
failure: compile
Dominant language
Dockerfile
Stars
551
Forks
825
Avg merge
2d 16m
Merged PRs (30d)
8

Description

```
Preprocessing library for regex-pcre2-1.0.0.0...
compiling .stack-work/dist/x86_64-linux-tinfo6/ghc-9.10.1/build/Text/Regex/PCRE2/Wrap_hsc_make.c failed (exit code 1)
rsp file was: ".stack-work/dist/x86_64-linux-tinfo6/ghc-9.10.1/build/Text/Regex/PCRE2/hsc2hscall42-0.rsp"
command was: /usr/bin/gcc -c .stack-work/dist/x86_64-linux-tinfo6/ghc-9.10.1/build/Text/Regex/PCRE2/Wrap_hsc_make.c -o .stack-work/dist/x86_64-linux-tinfo6/ghc-9.10.1/build/Text/Regex/PCRE2/Wrap_hsc_make.o -fuse-ld=gold -Wl,--no-as-needed -D__GLASGOW_HASKELL__=910 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -I/usr/include -I/usr/include -I.stack-work/dist/x86_64-linux-tinfo6/ghc-9.10.1/build/autogen -I.stack-work/dist/x86_64-linux-tinfo6/ghc-9.10.1/build/global-autogen -include .stack-work/dist/x86_64-linux-tinfo6/ghc-9.10.1/build/autogen/cabal_macros.h -I/home/curators/.stack/programs/x86_64-linux/ghc-tinfo6-9.10.1/lib/ghc-9.10.1/lib/../lib/x86_64-linux-ghc-9.10.1/bytestring-0.12.1.0-9eda/include -I/home/curators/.stack/programs/x86_64-linux/ghc-tinfo6-9.10.1/lib/ghc-9.10.1/lib/../lib/x86_64-linux-ghc-9.10.1/ghc-internal-9.1001.0-d172/include -I/home/curators/.stack/programs/x86_64-linux/ghc-tinfo6-9.10.1/lib/ghc-9.10.1/lib/../lib/x86_64-linux-ghc-9.10.1/ghc-bignum-1.3-bfd1/include -I/home/curators/.stack/programs/x86_64-linux/ghc-tinfo6-9.10.1/lib/ghc-9.10.1/lib/../lib/x86_64-linux-ghc-9.10.1/rts-1.0.2/include -I/home/curators/.stack/programs/x86_64-linux/ghc-tinfo6-9.10.1/include/include/
error: In file included from .stack-work/dist/x86_64-linux-tinfo6/ghc-9.10.1/build/Text/Regex/PCRE2/Wrap_hsc_make.c:1:
Wrap.hsc: In function ‘main’:
/home/curators/work/unpack-dir/unpacked/regex-pcre2-1.0.0.0-35f856a636a323d3435a23954b357c6befb7a8d82b62b452a30c344b28f837b0/Wrap.hsc:369:84: error: ‘PCRE2_ALT_EXTENDED_CLASS’ undeclared (first use in this function)
/home/curators/.stack/programs/x86_64-linux/ghc-tinfo6-9.10.1/lib/ghc-9.10.1/lib/template-hsc.h:112:10: note: in definition of macro ‘hsc_enum’
112 | if ((x) < 0) \
| ^
/home/curators/work/unpack-dir/unpacked/regex-pcre2-1.0.0.0-35f856a636a323d3435a23954b357c6befb7a8d82b62b452a30c344b28f837b0/Wrap.hsc:369:84: note: each undeclared identifier is reported only once for each function it appears in
/home/curators/.stack/programs/x86_64-linux/ghc-tinfo6-9.10.1/lib/ghc-9.10.1/lib/template-hsc.h:112:10: note: in definition of macro ‘hsc_enum’
112 | if ((x) < 0) \
| ^
/home/curators/work/unpack-dir/unpacked/regex-pcre2-1.0.0.0-35f856a636a323d3435a23954b357c6befb7a8d82b62b452a30c344b28f837b0/Wrap.hsc:395:94: error: ‘PCRE2_DISABLE_RECURSELOOP_CHECK’ undeclared (first use in this function)
/home/curators/.stack/programs/x86_64-linux/ghc-tinfo6-9.10.1/lib/ghc-9.10.1/lib/template-hsc.h:112:10: note: in definition of macro ‘hsc_enum’
112 | if ((x) < 0) \
| ^
```

cc @peteryland

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.