Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regex-pcre2 compilation failure #7698

Open
alexeyzab opened this issue Feb 27, 2025 · 0 comments
Open

regex-pcre2 compilation failure #7698

alexeyzab opened this issue Feb 27, 2025 · 0 comments

Comments

@alexeyzab
Copy link
Contributor

       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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant