-
Notifications
You must be signed in to change notification settings - Fork 279
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
Repaired building iroha according to instruction: Added patch file to make sure abseil library is building without changes #2902
Repaired building iroha according to instruction: Added patch file to make sure abseil library is building without changes #2902
Conversation
… repair building of abseil library: std::max ambiguous call Signed-off-by: Grzegorz Bazior <bazior@agh.edu.pl>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The patch structure in VCPkg looks new to me, but your explanation is detailed and the code looks good. Approving.
It was also new for me. Especially because it was required to create patch which contains another patch:D. So what should I do now? It is approved, so could I press: "Squash and merge"? |
I see that one of checks: But what is really good information is that |
… repair building of abseil library: std::max ambiguous call (hyperledger-iroha#2902) Signed-off-by: Grzegorz Bazior <bazior@agh.edu.pl> Signed-off-by: Grzegorz Bazior <bazior@agh.edu.pl>
Description of the Change
When building according to the instruction: https://iroha.readthedocs.io/en/develop/build/index.html#installing-dependencies-with-vcpkg-dependency-manager, which is with command:
Suddently building is stopping with message:
In the log file is problem:
So to fix its both arguments have to have the same type, or to specify type of
std::max
. Because result is assigned to variablesize_t stack_size
, so I assume that the type should besize_t
.So I've corrected this according to instruction: https://stackoverflow.com/questions/72588408/vcpkg-how-to-edit-package-file-when-compilation-fails-when-installing-package
I'm using Ubuntu 22.04, with version of g++:
g++ (Ubuntu 11.2.0-19ubuntu1) 11.2.0
. As I know @andprogrammer had the same problem.Issue
Benefits
Automatic build of HL Iroha
Possible Drawbacks
Chosen way of fix can be not best possible.
Usage Examples or Tests [optional]
After the fix the command:
is passing to build
abseil
without any hacks described here.Alternate Designs [optional]
Another possibility to fix the issue would be to upgrade version of abseil, but it is always dangerous that something somewhere would stop compiling or worse - start working different way.
PS: There is another problem with auto-build: benchmark library is failing to compile. But I'd prefer another PR.