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

Several non-descript cases of "core::Error" while compiling with GCC 10.3 in MSYS2 #3594

Closed
LigH-de opened this issue Oct 13, 2021 · 8 comments

Comments

@LigH-de
Copy link

LigH-de commented Oct 13, 2021

Environment

  • Tesseract Version: HEAD
  • Commit Number: 5.0.0-beta-20210916-63-g0d57
  • Platform: media-autobuild suite = MSYS2 + MinGW64 + GCC 10.3 Win32 cross-compiler (ccache enabled) on Windows 7 SP1 x64 and Windows 10

Current Behavior:

Several non-descript cases of "core::Error" while compiling with GCC 10.3:

...
  CXX      src/dict/libtesseract_la-dawg_cache.lo
terminate called after throwing an instance of 'core::Error'
terminate called recursively
make[1]: *** [Makefile:5779: src/cutil/libtesseract_la-oldlist.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/build/tesseract-git/build-32bit'
make: *** [Makefile:8149: all-recursive] Error 1
Making all in .
make[1]: Entering directory '/build/tesseract-git/build-32bit'
  CXX      src/cutil/libtesseract_la-oldlist.lo
  CXX      src/dict/libtesseract_la-dict.lo
  CXX      src/dict/libtesseract_la-stopper.lo
  CXX      src/dict/libtesseract_la-trie.lo
terminate called after throwing an instance of 'core::Error'
terminate called recursively
make[1]: *** [Makefile:5821: src/dict/libtesseract_la-trie.lo] Error 1
make[1]: Leaving directory '/build/tesseract-git/build-32bit'
make: *** [Makefile:8149: all-recursive] Error 1

See more verbose log files in logs.zip collected by media-autobuild_suite

I am a bit confused why it does not contain verbose C/C++ compiler errors with references to source lines. 🤔

Expected Behavior:

successful compilation

Suggested Fix:

none; I am not a C/C++ developer

@stweil
Copy link
Contributor

stweil commented Oct 13, 2021

I am a bit confused why it does not contain verbose C/C++ compiler errors with references to source lines.

The reason is simple: it's not caused by the Tesseract source code, but a problem of the compiler, either not enough RAM or a compiler bug.

@stweil
Copy link
Contributor

stweil commented Oct 13, 2021

It looks like you used a parallel build. I suggest to try a single threaded build.

@LigH-de
Copy link
Author

LigH-de commented Oct 13, 2021

So I did, but it still produced such an error.

logs.zip

@LigH-de
Copy link
Author

LigH-de commented Oct 14, 2021

Testing on a second PC. Here, after a lot of updates, same error for cargo building a rust project, and ccache seems to crash with OS error 3. I guess I have to purge the whole msys64 tree and reinstall it. Will refresh both PCs and tell later.

@stweil
Copy link
Contributor

stweil commented Oct 14, 2021

Disabling the ccache might also help.

@LigH-de
Copy link
Author

LigH-de commented Oct 14, 2021

But that may hurt compiling a few dozen of other projects ffmpeg is made of.

Furthermore, it has never been an issue during the last few years.

@zdenop
Copy link
Contributor

zdenop commented Oct 14, 2021

But none of this is tesseract problem. Problem is in the tools (compiler and build system) you chose.

@zdenop zdenop closed this as completed Oct 14, 2021
@LigH-de
Copy link
Author

LigH-de commented Oct 14, 2021

OK. A completely new MSYS2 in the suite fails as well. I'll see if they have an idea.


PS: Reason seems to be msys2/MINGW-packages#9771

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

No branches or pull requests

3 participants