Package Details: dashpay-bls-signatures 1.3.5-1

Git Clone URL: https://aur.archlinux.org/dashpay-bls-signatures.git (read-only, click to copy)
Package Base: dashpay-bls-signatures
Description: Chia Networks BLS Signatures implementation fork for Dashcore
Upstream URL: https://github.com/dashpay/bls-signatures/
Licenses: Apache
Conflicts: codablock-bls-signatures
Submitter: pizzaman
Maintainer: pizzaman
Last Packager: pizzaman
Votes: 3
Popularity: 0.000000
First Submitted: 2021-05-29 11:34 (UTC)
Last Updated: 2024-12-18 01:51 (UTC)

Dependencies (5)

Required by (5)

Sources (1)

Latest Comments

Tharbad commented on 2022-03-26 01:33 (UTC)

Thanks

pizzaman commented on 2022-03-24 23:29 (UTC)

@Thardbad Fixed. Thanks.

Newer glibc versions deprecated MINSIGSTKSZ as constant https://github.com/catchorg/Catch2/issues/2178 . Dashpay bls-signatures include an older version of the catch library that was affected.

Fixed by this pull request https://github.com/dashpay/bls-signatures/pull/25. Which makes cmake check for newer https://archlinux.org/packages/community/any/catch2 if installed.

Tharbad commented on 2022-03-22 16:56 (UTC) (edited on 2022-03-22 17:01 (UTC) by Tharbad)

Getting:

In file included from /usr/include/signal.h:328,
             from /tmp/yay/dashpay-bls-signatures/src/bls-signatures- 
1.2.2/src/../contrib/catch/catch.hpp:8034,
             from /tmp/yay/dashpay-bls-signatures/src/bls-signatures- 
1.2.2/src/test.cpp:20:
/tmp/yay/dashpay-bls-signatures/src/bls-signatures- 
1.2.2/src/../contrib/catch/catch.hpp:10822:58: error: call to non-‘constexpr’ 
function ‘long int sysconf(int)’

10822 |     static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 
 32768 : MINSIGSTKSZ;
  |                                                          ^~~~~~~~~~~
In file included from /usr/include/bits/sigstksz.h:24,
             from /usr/include/signal.h:328,
             from /tmp/yay/dashpay-bls-signatures/src/bls-signatures- 
1.2.2/src/../contrib/catch/catch.hpp:8034,
             from /tmp/yay/dashpay-bls-signatures/src/bls-signatures- 
1.2.2/src/test.cpp:20:
/usr/include/unistd.h:640:17: note: ‘long int sysconf(int)’ declared here
640 | extern long int sysconf (int __name) __THROW;
  |                 ^~~~~~~
In file included from /tmp/yay/dashpay-bls-signatures/src/bls-signatures- 
1.2.2/src/test.cpp:20:
/tmp/yay/dashpay-bls-signatures/src/bls-signatures- 
1.2.2/src/../contrib/catch/catch.hpp:10881:45: error: size of array ‘altStackMem’ 
is not an integral constant-expression
10881 |     char FatalConditionHandler::altStackMem[sigStackSize] = {};
  |                                             ^~~~~~~~~~~~
[100%] Linking CXX executable runbench
[100%] Built target runbench
make[2]: *** [src/CMakeFiles/runtest.dir/build.make:76: 
src/CMakeFiles/runtest.dir/test.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:296: src/CMakeFiles/runtest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Linking CXX shared module blspy.cpython-310-x86_64-linux-gnu.so
[100%] Built target blspy
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
      Aborting...
-> error making: dashpay-bls-signatures

Ideas?

lano1106 commented on 2021-08-26 19:02 (UTC)

The proposed fix looks to work.

I got a lot of linking errors but it turns out to be because bls-signatures and/or dashcore don't play nice with link-time optimization enabled (-flto).

I still have one issue. I'll share what it is in the dashcore project.

pizzaman commented on 2021-08-18 03:21 (UTC)

@lano1106 Thanks for the info, I subscribed to the issue.

lano1106 commented on 2021-08-17 18:33 (UTC)

FYI, I have raised the issue about the need for libgmp-static and libsodium-static upstream: https://github.com/dashpay/bls-signatures/issues/23

the work around to succeed in building without the static libs is to edit: src/CMakeFiles/combined_custom.dir/build.make

and remove the lines that does ar -x libxxx.so

Hopefully, this can be fixed upstream and simplify the process of building dashcore.