[MacPorts] #65799: mupdf @1.20.3: builds fail across-the-board: expected '; ' after top level declarator

MacPorts noreply at macports.org
Thu Sep 8 00:13:05 UTC 2022

#65799: mupdf @1.20.3: builds fail across-the-board: expected ';' after top level
  Reporter:  mascguy  |      Owner:  essandess
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.7.2
Resolution:           |   Keywords:
      Port:  mupdf    |

Comment (by mascguy):

 Replying to [comment:1 mascguy]:
 > Per the following bug report, Clang is most likely running out of
 > https://bugs.ghostscript.com/show_bug.cgi?id=699317
 > The suggested fix is to disable optimization when compiling generated
 resources. And given how large these files are, that approach sounds

 Sadly, disabling optimization via `-O0` doesn't help: It almost looks as
 if we might be hitting some type of internal Clang limit.

 I've also tried switching from Xcode Clang (version 12 on my 10.15
 install), to MacPorts Clang 14 - but no love.

 Toolchain folks, apart from tweaking the resources - which are essentially
 monstrous C files, with binary data encoded in strings - is there any way
 to increase Clang limits? Or do we need to consider other options, like
 compiling these via GCC?

 Still digging through the project, to get a better idea of what the flow
 is. And perhaps there's some option to split files. But no luck so far.

 Thoughts/suggestions appreciated!

Ticket URL: <https://trac.macports.org/ticket/65799#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS

More information about the macports-tickets mailing list