-
Notifications
You must be signed in to change notification settings - Fork 277
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
Repairing MacOs build on develop #3977
Conversation
cbdd00f
to
bba8562
Compare
@safinsaf I hope that this PR (#3977) is fix for: #3960, but to make sure we need to enable checks: Those checks seems to be enabled only when we want to merge something into |
It looks that everything works expect for building on MacOs:
When I check details about Building on MacOS I see that building dependencies is fixed (what was problem here: #3960): Unfortunately Iroha is not building on MacOS (interesting thing is that on Linux it is building). Details of compilation failures: I see three solutions (I don't know if they will help):
|
We have problem, because it is not that easy to fix its, according to possible solutions from another post (#3977 (comment)):
|
UPDATE: I noticed that compilation problems are in iroha-lib (what was done during last year internship project): #3977 (comment) So I decided - let's check if after commenting them everything is going to compile. Unfortunately we faced linkage error: |
Signed-off-by: safinsaf <[email protected]>
Signed-off-by: safinsaf <[email protected]>
Signed-off-by: safinsaf <[email protected]>
Signed-off-by: safinsaf <[email protected]>
Signed-off-by: safinsaf <[email protected]>
Signed-off-by: safinsaf <[email protected]>
Signed-off-by: safinsaf <[email protected]>
Signed-off-by: safinsaf <[email protected]>
Signed-off-by: safinsaf <[email protected]>
Signed-off-by: safinsaf <[email protected]>
Signed-off-by: safinsaf <[email protected]>
…n MacOS by removing -Werror flag Signed-off-by: Grzegorz Bazior (Yodiss PSA) <[email protected]>
Signed-off-by: Grzegorz Bazior (Yodiss PSA) <[email protected]>
Signed-off-by: safinsaf <[email protected]>
850bf96
to
22dd81a
Compare
Summary (it looks that we fixed with @safinsaf), but the solution is not best possible. So the question for somebody who is deciding about future of Iroha 1 - can we leave like that? |
* Turn macos on on CI Signed-off-by: safinsaf <[email protected]> * Debug matrix Signed-off-by: safinsaf <[email protected]> * Check comment body Signed-off-by: safinsaf <[email protected]> * Check new line Signed-off-by: safinsaf <[email protected]> * Check new line Signed-off-by: safinsaf <[email protected]> * Check new line Signed-off-by: safinsaf <[email protected]> * Remove debug data Signed-off-by: safinsaf <[email protected]> * Try gcc for mac Signed-off-by: safinsaf <[email protected]> * Try gcc-10 Signed-off-by: safinsaf <[email protected]> * Debug macos Signed-off-by: safinsaf <[email protected]> * Update gen matrix file Signed-off-by: safinsaf <[email protected]> * Added patch which is fixing vcpkg dependency build of GTest library on MacOS by removing -Werror flag Signed-off-by: Grzegorz Bazior (Yodiss PSA) <[email protected]> * Disabled compilation of iroha-lib for MacOS Signed-off-by: Grzegorz Bazior (Yodiss PSA) <[email protected]> * Move to clang Signed-off-by: safinsaf <[email protected]> --------- Signed-off-by: safinsaf <[email protected]> Signed-off-by: Grzegorz Bazior (Yodiss PSA) <[email protected]> Co-authored-by: safinsaf <[email protected]> Co-authored-by: Grzegorz Bazior (Yodiss PSA) <[email protected]>
* Turn macos on on CI Signed-off-by: safinsaf <[email protected]> * Debug matrix Signed-off-by: safinsaf <[email protected]> * Check comment body Signed-off-by: safinsaf <[email protected]> * Check new line Signed-off-by: safinsaf <[email protected]> * Check new line Signed-off-by: safinsaf <[email protected]> * Check new line Signed-off-by: safinsaf <[email protected]> * Remove debug data Signed-off-by: safinsaf <[email protected]> * Try gcc for mac Signed-off-by: safinsaf <[email protected]> * Try gcc-10 Signed-off-by: safinsaf <[email protected]> * Debug macos Signed-off-by: safinsaf <[email protected]> * Update gen matrix file Signed-off-by: safinsaf <[email protected]> * Added patch which is fixing vcpkg dependency build of GTest library on MacOS by removing -Werror flag Signed-off-by: Grzegorz Bazior (Yodiss PSA) <[email protected]> * Disabled compilation of iroha-lib for MacOS Signed-off-by: Grzegorz Bazior (Yodiss PSA) <[email protected]> * Move to clang Signed-off-by: safinsaf <[email protected]> --------- Signed-off-by: safinsaf <[email protected]> Signed-off-by: Grzegorz Bazior (Yodiss PSA) <[email protected]> Co-authored-by: safinsaf <[email protected]> Co-authored-by: Grzegorz Bazior (Yodiss PSA) <[email protected]>
Description
develop -> master is failing to compile in MacOs: #3960
That is why I need to repair the compilation. It looks that GTest is not compilling for MacOS because compiler is now newer than before (newer compiler usually is more strict). Newer compiler signals some things as warnings, but GTest has
-Werror
compilation flag. So the solution is to create patch for vcpkg port of gtest to remove the flag (how to create patch is here: https://stackoverflow.com/questions/72588408/vcpkg-how-to-edit-package-file-when-compilation-fails-when-installing-package).Details of what was done: #3977 (comment)
Linked issue
Closes #{issue_number}
Benefits
We will be able to upgrade
main
branch with changes fromdevelop
Checklist
CONTRIBUTING.md