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

An enormous amount of compiler warnings in Debug build #2816

Closed
db4 opened this issue Dec 12, 2019 · 3 comments
Closed

An enormous amount of compiler warnings in Debug build #2816

db4 opened this issue Dec 12, 2019 · 3 comments

Comments

@db4
Copy link
Contributor

db4 commented Dec 12, 2019

Environment

  • Tesseract Version: 4.1.1-rc2
  • Commit Number: 0c59955
  • Platform: Windows x86_64

I'm trying to build tesseract 4.1.1-rc2 from sources using MSVC 2017. Release build succeeds in an acceptable time, but Debug one takes ages and generates ~170 Mbytes of compiler warnings. It's due to /Wall in

set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /Wall /bigobj")

To fix this either tesseract sources should be cleaned up to get rid of compiler warnings or /Wall should be removed from CMakeLists.txt (of course, the latter solution is slightly simpler than the former one :-) )

@db4 db4 changed the title An enormous amount of compiler warning in Debug build An enormous amount of compiler warnings in Debug build Dec 12, 2019
@stweil
Copy link
Contributor

stweil commented Dec 12, 2019

See issue #1036.

@stweil stweil closed this as completed Dec 12, 2019
@db4
Copy link
Contributor Author

db4 commented Dec 12, 2019

I'm not sure it's a duplicate of #1036. The current behavior was introduced 01-Nov-2019 14:30:15 in 5e3772c and is specific to MSVC (while old #1036 mostly addresses gcc/clang). And it should be fixed before 4.1.1 release (in my case it's a real show-stopper: travis CI build job cannot complete in 1 hour)

@stweil
Copy link
Contributor

stweil commented Dec 12, 2019

Let's discuss it nevertheless at #1036.

stweil added a commit that referenced this issue Dec 18, 2019
Signed-off-by: Stefan Weil <sw@weilnetz.de>
stweil added a commit that referenced this issue Dec 18, 2019
Signed-off-by: Stefan Weil <sw@weilnetz.de>
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

3 participants