-
Notifications
You must be signed in to change notification settings - Fork 181
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
Static boost libraries cannot be found after compilation in ppc64le architecture #351
Comments
Interesting, I never tried compiling on ppc but the whole point is for Hunter to not care about the architecture it is compiling for. Thanks for the bug report! We'll have to investigate. @Bjoe any ideas, since you were recently in the Boost Hunter files? |
It's using the Can you please try with enabled: Btw. If you are using |
Hi @Bjoe thanks for the tip. I tried what you've said but It was a no go. Please correct me if I've done something wrong: Added the following do CMakeLists.txt:
And invoked Same error was generated. |
@viniciusferrao No, sorry this is wrong how you add this configuration. You must set this
See documentation about |
Hi @Bjoe thanks again, but I'm too amateurish with CMake and Hunter. The example on the pointed reference is a broken link, the Wiki page appears to be removed: https://github.com/ruslo/hunter/wiki/example.custom.config.id; I tried to find this page but I was unsuccessful. I've trying adding the setting on After I've tried to add the settings to:
But it seems to have no effect at all. The issue persisted. Is there anything else missing? |
Alright guys. It worked. After reading the page shared by @rbsheth I've done the following:
Accordingly to the documentation the So this is solved now. The remaining questions now are:
Thanks! |
@rbsheth As you see again.... we should use as default the boost config from boost .... |
@Bjoe should we add that to the boost hunter.cmake? |
@rbsheth I tried and it works, but read my #316 (comment) ... My next idea/try is, set the cmake policy in the BoostConfig.cmake in boost .... so need to patch boost sources again and if this works, then I will bug report this to the boost project. Hopefully I found some time for this .... I'm very busy and unfortunately there are still pull request open #122 #168 #173 from me where I like to work on and finishing this ... |
Hi guys, just as a curiosity. What will be the approach here? As today I have to keep a separate branch for a software that I use that relies on Hunter because the PR wasn't accepted. I know that's my problem :) Thanks all. |
Which PR are you talking about? #154 was merged a while ago. |
The PR I was referencing was on the software that I use that consumes Hunter. Sorry for the mess. That's why I'm asking which approach will be done in this issue. If the option Thanks. |
@viniciusferrao I would like to have as default My idea, set the policy for |
@viniciusferrao Hi, I am using the latest hunter library v0.23.300 and getting this issue. -----------------------------Start of Error---------------------------------------- -- Generating done [hunter ** FATAL ERROR **] Build step failed (dir: /home/s2600bottom/.hunter/_Base/1151d53/53fea1f/4646e4e/Build/libjson-rpc-cpp ------------------------------ ERROR -----------------------------
|
The solution was posted seven messages behind: #351 (comment) Unfortunately the PR wasn't merged. |
Thanks for the repply. You mentioned this in the #351 (comment) reply Keep the modifications on ./cmake/Hunter/config.cmake: Where is the ./cmake/Hunter/config.cmake? Do I have to enter these changes? |
is this issue still valid with the latest Hunter? If so, what would be needed to resolve the open issue? |
Nero I must check this. But I'm on vacation right now. I can check this on the next week. Thanks. |
I no longer have the same exactly source code, but I was able to still reproduce the issue (I think).
It seems to be the same issue, Hunter is able to build Boost successfully but it fails to link it. Is anything else that I can do or provide? Thanks. |
Mysterious. The error is at Could you try to build the Boost example directly from hunter? Just to be sure we have the same CMake config to work with git clone --recursive https://github.com/cpp-pm/hunter.git
cd hunter/examples/Boost-chrono-useBoostConfig/
cmake -H. -Bbuild -DHUNTER_ENABLED=ON -DHUNTER_STATUS_DEBUG=ON |& tee build.log Afterwards please upload the |
Hi @NeroBurner, I'm attaching both logs. Thanks. build-Boost-chrono-useBoostConfig.log |
The I think it should be this path, according to your logs ls /root/hunter/_Base/xxxxxxx/19404f8/314d74e/Install/lib |
There you go:
|
so the library is definitely there. Next step in debugging :) please add the There should be no Please report back if it works, and add the logs from the |
Hmmm it's working now.
And finally the attached build.log: Thanks. |
wohoo it works! You're welcome |
Hi @NeroBurner thanks! Just let me ask something. Isn’t the case to also update the Hunter examples? Specifically |
In this case no, I don't think so. We already have I'd personally like to set the default of @rbsheth do you have an opinion about this? As I think the |
hunter_add_package
/find_package
API used by me in the example is the same as in documentation. YesURL
/SHA1
. YesHere is the log until first error reported by Hunter, option
HUNTER_STATUS_DEBUG
isON
:I've checked that the first error in logs IS NOT
external.build.failed
. YesI'm using the next command line on generate step:
I've found this while trying to compile
nsfminer
and first reported the issue there: https://github.com/no-fee-ethereum-mining/nsfminer/issues/30But after some testing I think this may be a Hunter issue.
If there's something additional to be made please let me know. I've done the best to report this correctly. In the paste there's also the output of
CMakeOutput.log
.Thanks!
The text was updated successfully, but these errors were encountered: