Closed anthonycastellano closed 1 year ago
This is a boost break on select systems including Ubuntu 22. Modification of the referenced line is required due to platforms not defining PTHREAD_STACK_MIN
when the value would have been zero previously. My understanding had previously been that boost 1.76 did not resolve this issue. Additional information would be required to provide any meaningful advice regarding secp256k1
.
Verified by examining tagged releases that the pthread issue is fixed in 1.73 and beyond. Will attempt verification and reproduction of any subsequent issues. If nothing else arises it becomes an open question as to whether the dependency version should be bumped due to a platform/compiler issue.
Results from Github Actions indicate success between all installation scripts in the tested configurations while varying between Ubuntu 20.04 and 22.04 and boost
between 1.73
to 1.76
.
clang++
11.0.0, g++
9.4.0clang++
14.0.0, g++
11.4.0Additionally, Ubuntu 20.04 succeeds utilizing boost
1.72 and is the currently targeted environment for testing of version3
.
@anthonycastellano Your workaround was along the lines of the way I would approach the initial problem. The above suggests that the environment as described should succeed with the modifications described. Please provide additional details regarding secp256k1
failures.
@evoskuil The initial failure has been previously encountered, but was not related to the current test environment. We should discuss the extent to which version3
should be updated.
Let’s add to agenda for next weekly meeting.
I've just resolved the secp256k1
compile time error - it turns out that WSL2 capped VM memory utilization at 16GB (50% of the 32GB on my system) with 4GB of swap, producing the following error: g++: fatal error: Killed signal terminated program cc1plus
. Per the solution here, I created a .wslconfig
at C:\Users\user
containing:
[wsl2]
memory=24GB
All sources are now successfully compiled - thanks @pmienk @evoskuil.
Thanks for taking the time to resolve and give us the feedback!
Resolved by increasing the minimum required version of boost
to 1.73.0 and providing this version via the --build-boost
argument in #1372
When attempting to compile the
version3
branch of the repo with theinstall.sh
script as so:The installation fails on the download + build Boost step with the following error:
I tried manually modifying the version of Boost downloaded/installed to
1.76.0
ininstall.sh
which did result in a successful build of Boost; however, the subsequentsecp256k1
build then failed.OS: Ubuntu 22.04.2 LTS (WSL2) g++ version: 11.4.0
Any suggestions?