Package Details: python-lief 0.15.1-1

Git Clone URL: https://aur.archlinux.org/lief.git (read-only, click to copy)
Package Base: lief
Description: Library to instrument executable formats
Upstream URL: https://github.com/lief-project/lief
Keywords: elf mach-o pe
Licenses: Apache-2.0
Provides: libLIEF.so
Submitter: dobo
Maintainer: Xeonacid (greyltc)
Last Packager: Xeonacid
Votes: 5
Popularity: 0.011537
First Submitted: 2018-11-14 22:00 (UTC)
Last Updated: 2024-08-04 12:41 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

LukeLabrie commented on 2023-05-10 12:16 (UTC) (edited on 2023-05-10 12:17 (UTC) by LukeLabrie)

Build fails with:

In file included from /home/luke/.cache/yay/python-lief/src/lief-0.12.2/src/exception.cpp:19:
/home/luke/.cache/yay/python-lief/src/lief-0.12.2/include/LIEF/exception.hpp:75:38: error: expected ‘)’ before ‘offset’
   75 |   explicit read_out_of_bound(uint64_t offset, uint64_t size);
      |                             ~        ^~~~~~~
      |                                      )
/home/luke/.cache/yay/python-lief/src/lief-0.12.2/include/LIEF/exception.hpp:76:38: error: expected ‘)’ before ‘offset’
   76 |   explicit read_out_of_bound(uint64_t offset);
      |                             ~        ^~~~~~~
      |                                      )
