Compiling libpandoc and undefined links to utf8_table4 in regex-pcre-builtin

I am trying to update libpandoc in new versions (above 1.10), and I got all the code fixes (basically ParserState needed to be changed to ReaderOptions and update the default settings).

However, during build I get the following error:

Download package regex-pcre-builtin-0.94.4.6.8.31 ... linking ... ghc: /home/XXXX/.cabal/lib/regex-pcre-builtin-0.94.4.6.8.31/ghc-7.4.1/ HSregex-pcre-builtin-0.94.4.6.8.31.o: unknown symbol `utf8_table4 '
ghc: unable to download package `regex-pcre-builtin-0.94.4.6.8.31 '

Trying to reinstall regex-pcre-builtin I get:

 $ cabal install regex-pcre-builtin --reinstall Resolving dependencies... In order, the following would be installed: regex-pcre-builtin-0.94.4.6.8.31 (reinstall) cabal: The following packages are likely to be broken by the reinstalls: highlighting-kate-0.5.4 pandoc-1.11.1 Use --force-reinstalls if you want to install anyway. 

Which suggests that reinstalling can actually crash pandoc itself.

I'm new to Haskell, and all my google regex-pcre-builtin and utf8_table4 lead to publications on hpaste.org where people put in the same error.

How can I solve this problem? What should I look for in such situations?


Edit: here is the violation code:

 {-# LANGUAGE TemplateHaskell #-} module LibPandoc.Instances where import Data.Data import Data.DeriveTH import Text.Pandoc import Text.Pandoc.Shared $( derive makeTypeable ''ReaderOptions ) $( derive makeData ''ReaderOptions ) $( derive makeTypeable ''WriterOptions ) $( derive makeData ''WriterOptions ) $( derive makeTypeable ''HTMLMathMethod ) $( derive makeData ''HTMLMathMethod ) $( derive makeTypeable ''ObfuscationMethod ) $( derive makeData ''ObfuscationMethod ) 
+4
source share
1 answer

I recently ran into this problem, it seems to be a bug in the latest version. You can get around this using a previous release, for example:

 ghc-pkg unregister regex-pcre-builtin cabal install regex-pcre-builtin-0.94.4.5.8.31 
+1
source

Source: https://habr.com/ru/post/1488649/


All Articles