-
Notifications
You must be signed in to change notification settings - Fork 87
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
cmake fails at build step of GTest #42
Comments
Please take a look at the configurations in .travis.yml. I just re-ran the build and it passes: https://travis-ci.org/google/myanmar-tools/jobs/619949038 I also ran this locally on my machine to make sure, and the build passes there as well. Closing this ticket as I do not believe it is actionable. If you find something that a change is needed to make the code build on your platform, please open a PR. |
I believe this issue is related to GCC 9, which added the
Here is the issue on googletest. It seems many other libraries are also affected by this deprecation, e.g. this and this. I think the fix has to be made on googletest, but is there a workaround for this? I am thinking of adding |
That workaround seems reasonable. You can try passing the flag to cmake like this? $ CXXFLAGS="-Wno-error=deprecated-copy" cmake CMakeLists.txt or maybe $ cmake -DCMAKE_CXX_FLAGS="-Wno-error=deprecated-copy" CMakeLists.txt I pinged the googletest team to resolve the issue upstream. |
Thanks for the help. I tried the former, and cmake succeeded (with warnings).
|
@shane F. Carr I can work with your workaround. But doesn't googletest team solved the problem? |
In
clients/cpp
, I ransudo cmake .
, and it failed to produce a Makefile. It seems to have failed at the build step of GTest. Myuname -a
isLinux dell 5.4.6-2-MANJARO #1 SMP PREEMPT Tue Dec 24 15:55:20 UTC 2019 x86_64 GNU/Linux
. The output is shown below:The text was updated successfully, but these errors were encountered: