Opened 5 months ago

Closed 2 months ago

#70238 closed defect (fixed)

tesseract: failed to build on Intel/Sonoma 14.5

Reported by: mcmara (Jack McMara) Owned by: markemer (Mark Anderson)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: tesseract

Description

Unable to build tesseract on Sonoma 14.5, on Intel, with Macports version v2.3.9:

$ port install tesseract
--->  Computing dependencies for tesseract
--->  Fetching distfiles for tesseract
--->  Verifying checksums for tesseract
--->  Extracting tesseract
--->  Configuring tesseract
--->  Building tesseract                                 
Error: Failed to build tesseract: command execution failed
Error: See /Users/gmarani/dev/install/macports/var/macports/logs/_Users_gmarani_dev_install_macports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_tesseract/tesseract/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port tesseract failed

Relevant log lines are:

:info:build asciidoc: FAILED: tesseract.1.asc: line 411: unexpected error:
:info:build asciidoc: ------------------------------------------------------------
:info:build Traceback (most recent call last):
:info:build   File "/Users/gmarani/dev/install/macports/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/asciidoc/asciidoc.py", line 5680, in asciidoc
:info:build     document.translate(has_header)  # Generate the output.
:info:build     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:info:build   File "/Users/gmarani/dev/install/macports/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/asciidoc/asciidoc.py", line 1273, in translate
:info:build     Section.translate()
:info:build   File "/Users/gmarani/dev/install/macports/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/asciidoc/asciidoc.py", line 2000, in translate
:info:build     Section.translate_body()
:info:build   File "/Users/gmarani/dev/install/macports/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/asciidoc/asciidoc.py", line 2011, in translate_body
:info:build     next.translate()
:info:build   File "/Users/gmarani/dev/install/macports/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/asciidoc/asciidoc.py", line 2715, in translate
:info:build     self.translate_entry()
:info:build   File "/Users/gmarani/dev/install/macports/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/asciidoc/asciidoc.py", line 2555, in translate_entry
:info:build     self.translate_item()
:info:build   File "/Users/gmarani/dev/install/macports/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/asciidoc/asciidoc.py", line 2568, in translate_item
:info:build     writer.write_tag(self.tag.text, text, self.presubs, self.attributes, trace='list text')
:info:build   File "/Users/gmarani/dev/install/macports/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/asciidoc/asciidoc.py", line 4274, in write_tag
:info:build     self.write(content)
:info:build   File "/Users/gmarani/dev/install/macports/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/asciidoc/asciidoc.py", line 4257, in write
:info:build     self.write_line(s)
:info:build   File "/Users/gmarani/dev/install/macports/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/asciidoc/asciidoc.py", line 4240, in write_line
:info:build     self.f.write((re.sub(r'\\({[a-zA-Z0-9_][a-zA-Z0-9_\-]*)', '\\1', line) or '') + self.newline)
:info:build BrokenPipeError: [Errno 32] Broken pipe
:info:build Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
:info:build BrokenPipeError: [Errno 32] Broken pipe
:info:build make[1]: *** [doc/tesseract.1] Error 6

Attachments (1)

main.log (154.3 KB) - added by mcmara (Jack McMara) 5 months ago.

Download all attachments as: .zip

Change History (7)

Changed 5 months ago by mcmara (Jack McMara)

Attachment: main.log added

comment:1 Changed 5 months ago by jmroot (Joshua Root)

Owner: set to markemer

comment:2 Changed 5 months ago by mcmara (Jack McMara)

Any suggestion or temporary workaround? This problem breaks the installation of texlive (and hence also my Latex engine).

comment:3 Changed 5 months ago by mcmara (Jack McMara)

Workaround to install texlive without tesseract (see #69822):

port install dvisvgm-devel -mupdf
port install texlive

comment:4 Changed 3 months ago by markemer (Mark Anderson)

I've updated Tesseract to the latest version. Can you give it another try?

comment:5 Changed 2 months ago by mcmara (Jack McMara)

It builds now on the aforementioned Intel machine. Thank you for the update. Please note that my macports version has been bumped to v2.10.1 since opening this ticket.

comment:6 Changed 2 months ago by markemer (Mark Anderson)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.