/home/luke/.cache/yay/python-lief/src/lief-0.12.2/src/exception.cpp:50:1: error: no declaration matches ‘LIEF::read_out_of_bound::read_out_of_bound(uint64_t, uint64_t)’
   50 | read_out_of_bound::read_out_of_bound(uint64_t offset, uint64_t size) : LIEF::exception("") {
      | ^~~~~~~~~~~~~~~~~
/home/luke/.cache/yay/python-lief/src/lief-0.12.2/include/LIEF/exception.hpp:71:16: note: candidates are: ‘LIEF::read_out_of_bound::read_out_of_bound(LIEF::read_out_of_bound&&)’
   71 | class LIEF_API read_out_of_bound : public exception {
      |                ^~~~~~~~~~~~~~~~~
/home/luke/.cache/yay/python-lief/src/lief-0.12.2/include/LIEF/exception.hpp:71:16: note:                 ‘LIEF::read_out_of_bound::read_out_of_bound(const LIEF::read_out_of_bound&)’
/home/luke/.cache/yay/python-lief/src/lief-0.12.2/include/LIEF/exception.hpp:71:16: note:                 ‘LIEF::read_out_of_bound::read_out_of_bound()’
/home/luke/.cache/yay/python-lief/src/lief-0.12.2/include/LIEF/exception.hpp:73:20: note:                 ‘LIEF::read_out_of_bound::read_out_of_bound(const LIEF::exception&) [inherited from LIEF::exception]’
   73 |   using exception::exception;
      |                    ^~~~~~~~~
/home/luke/.cache/yay/python-lief/src/lief-0.12.2/include/LIEF/exception.hpp:73:20: note:                 ‘LIEF::read_out_of_bound::read_out_of_bound(std::string) [inherited from LIEF::exception]’
/home/luke/.cache/yay/python-lief/src/lief-0.12.2/include/LIEF/exception.hpp:73:20: note:                 ‘LIEF::read_out_of_bound::read_out_of_bound(const char*) [inherited from LIEF::exception]’
/home/luke/.cache/yay/python-lief/src/lief-0.12.2/include/LIEF/exception.hpp:71:16: note: ‘class LIEF::read_out_of_bound’ defined here
   71 | class LIEF_API read_out_of_bound : public exception {
      |                ^~~~~~~~~~~~~~~~~
/home/luke/.cache/yay/python-lief/src/lief-0.12.2/src/exception.cpp:58:1: error: no declaration matches ‘LIEF::read_out_of_bound::read_out_of_bound(uint64_t)’
   58 | read_out_of_bound::read_out_of_bound(uint64_t offset) : LIEF::exception("") {
      | ^~~~~~~~~~~~~~~~~
/home/luke/.cache/yay/python-lief/src/lief-0.12.2/include/LIEF/exception.hpp:71:16: note: candidates are: ‘LIEF::read_out_of_bound::read_out_of_bound(LIEF::read_out_of_bound&&)’
   71 | class LIEF_API read_out_of_bound : public exception {
      |                ^~~~~~~~~~~~~~~~~
/home/luke/.cache/yay/python-lief/src/lief-0.12.2/include/LIEF/exception.hpp:71:16: note:                 ‘LIEF::read_out_of_bound::read_out_of_bound(const LIEF::read_out_of_bound&)’
/home/luke/.cache/yay/python-lief/src/lief-0.12.2/include/LIEF/exception.hpp:71:16: note:                 ‘LIEF::read_out_of_bound::read_out_of_bound()’
/home/luke/.cache/yay/python-lief/src/lief-0.12.2/include/LIEF/exception.hpp:73:20: note:                 ‘LIEF::read_out_of_bound::read_out_of_bound(const LIEF::exception&) [inherited from LIEF::exception]’
   73 |   using exception::exception;
      |                    ^~~~~~~~~
/home/luke/.cache/yay/python-lief/src/lief-0.12.2/include/LIEF/exception.hpp:73:20: note:                 ‘LIEF::read_out_of_bound::read_out_of_bound(std::string) [inherited from LIEF::exception]’
/home/luke/.cache/yay/python-lief/src/lief-0.12.2/include/LIEF/exception.hpp:73:20: note:                 ‘LIEF::read_out_of_bound::read_out_of_bound(const char*) [inherited from LIEF::exception]’
/home/luke/.cache/yay/python-lief/src/lief-0.12.2/include/LIEF/exception.hpp:71:16: note: ‘class LIEF::read_out_of_bound’ defined here
   71 | class LIEF_API read_out_of_bound : public exception {
      |                ^~~~~~~~~~~~~~~~~
make[3]: *** [CMakeFiles/LIB_LIEF.dir/build.make:138: CMakeFiles/LIB_LIEF.dir/src/exception.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:411: CMakeFiles/LIB_LIEF.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:472: api/python/CMakeFiles/pyLIEF.dir/rule] Error 2
make: *** [Makefile:306: pyLIEF] Error 2

lsigma commented on 2022-11-07 23:14 (UTC)

Modifying the PKGBUILD to not use the external SPDLIB fixes the build errors for me:

diff --git a/PKGBUILD b/PKGBUILD
index 711bcb3..3b9e8c3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -24,7 +24,7 @@ build() {
                -DLIEF_PYTHON_API=OFF \
                -DLIEF_OPT_EXTERNAL_LEAF=ON \
                -DLIEF_OPT_NLOHMANN_JSON_EXTERNAL=ON \
-               -DLIEF_EXTERNAL_SPDLOG=ON \
+               -DLIEF_EXTERNAL_SPDLOG=OFF \
                -DLIEF_OPT_UTFCPP_EXTERNAL=ON \
                -Wno-dev
   make -C build

But I wasn't able to verify that the package still works as the package I was trying to get running was also broken.

petronny commented on 2022-11-01 07:15 (UTC)

I confirm that the error found by Salamandar also shows in a clean chroot.

Full build log: https://github.com/arch4edu/cactus/actions/runs/3367117244/jobs/5584302476

Salamandar commented on 2022-10-14 15:13 (UTC)

FYI, this package fails to build:

.cache/yay/lief/src/LIEF-0.12.1/src/ELF/Binary.cpp:227:5:   requis depuis ici
/usr/include/fmt/core.h:1757:7: erreur: l'assertion statique a échoué: Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt

But lief-git builds properly.

greyltc commented on 2022-05-09 00:20 (UTC)

The below patch doesn't apply anymore. Here's one that does:

diff --git a/cmake/LIEFCompilerFlags.cmake b/cmake/LIEFCompilerFlags.cmake
index 28128496..47004ca5 100644
--- a/cmake/LIEFCompilerFlags.cmake
+++ b/cmake/LIEFCompilerFlags.cmake
@@ -64,8 +64,8 @@ if (NOT MSVC)
   ADD_FLAG_IF_SUPPORTED("-Werror=return-type" ERR_RET_TYPE)


-  ADD_FLAG_IF_SUPPORTED("-fdiagnostics-color=always" DIAGNOSTICS_COLOR)
-  ADD_FLAG_IF_SUPPORTED("-fcolor-diagnostics"        COLOR_DIAGNOSTICS)
+  #ADD_FLAG_IF_SUPPORTED("-fdiagnostics-color=always" DIAGNOSTICS_COLOR)
+  #ADD_FLAG_IF_SUPPORTED("-fcolor-diagnostics"        COLOR_DIAGNOSTICS)
 endif()

 #ADD_FLAG_IF_SUPPORTED("-Wduplicated-cond"         HAS_DUPLICATED_COND)

dack commented on 2022-03-16 00:51 (UTC)

I'm seeing build failures. It seems that it's passing "-fcolor-diagnostics" to GCC, but only CLANG supports that option. The simple fix was to remove those flags (I assume it only affects build logs). Here's a patch:

diff --git a/cmake/LIEFCompilerFlags.cmake b/cmake/LIEFCompilerFlags.cmake
index 88fbf5f0..a4d35ac7 100644
--- a/cmake/LIEFCompilerFlags.cmake
+++ b/cmake/LIEFCompilerFlags.cmake
@@ -64,9 +64,6 @@ if (NOT MSVC)
   ADD_FLAG_IF_SUPPORTED("-fvisibility=hidden"       VISIBILITY)
   ADD_FLAG_IF_SUPPORTED("-Wno-expansion-to-defined" NO_EXPANSION_TO_DEFINED)

-  ADD_FLAG_IF_SUPPORTED("-fdiagnostics-color=always" DIAGNOSTICS_COLOR)
-  ADD_FLAG_IF_SUPPORTED("-fcolor-diagnostics"        COLOR_DIAGNOSTICS)
-

 endif()
 #ADD_FLAG_IF_SUPPORTED("-Wduplicated-cond"         HAS_DUPLICATED_COND)

amstan commented on 2022-02-08 05:59 (UTC)

Something is strange with this package, it's only building on one core instead all 8 like my makepkg.cfg says. I've been here for an hour now.

mr_thack commented on 2021-12-22 17:52 (UTC)

2 Questions:
1. What does the *-git mean in AUR packages? I'm new here so that's why I'm asking.
2. Could you please update line 4 to 0.11.5? That's the newest release of LIEF.
Thanks in advance!

dobo commented on 2020-11-18 22:02 (UTC)

Sorry for the late update. Thanks for the suggestions @yuyichao. Shared library should be built properly now.

I've looked at the headers code and json.hpp library is included in "LIEF/json.hpp", so I've left it unchanged. You're right that it should be reported upstream.