Package Details: libdecaf 1.0.2-2

Git Clone URL: (read-only, click to copy)
Package Base: libdecaf
Description: A 448-bit Edwards curve
Upstream URL:
Licenses: MIT
Submitter: thrasibule
Maintainer: thrasibule
Last Packager: thrasibule
Votes: 5
Popularity: 0.000000
First Submitted: 2018-02-23 03:39 (UTC)
Last Updated: 2023-11-06 15:06 (UTC)

Dependencies (4)

Sources (1)

Latest Comments

1 2 Next › Last »

reclusivesage commented on 2021-06-28 20:44 (UTC)

After reading the Arch Wiki makepkg article and commenting out the line that contained #CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" in /etc/makepkg.conf, I was able to install libdecaf. Thank you!

It seems like that CXXFLAGS was added to Manjaro by default.

thrasibule commented on 2021-06-28 17:46 (UTC)

Do you have -Wp,-D_GLIBCXX_ASSERTIONS in your CXXFLAGS? I can reproduce with this added to CXXFLAGS. This is not enabled by default in Arch, so please remove it if you added it. That being said it's probably worth reporting this upstream, it might be a real bug.

reclusivesage commented on 2021-06-28 17:22 (UTC)

My GCC version is 11.1.0-1 and glibc is on version 2.33-5.

I didn't get to mention it earlier, but I was expecting fewer issues since I recently switched to Manjaro's Unstable branch, so I should be at Arch Linux's pace. I also tried to check any Pacman updates if there were any glibc, CMake, Git, or Python updates - but none was pending.

IIRC, I would always stumble around either libdecaf/bctoolbox-git (but that was also before I had an AUR account and I never tried putting in more than a few minutes of effort.)

thrasibule commented on 2021-06-28 13:13 (UTC)

What's your gcc version? It builds and tests fine with gcc 11 here.

reclusivesage commented on 2021-06-28 06:18 (UTC)

When installing with $ makepkg -si, I receive the same error in check() as described by loglog. When I check ~/AUR/libdecaf/src/build/Testing/Temporary/LastTest.log, I see the same basic content that inslee reported.

Can anything be done about this error?

I thought I was doing pretty well this time around when trying to install linphone-desktop-git manually (since it is currently the only updated non-AppImage Linphone Desktop package), but this halted my progress 5 out of 9 packages of the way through. This is becoming the bottleneck in my process, and I am trying to install the remaining packages in this order: libdecaf, bctoolbox-git, lime-git, liblinphone-git, and linphone-desktop-git.

AndyM48 commented on 2021-06-21 07:43 (UTC) (edited on 2021-06-21 07:47 (UTC) by AndyM48)

I am getting a build failure:

[ 57%] Building C object src/p25519/CMakeFiles/p25519.dir/__/GENERATED/c/p25519/f_generic.c.o
/home/andrew/.tmp/vpacman/aur_upgrades/libdecaf/src/build/src/GENERATED/c/p25519/f_generic.c:27:28: error: argument 1 of type ‘uint8_t[32]’ {aka ‘unsigned char[32]’} with mismatched bound [-Werror=array-parameter=]
   27 | void gf_serialize (uint8_t serial[SER_BYTES], const gf x) {
      |                    ~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from /home/andrew/.tmp/vpacman/aur_upgrades/libdecaf/src/libdecaf-1.0.1/src/include/field.h:14,
                 from /home/andrew/.tmp/vpacman/aur_upgrades/libdecaf/src/build/src/GENERATED/c/p25519/f_generic.c:14:
/home/andrew/.tmp/vpacman/aur_upgrades/libdecaf/src/build/src/GENERATED/c/p25519/f_field.h:85:29: note: previously declared as ‘uint8_t *’ {aka ‘unsigned char *’}
   85 | void gf_serialize (uint8_t *serial, const gf x);
      |                    ~~~~~~~~~^~~~~~
cc1: all warnings being treated as errors
make[2]: *** [src/p25519/CMakeFiles/p25519.dir/build.make:104: src/p25519/CMakeFiles/p25519.dir/__/GENERATED/c/p25519/f_generic.c.o] Error 1
make[2]: Leaving directory '/home/andrew/.tmp/vpacman/aur_upgrades/libdecaf/src/build'
make[1]: *** [CMakeFiles/Makefile2:337: src/p25519/CMakeFiles/p25519.dir/all] Error 2
make[1]: Leaving directory '/home/andrew/.tmp/vpacman/aur_upgrades/libdecaf/src/build'
make: *** [Makefile:166: all] Error 2
make: Leaving directory '/home/andrew/.tmp/vpacman/aur_upgrades/libdecaf/src/build'
==> ERROR: A failure occurred in build().

inslee commented on 2021-05-20 05:24 (UTC)

The upgrade worked after a larger series of updates came down through Manjaro Stable (there were a lot of updated packages but the list is here:

For those that were having issues on Manjaro before, try updating libdecaf after downloading those updates.

thrasibule commented on 2021-05-14 01:12 (UTC)

I don't get this error, so hard for me to say anything. The assertion is not very helpful unless you can point the line in the code that triggers it. This seems like something you should report upstream.

loglog commented on 2021-05-13 20:28 (UTC) (edited on 2021-05-13 20:45 (UTC) by loglog)

Same error here, caused by a failed assertion:

[ 96%] Built target ristretto_tester
[ 98%] Linking CXX executable bench
make[2]: Leaving directory '/var/tmp/pamac-build-user/libdecaf/src/build'
[ 98%] Built target bench
[100%] Linking CXX executable decaf_tester
make[2]: Leaving directory '/var/tmp/pamac-build-user/libdecaf/src/build'
[100%] Built target decaf_tester
make[1]: Leaving directory '/var/tmp/pamac-build-user/libdecaf/src/build'
make: Leaving directory '/var/tmp/pamac-build-user/libdecaf/src/build'
==> Starting check()...
make: Entering directory '/var/tmp/pamac-build-user/libdecaf/src/build'
Running tests...
Test project /var/tmp/pamac-build-user/libdecaf/src/build
    Start 1: decaf
1/2 Test #1: decaf ............................Subprocess aborted***Exception:   0.72 sec
    Start 2: bench
2/2 Test #2: bench ............................   Passed   13.85 sec

50% tests passed, 1 tests failed out of 2

Total Test time (real) =  14.58 sec

The following tests FAILED:
      1 - decaf (Subprocess aborted)
Errors while running CTest
Output from these tests are in: /var/tmp/pamac-build-user/libdecaf/src/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
make: *** [Makefile:105: test] Error 8
make: Leaving directory '/var/tmp/pamac-build-user/libdecaf/src/build'
==> ERROR: A failure occurred in check().

A manual re-run showed that an assertion fails:

    $ /var/tmp/pamac-build-user/libdecaf/src/build/test/decaf_tester --rerun-failed --output-on-failure
    RNG...                        [PASS]
    XOF...                        [PASS]
    XOF...                        [PASS]

    Testing Ristretto:
    Arithmetic...                 /usr/include/c++/10.2.0/bits/stl_vector.h:
    1063: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::op
    erator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = unsigned char; _Allo
    c = decaf::SanitizingAllocator<unsigned char, 0>; std::vector<_Tp, _Alloc>::cons
    t_reference = const unsigned char&; std::vector<_Tp, _Alloc>::size_type = long u
    nsigned int]: Assertion '__builtin_expect(__n <this->size(), true)' failed.
    Abgebrochen (Speicherabzug geschrieben)