-
Notifications
You must be signed in to change notification settings - Fork 2.7k
GCC6 Support #411
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
Comments
This weekend. Any chance you can update to 1.6.x? The link refers to 0.10.5. |
Tha transition is currently in progress. It might take a few days until its completed. https://release.debian.org/transitions/html/auto-libjsoncpp.html So you think those problems should be fixed in 1.6.x? |
I tried rebuilding the latest release with GCC-6, resulting in the following build errors: |
Also while we are at it, could you take a look at current debian patches and check if any of those could be imported upstream? http://anonscm.debian.org/cgit/collab-maint/libjsoncpp.git/tree/debian/patches |
No, but the fix depends on compiler version. (
Sure! This weekend. |
Of course, I am working on dropping 0.x.y support in the next Debian release. Thanks for taking the effort. Greetings |
Debian patches - 0.y.z branch See #411. http://anonscm.debian.org/cgit/collab-maint/libjsoncpp.git/tree/debian/patches
Patched 0.y.z and fixed 1.y.z. Let's try again. And if it works, I'll cut a new 1.7.0 release. I've already updated the version number on the |
Hi Cristopher!
|
Do you have a GCC6 installation available somewhere? GCC6 is available in Debian experimental. |
See open-source-parsers#411 (comment) I was unable to produce a warning in Clang, so I am not certain. But based on a [SO answer](http://stackoverflow.com/questions/25480059/gcc-conversion-warning-when-assigning-to-a-bitfield), I think I've fixed the following: ``` /tmp/jsoncpp/src/lib_json/json_value.cpp: In copy constructor 'Json::Value::CZString::CZString(const Json::Value::CZString&)': /tmp/jsoncpp/src/lib_json/json_value.cpp:235:18: error: conversion to 'unsigned char:2' from 'unsigned int' may alter its value [-Werror=conversion] storage_.policy_ = (other.cstr_ ~~~~~~~~~~~~ ? (static_cast<DuplicationPolicy>(other.storage_.policy_) == noDuplication ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ? noDuplication : duplicate) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ : static_cast<DuplicationPolicy>(other.storage_.policy_)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
I don't have easy access to gcc-6. However, I was able to produce all but 1 of those errors via |
Did those fixes work? |
Hi Christopher! Only partly, this one is still a problem:
|
Try again? Or can you suggest a fix? We definitely need to assign an |
This patch is also needed to build success for GCC 6.0. Refer issue - open-source-parsers#411
@cinemast, try again. @ya1gaurav has tested the tip of master. |
Great! I can confirm it works. |
@cinemast Do you face GGC 6 issues in some other open source also ? |
What exactly do you mean by that? In Debian there are currently lots of compile errors due to GCC6. https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-gcc-6;[email protected] |
I mean I have setup for GCC 6.0, so I can try solving build issues related to GCC 6.0 in other open source softwares also. |
And now it seems - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811958 got fixed. |
Exactly :) I will just wait for the next release instead of patching manually. |
@cdunn2001 Could you help @cinemast with new release featuring GCC 6.0 support. |
Released and signed |
Hi!
At Debian we are currently preparing the migration to GCC6. The following issues are currently affecting libjsoncpp.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811958
Could you take a look at it?
The text was updated successfully, but these errors were encountered: