Package Details: libdecaf 1.0.2-3

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: 2025-05-08 19:57 (UTC)

Dependencies (4)

Sources (1)

Latest Comments

1 2 Next › Last »

simona commented on 2025-05-09 08:10 (UTC)


In file included from /home/simona/.cache/yay/libdecaf/src/build/src/GENERATED/include/decaf.hxx:18,
from /home/simona/.cache/yay/libdecaf/src/libdecaf-1.0.2/test/bench_decaf.cxx:12:
In member function ‘void decaf::Ristretto::Point::set_to_hash(const decaf::Block&)’,
inlined from ‘static decaf::Ristretto::Point decaf::Ristretto::Point::from_hash(const decaf::Block&)’ at /home/simona/.cache/yay/libdecaf/src/build/src/GENERATED/include/decaf/point_255.hxx:405:43,
inlined from ‘static void Benches<Group>::micro() [with Group = decaf::Ristretto]’ at /home/simona/.cache/yay/libdecaf/src/libdecaf-1.0.2/test/bench_decaf.cxx:212:78:
/home/simona/.cache/yay/libdecaf/src/build/src/GENERATED/include/decaf/point_255.hxx:423:19: error: ‘void* memcpy(void*, const void*, size_t)’ forming offset 32 is out of the bounds [0, 32] [-Werror=array-bounds=]
423 |             memcpy(b.data(), s.data(), s.size());
|             ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/simona/.cache/yay/libdecaf/src/build/src/GENERATED/include/decaf.hxx:19:
In member function ‘void decaf::Ed448Goldilocks::Point::set_to_hash(const decaf::Block&)’,
inlined from ‘static decaf::Ed448Goldilocks::Point decaf::Ed448Goldilocks::Point::from_hash(const decaf::Block&)’ at /home/simona/.cache/yay/libdecaf/src/build/src/GENERATED/include/decaf/point_448.hxx:405:43,
inlined from ‘static void Benches<Group>::micro() [with Group = decaf::Ed448Goldilocks]’ at /home/simona/.cache/yay/libdecaf/src/libdecaf-1.0.2/test/bench_decaf.cxx:212:78:
/home/simona/.cache/yay/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:79: test/CMakeFiles/bench.dir/bench_decaf.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1030: test/CMakeFiles/bench.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
make: uscita dalla directory «/home/simona/.cache/yay/libdecaf/src/build»

kistlin commented on 2025-05-08 03:45 (UTC)

Fails with

CMake Error at CMakeLists.txt:8 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().

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.