Package Details: libdecaf 1.0.2-2

Git Clone URL: https://aur.archlinux.org/libdecaf.git (read-only, click to copy)
Package Base: libdecaf
Description: A 448-bit Edwards curve
Upstream URL: https://sourceforge.net/projects/ed448goldilocks/
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 »

Kalinda commented on 2024-08-05 15:17 (UTC)

Thanks very much! The diff works for me, I was able to compile the package :)

fixeria commented on 2024-08-04 21:24 (UTC)

The package fails to build due to -Warray-bounds being treated as error. This patch did the trick for me:

diff --git a/PKGBUILD b/PKGBUILD
index e581f3d..75ad98e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -18,7 +18,7 @@ build() {
     -DENABLE_STATIC=OFF \
     -DENABLE_TESTS=ON \
     -DCMAKE_BUILD_TYPE='None' \
-    -DCMAKE_C_FLAGS="-Wno-sizeof-array-div -Wno-array-parameter" \
+    -DENABLE_STRICT=OFF \
     -Wno-dev
     make -C build
 }

Kalinda commented on 2024-07-01 15:23 (UTC) (edited on 2024-08-05 10:22 (UTC) by Kalinda)

Getting this error when I try to make this:

/build/libdecaf/src/build/src/GENERATED/include/decaf/point_448.hxx:423:19: error: ‘void* memcpy(void*, const void*, size_t)’ forming offset 56 is out of the bounds [0, 56] [-Werror=array-bounds=] 423 | memcpy(b.data(), s.data(), s.size()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors make[2]: *** [test/CMakeFiles/bench.dir/build.make:76: test/CMakeFiles/bench.dir/bench_decaf.cxx.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:814: test/CMakeFiles/bench.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 98%] Linking CXX executable decaf_tester [ 98%] Built target decaf_tester make: *** [Makefile:166: all] Error 2 make: Leaving directory '/build/libdecaf/src/build'

Dr Google tells me it has something to do with GCC? I have plenty of RAM free, so I'm not running out.

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().
    Aborting...