Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[python-dm-tree] error: ‘string_view’ in namespace ‘std’ does not name a type #253

Closed
sirus20x6 opened this issue Aug 9, 2023 · 2 comments

Comments

@sirus20x6
Copy link

sirus@neuromancer ComfyUI]$ trizen -Sa --noconfirm python-dm-tree
:: Pulling AUR changes: python-dm-tree

--------------------------------------------------------------------------------
:: Content of /home/sirus/.cache/trizen/sources/python-dm-tree/PKGBUILD
--------------------------------------------------------------------------------

# Maintainer: acxz <akashpatel2008 at yahoo dot com>

pkgname=python-dm-tree
pkgver=0.1.8
pkgrel=1
pkgdesc='tree is a library for working with nested data structures'
arch=('x86_64')
url='https://tree.readthedocs.io'
license=('Apache-2.0')
depends=(python python-six abseil-cpp)
makedepends=(python python-build python-installer python-wheel python-setuptools
             cmake git)
source=("$pkgname-$pkgver.tar.gz::https://pypi.org/packages/source/d/dm-tree/dm-tree-${pkgver}.tar.gz"
        CMakeLists.txt.patch)
sha256sums=('0fcaabbb14e7980377439e7140bd05552739ca5e515ecb3119f234acee4b9430'
            '84c9cbd52b3852af2e97dc6261c0114c78d40bc3deeb6b7638dd3864df1a9f72')

_pkgname=dm-tree

prepare() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  for p in "${source[@]}"; do
    if [[ ${p} == *.patch ]]; then
      patch -Np1 -i "${srcdir}/${p}"
    fi
  done
}

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python -m build --wheel --no-isolation
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python -m installer --destdir="$pkgdir" dist/*.whl
}

=>> Edit python-dm-tree/PKGBUILD? [y/N]:  n
--------------------------------------------------------------------------------
:: Content of /home/sirus/.cache/trizen/sources/python-dm-tree/CMakeLists.txt.patch
--------------------------------------------------------------------------------

diff -ur dm-tree-0.1.8.orig/tree/CMakeLists.txt dm-tree-0.1.8/tree/CMakeLists.txt
--- dm-tree-0.1.8.orig/tree/CMakeLists.txt	2022-12-18 12:35:42.000000000 +0300
+++ dm-tree-0.1.8/tree/CMakeLists.txt	2023-06-15 16:56:39.291503035 +0300
@@ -11,8 +11,8 @@
     "Python found ${Python3_VERSION} < 3.6.0")
 endif()
 
-# Use C++14 standard.
-set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++ version selection")
+# Use C++17 standard.
+set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ version selection")
 
 # Position-independent code is needed for Python extension modules.
 set(CMAKE_POSITION_INDEPENDENT_CODE ON)
@@ -27,17 +27,12 @@
 message("PROJECT_BINARY_DIR is: ${PROJECT_BINARY_DIR}")
 
 if (NOT (WIN32 OR MSVC))
-  if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
-    # Basic build for debugging (default).
-    # -Og enables optimizations that do not interfere with debugging.
-    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Og")
-  endif()
-
-  if(${CMAKE_BUILD_TYPE} STREQUAL "Release")
-    # Optimized release build: turn off debug runtime checks
-    # and turn on highest speed optimizations.
-    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNDEBUG -O3")
-  endif()
+  # Basic build for debugging (default).
+  # -Og enables optimizations that do not interfere with debugging.
+  set(CMAKE_CXX_FLAGS_DEBUG "-g -Og")
+  # Optimized release build: turn off debug runtime checks
+  # and turn on highest speed optimizations.
+  set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
 endif()
 
 if(APPLE)
@@ -67,54 +62,19 @@
 # Needed to disable Abseil tests.
 set (BUILD_TESTING OFF)
 
-# Include abseil-cpp.
-set(ABSEIL_VER 20210324.2)
-include(ExternalProject)
-set(ABSEIL_CMAKE_ARGS
-    "-DCMAKE_INSTALL_PREFIX=${CMAKE_SOURCE_DIR}/abseil-cpp"
-    "-DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD}"
-    "-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}"
-    "-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}"
-    "-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}"
-    "-DCMAKE_POSITION_INDEPENDENT_CODE=${CMAKE_POSITION_INDEPENDENT_CODE}"
-    "-DLIBRARY_OUTPUT_PATH=${CMAKE_SOURCE_DIR}/abseil-cpp/lib")
-if(DEFINED CMAKE_OSX_ARCHITECTURES)
-    set(ABSEIL_CMAKE_ARGS
-        ${ABSEIL_CMAKE_ARGS}
-        "-DCMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES}")
-endif()
-ExternalProject_Add(abseil-cpp
-  GIT_REPOSITORY    https://github.com/abseil/abseil-cpp.git
-  GIT_TAG           ${ABSEIL_VER}
-  PREFIX            ${CMAKE_SOURCE_DIR}/abseil-cpp
-  CMAKE_ARGS        ${ABSEIL_CMAKE_ARGS}
+set(ABSEIL_LIBS int128 raw_hash_set raw_logging_internal strings throw_delegate)
+find_package(
+  absl
+  REQUIRED
+  COMPONENTS ${ABSEIL_LIBS}
 )
-ExternalProject_Get_Property(abseil-cpp install_dir)
-set(abseil_install_dir ${install_dir})
-include_directories (${abseil_install_dir}/include)
-
 
 # Define pybind11 tree module.
 pybind11_add_module(_tree tree.h tree.cc)
-add_dependencies(_tree abseil-cpp)
-
-if (WIN32 OR MSVC)
-    set(ABSEIL_LIB_PREF "absl")
-    set(LIB_SUFF "lib")
-else()
-    set(ABSEIL_LIB_PREF "libabsl")
-    set(LIB_SUFF "a")
-endif()
 
-# Link abseil static libs.
-# We don't use find_library here to force cmake to build abseil before linking.
-set(ABSEIL_LIBS int128 raw_hash_set raw_logging_internal strings throw_delegate)
 foreach(ABSEIL_LIB IN LISTS ABSEIL_LIBS)
-  target_link_libraries(_tree PRIVATE
-      "${abseil_install_dir}/lib/${ABSEIL_LIB_PREF}_${ABSEIL_LIB}.${LIB_SUFF}")
+  target_link_libraries(_tree PRIVATE "absl::${ABSEIL_LIB}")
 endforeach()
 
 # Make the module private to tree package.
 set_target_properties(_tree PROPERTIES OUTPUT_NAME tree/_tree)
-
-

=>> Edit python-dm-tree/CMakeLists.txt.patch? [y/N]:  n

Repository      : AUR
Name            : python-dm-tree
Version         : 0.1.8-1
Maintainer      : acxz
URL             : https://tree.readthedocs.io
AUR URL         : https://aur.archlinux.org/packages/python-dm-tree
License         : Apache-2.0
Votes           : 0
Popularity      : 0%
Installed       : No
Out Of Date     : No
Depends On      : python
                  python-six
                  abseil-cpp
Make Deps       : python
                  python-build
                  python-installer
                  python-wheel
                  python-setuptools
                  cmake
                  git
Check Deps      : None
Optional Deps   : None
Provides        : None
Conflicts With  : None
Replaces        : None
Package Base    : python-dm-tree
Last Update     : Wed Jun 21 21:49:35 2023
Description     : tree is a library for working with nested data structures

==> Making package: python-dm-tree 0.1.8-1 (Wed 09 Aug 2023 08:11:14 AM CDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found python-dm-tree-0.1.8.tar.gz
  -> Found CMakeLists.txt.patch
==> Validating source files with sha256sums...
    python-dm-tree-0.1.8.tar.gz ... Passed
    CMakeLists.txt.patch ... Passed
==> Extracting sources...
  -> Extracting python-dm-tree-0.1.8.tar.gz with bsdtar
==> Starting prepare()...
patching file tree/CMakeLists.txt
==> Removing existing $pkgdir/ directory...
==> Starting build()...
* Getting build dependencies for wheel...
running egg_info
writing dm_tree.egg-info/PKG-INFO
writing dependency_links to dm_tree.egg-info/dependency_links.txt
writing top-level names to dm_tree.egg-info/top_level.txt
reading manifest file 'dm_tree.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'WORKSPACE'
adding license file 'LICENSE'
writing manifest file 'dm_tree.egg-info/SOURCES.txt'
* Building wheel...
running bdist_wheel
running build
running build_py
running build_ext
cmake version 3.27.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).
Found CMake
Current build type is: Release
PROJECT_BINARY_DIR is: /home/sirus/.cache/trizen/sources/python-dm-tree/src/dm-tree-0.1.8/build/temp.linux-x86_64-cpython-311
CMake Deprecation Warning at /home/sirus/.cache/trizen/sources/python-dm-tree/src/dm-tree-0.1.8/build/temp.linux-x86_64-cpython-311/_deps/pybind11-src/CMakeLists.txt:8 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- pybind11 v2.10.1 
-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: /home/sirus/.cache/trizen/sources/python-dm-tree/src/dm-tree-0.1.8/build/temp.linux-x86_64-cpython-311
[ 50%] Building CXX object CMakeFiles/_tree.dir/tree.cc.o
In file included from /usr/include/absl/strings/internal/has_absl_stringify.h:21,
                 from /usr/include/absl/strings/str_cat.h:98,
                 from /home/sirus/.cache/trizen/sources/python-dm-tree/src/dm-tree-0.1.8/tree/tree.cc:23:
/usr/include/absl/strings/string_view.h:52:26: error: ‘string_view’ in namespace ‘std’ does not name a type
   52 | using string_view = std::string_view;
      |                          ^~~~~~~~~~~
/usr/include/absl/strings/string_view.h:52:21: note: ‘std::string_view’ is only available from C++17 onwards
   52 | using string_view = std::string_view;
      |                     ^~~
/usr/include/absl/strings/string_view.h:686:8: error: ‘string_view’ does not name a type
  686 | inline string_view ClippedSubstr(string_view s, size_t pos,
      |        ^~~~~~~~~~~
/usr/include/absl/strings/string_view.h:697:11: error: ‘string_view’ does not name a type
  697 | constexpr string_view NullSafeStringView(const char* p) {
      |           ^~~~~~~~~~~
/usr/include/absl/strings/internal/has_absl_stringify.h:35:15: error: ‘string_view’ has not been declared
   35 |   void Append(string_view v);
      |               ^~~~~~~~~~~
/usr/include/absl/strings/internal/has_absl_stringify.h:38:62: error: ‘absl::string_view’ has not been declared
   38 |   friend void AbslFormatFlush(UnimplementedSink* sink, absl::string_view v);
      |                                                              ^~~~~~~~~~~
In file included from /usr/include/absl/strings/str_cat.h:99:
/usr/include/absl/strings/internal/stringify_sink.h:32:15: error: ‘string_view’ has not been declared
   32 |   void Append(string_view v);
      |               ^~~~~~~~~~~
/usr/include/absl/strings/internal/stringify_sink.h:35:58: error: ‘absl::string_view’ has not been declared
   35 |   friend void AbslFormatFlush(StringifySink* sink, absl::string_view v) {
      |                                                          ^~~~~~~~~~~
/usr/include/absl/strings/internal/stringify_sink.h:41:10: error: ‘string_view’ does not name a type
   41 |   friend string_view ExtractStringification(StringifySink& sink, const T& v);
      |          ^~~~~~~~~~~
/usr/include/absl/strings/internal/stringify_sink.h:47:1: error: ‘string_view’ does not name a type
   47 | string_view ExtractStringification(StringifySink& sink, const T& v) {
      | ^~~~~~~~~~~
In file included from /usr/include/absl/strings/str_cat.h:100:
/usr/include/absl/strings/numbers.h:62:44: error: ‘string_view’ is not a member of ‘absl’
   62 | ABSL_MUST_USE_RESULT bool SimpleAtoi(absl::string_view str, int_type* out);
      |                                            ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:62:69: error: expected primary-expression before ‘*’ token
   62 | ABSL_MUST_USE_RESULT bool SimpleAtoi(absl::string_view str, int_type* out);
      |                                                                     ^
/usr/include/absl/strings/numbers.h:62:71: error: ‘out’ was not declared in this scope
   62 | ABSL_MUST_USE_RESULT bool SimpleAtoi(absl::string_view str, int_type* out);
      |                                                                       ^~~
/usr/include/absl/strings/numbers.h:62:74: error: expression list treated as compound expression in initializer [-fpermissive]
   62 | ABSL_MUST_USE_RESULT bool SimpleAtoi(absl::string_view str, int_type* out);
      |                                                                          ^
/usr/include/absl/strings/numbers.h:73:44: error: ‘string_view’ is not a member of ‘absl’
   73 | ABSL_MUST_USE_RESULT bool SimpleAtof(absl::string_view str, float* out);
      |                                            ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:73:61: error: expected primary-expression before ‘float’
   73 | ABSL_MUST_USE_RESULT bool SimpleAtof(absl::string_view str, float* out);
      |                                                             ^~~~~
/usr/include/absl/strings/numbers.h:73:71: error: expression list treated as compound expression in initializer [-fpermissive]
   73 | ABSL_MUST_USE_RESULT bool SimpleAtof(absl::string_view str, float* out);
      |                                                                       ^
/usr/include/absl/strings/numbers.h:84:44: error: ‘string_view’ is not a member of ‘absl’
   84 | ABSL_MUST_USE_RESULT bool SimpleAtod(absl::string_view str, double* out);
      |                                            ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:84:61: error: expected primary-expression before ‘double’
   84 | ABSL_MUST_USE_RESULT bool SimpleAtod(absl::string_view str, double* out);
      |                                                             ^~~~~~
/usr/include/absl/strings/numbers.h:84:72: error: expression list treated as compound expression in initializer [-fpermissive]
   84 | ABSL_MUST_USE_RESULT bool SimpleAtod(absl::string_view str, double* out);
      |                                                                        ^
/usr/include/absl/strings/numbers.h:94:44: error: ‘string_view’ is not a member of ‘absl’
   94 | ABSL_MUST_USE_RESULT bool SimpleAtob(absl::string_view str, bool* out);
      |                                            ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:94:61: error: expected primary-expression before ‘bool’
   94 | ABSL_MUST_USE_RESULT bool SimpleAtob(absl::string_view str, bool* out);
      |                                                             ^~~~
/usr/include/absl/strings/numbers.h:94:70: error: expression list treated as compound expression in initializer [-fpermissive]
   94 | ABSL_MUST_USE_RESULT bool SimpleAtob(absl::string_view str, bool* out);
      |                                                                      ^
/usr/include/absl/strings/numbers.h:107:47: error: ‘string_view’ is not a member of ‘absl’
  107 | ABSL_MUST_USE_RESULT bool SimpleHexAtoi(absl::string_view str, int_type* out);
      |                                               ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:107:72: error: expected primary-expression before ‘*’ token
  107 | ABSL_MUST_USE_RESULT bool SimpleHexAtoi(absl::string_view str, int_type* out);
      |                                                                        ^
/usr/include/absl/strings/numbers.h:107:74: error: ‘out’ was not declared in this scope
  107 | ABSL_MUST_USE_RESULT bool SimpleHexAtoi(absl::string_view str, int_type* out);
      |                                                                          ^~~
/usr/include/absl/strings/numbers.h:107:77: error: expression list treated as compound expression in initializer [-fpermissive]
  107 | ABSL_MUST_USE_RESULT bool SimpleHexAtoi(absl::string_view str, int_type* out);
      |                                                                             ^
/usr/include/absl/strings/numbers.h:110:54: error: ‘bool absl::lts_20230125::SimpleHexAtoi’ redeclared as different kind of entity
  110 | ABSL_MUST_USE_RESULT inline bool SimpleHexAtoi(absl::string_view str,
      |                                                      ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:107:27: note: previous declaration ‘template<class int_type> bool absl::lts_20230125::SimpleHexAtoi<int_type>’
  107 | ABSL_MUST_USE_RESULT bool SimpleHexAtoi(absl::string_view str, int_type* out);
      |                           ^~~~~~~~~~~~~
/usr/include/absl/strings/numbers.h:110:54: error: ‘string_view’ is not a member of ‘absl’
  110 | ABSL_MUST_USE_RESULT inline bool SimpleHexAtoi(absl::string_view str,
      |                                                      ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:111:60: error: expected primary-expression before ‘*’ token
  111 |                                                absl::int128* out);
      |                                                            ^
/usr/include/absl/strings/numbers.h:111:62: error: ‘out’ was not declared in this scope
  111 |                                                absl::int128* out);
      |                                                              ^~~
/usr/include/absl/strings/numbers.h:112:54: error: ‘bool absl::lts_20230125::SimpleHexAtoi’ redeclared as different kind of entity
  112 | ABSL_MUST_USE_RESULT inline bool SimpleHexAtoi(absl::string_view str,
      |                                                      ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:107:27: note: previous declaration ‘template<class int_type> bool absl::lts_20230125::SimpleHexAtoi<int_type>’
  107 | ABSL_MUST_USE_RESULT bool SimpleHexAtoi(absl::string_view str, int_type* out);
      |                           ^~~~~~~~~~~~~
/usr/include/absl/strings/numbers.h:112:54: error: ‘string_view’ is not a member of ‘absl’
  112 | ABSL_MUST_USE_RESULT inline bool SimpleHexAtoi(absl::string_view str,
      |                                                      ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:113:61: error: expected primary-expression before ‘*’ token
  113 |                                                absl::uint128* out);
      |                                                             ^
/usr/include/absl/strings/numbers.h:113:63: error: ‘out’ was not declared in this scope
  113 |                                                absl::uint128* out);
      |                                                               ^~~
/usr/include/absl/strings/numbers.h:144:30: error: ‘string_view’ is not a member of ‘absl’
  144 | bool safe_strto32_base(absl::string_view text, int32_t* value, int base);
      |                              ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:144:55: error: expected primary-expression before ‘*’ token
  144 | bool safe_strto32_base(absl::string_view text, int32_t* value, int base);
      |                                                       ^
/usr/include/absl/strings/numbers.h:144:57: error: ‘value’ was not declared in this scope
  144 | bool safe_strto32_base(absl::string_view text, int32_t* value, int base);
      |                                                         ^~~~~
/usr/include/absl/strings/numbers.h:144:64: error: expected primary-expression before ‘int’
  144 | bool safe_strto32_base(absl::string_view text, int32_t* value, int base);
      |                                                                ^~~
/usr/include/absl/strings/numbers.h:144:72: error: expression list treated as compound expression in initializer [-fpermissive]
  144 | bool safe_strto32_base(absl::string_view text, int32_t* value, int base);
      |                                                                        ^
/usr/include/absl/strings/numbers.h:145:30: error: ‘string_view’ is not a member of ‘absl’
  145 | bool safe_strto64_base(absl::string_view text, int64_t* value, int base);
      |                              ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:145:55: error: expected primary-expression before ‘*’ token
  145 | bool safe_strto64_base(absl::string_view text, int64_t* value, int base);
      |                                                       ^
/usr/include/absl/strings/numbers.h:145:57: error: ‘value’ was not declared in this scope
  145 | bool safe_strto64_base(absl::string_view text, int64_t* value, int base);
      |                                                         ^~~~~
/usr/include/absl/strings/numbers.h:145:64: error: expected primary-expression before ‘int’
  145 | bool safe_strto64_base(absl::string_view text, int64_t* value, int base);
      |                                                                ^~~
/usr/include/absl/strings/numbers.h:145:72: error: expression list treated as compound expression in initializer [-fpermissive]
  145 | bool safe_strto64_base(absl::string_view text, int64_t* value, int base);
      |                                                                        ^
/usr/include/absl/strings/numbers.h:146:31: error: ‘string_view’ is not a member of ‘absl’
  146 | bool safe_strto128_base(absl::string_view text, absl::int128* value,
      |                               ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:146:61: error: expected primary-expression before ‘*’ token
  146 | bool safe_strto128_base(absl::string_view text, absl::int128* value,
      |                                                             ^
/usr/include/absl/strings/numbers.h:146:63: error: ‘value’ was not declared in this scope
  146 | bool safe_strto128_base(absl::string_view text, absl::int128* value,
      |                                                               ^~~~~
/usr/include/absl/strings/numbers.h:147:26: error: expected primary-expression before ‘int’
  147 |                          int base);
      |                          ^~~
/usr/include/absl/strings/numbers.h:147:34: error: expression list treated as compound expression in initializer [-fpermissive]
  147 |                          int base);
      |                                  ^
/usr/include/absl/strings/numbers.h:148:31: error: ‘string_view’ is not a member of ‘absl’
  148 | bool safe_strtou32_base(absl::string_view text, uint32_t* value, int base);
      |                               ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:148:57: error: expected primary-expression before ‘*’ token
  148 | bool safe_strtou32_base(absl::string_view text, uint32_t* value, int base);
      |                                                         ^
/usr/include/absl/strings/numbers.h:148:59: error: ‘value’ was not declared in this scope
  148 | bool safe_strtou32_base(absl::string_view text, uint32_t* value, int base);
      |                                                           ^~~~~
/usr/include/absl/strings/numbers.h:148:66: error: expected primary-expression before ‘int’
  148 | bool safe_strtou32_base(absl::string_view text, uint32_t* value, int base);
      |                                                                  ^~~
/usr/include/absl/strings/numbers.h:148:74: error: expression list treated as compound expression in initializer [-fpermissive]
  148 | bool safe_strtou32_base(absl::string_view text, uint32_t* value, int base);
      |                                                                          ^
/usr/include/absl/strings/numbers.h:149:31: error: ‘string_view’ is not a member of ‘absl’
  149 | bool safe_strtou64_base(absl::string_view text, uint64_t* value, int base);
      |                               ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:149:57: error: expected primary-expression before ‘*’ token
  149 | bool safe_strtou64_base(absl::string_view text, uint64_t* value, int base);
      |                                                         ^
/usr/include/absl/strings/numbers.h:149:59: error: ‘value’ was not declared in this scope
  149 | bool safe_strtou64_base(absl::string_view text, uint64_t* value, int base);
      |                                                           ^~~~~
/usr/include/absl/strings/numbers.h:149:66: error: expected primary-expression before ‘int’
  149 | bool safe_strtou64_base(absl::string_view text, uint64_t* value, int base);
      |                                                                  ^~~
/usr/include/absl/strings/numbers.h:149:74: error: expression list treated as compound expression in initializer [-fpermissive]
  149 | bool safe_strtou64_base(absl::string_view text, uint64_t* value, int base);
      |                                                                          ^
/usr/include/absl/strings/numbers.h:150:32: error: ‘string_view’ is not a member of ‘absl’
  150 | bool safe_strtou128_base(absl::string_view text, absl::uint128* value,
      |                                ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:150:63: error: expected primary-expression before ‘*’ token
  150 | bool safe_strtou128_base(absl::string_view text, absl::uint128* value,
      |                                                               ^
/usr/include/absl/strings/numbers.h:150:65: error: ‘value’ was not declared in this scope
  150 | bool safe_strtou128_base(absl::string_view text, absl::uint128* value,
      |                                                                 ^~~~~
/usr/include/absl/strings/numbers.h:151:26: error: expected primary-expression before ‘int’
  151 |                          int base);
      |                          ^~~
/usr/include/absl/strings/numbers.h:151:34: error: expression list treated as compound expression in initializer [-fpermissive]
  151 |                          int base);
      |                                  ^
/usr/include/absl/strings/numbers.h:202:50: error: ‘string_view’ is not a member of ‘absl’
  202 | ABSL_MUST_USE_RESULT bool safe_strtoi_base(absl::string_view s, int_type* out,
      |                                                  ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:202:73: error: expected primary-expression before ‘*’ token
  202 | ABSL_MUST_USE_RESULT bool safe_strtoi_base(absl::string_view s, int_type* out,
      |                                                                         ^
/usr/include/absl/strings/numbers.h:202:75: error: ‘out’ was not declared in this scope
  202 | ABSL_MUST_USE_RESULT bool safe_strtoi_base(absl::string_view s, int_type* out,
      |                                                                           ^~~
/usr/include/absl/strings/numbers.h:203:44: error: expected primary-expression before ‘int’
  203 |                                            int base) {
      |                                            ^~~
/usr/include/absl/strings/numbers.h:203:52: error: expression list treated as compound expression in initializer [-fpermissive]
  203 |                                            int base) {
      |                                                    ^
/usr/include/absl/strings/numbers.h:203:53: error: expected ‘;’ before ‘{’ token
  203 |                                            int base) {
      |                                                     ^~
      |                                                     ;
/usr/include/absl/strings/numbers.h:271:27: error: redefinition of ‘template<class int_type> bool absl::lts_20230125::SimpleAtoi’
  271 | ABSL_MUST_USE_RESULT bool SimpleAtoi(absl::string_view str, int_type* out) {
      |                           ^~~~~~~~~~
/usr/include/absl/strings/numbers.h:62:27: note: ‘template<class int_type> bool absl::lts_20230125::SimpleAtoi<int_type>’ previously declared here
   62 | ABSL_MUST_USE_RESULT bool SimpleAtoi(absl::string_view str, int_type* out);
      |                           ^~~~~~~~~~
/usr/include/absl/strings/numbers.h:271:44: error: ‘string_view’ is not a member of ‘absl’
  271 | ABSL_MUST_USE_RESULT bool SimpleAtoi(absl::string_view str, int_type* out) {
      |                                            ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:271:69: error: expected primary-expression before ‘*’ token
  271 | ABSL_MUST_USE_RESULT bool SimpleAtoi(absl::string_view str, int_type* out) {
      |                                                                     ^
/usr/include/absl/strings/numbers.h:271:71: error: ‘out’ was not declared in this scope
  271 | ABSL_MUST_USE_RESULT bool SimpleAtoi(absl::string_view str, int_type* out) {
      |                                                                       ^~~
/usr/include/absl/strings/numbers.h:275:51: error: ‘bool absl::lts_20230125::SimpleAtoi’ redeclared as different kind of entity
  275 | ABSL_MUST_USE_RESULT inline bool SimpleAtoi(absl::string_view str,
      |                                                   ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:62:27: note: previous declaration ‘template<class int_type> bool absl::lts_20230125::SimpleAtoi<int_type>’
   62 | ABSL_MUST_USE_RESULT bool SimpleAtoi(absl::string_view str, int_type* out);
      |                           ^~~~~~~~~~
/usr/include/absl/strings/numbers.h:275:51: error: ‘string_view’ is not a member of ‘absl’
  275 | ABSL_MUST_USE_RESULT inline bool SimpleAtoi(absl::string_view str,
      |                                                   ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:276:57: error: expected primary-expression before ‘*’ token
  276 |                                             absl::int128* out) {
      |                                                         ^
/usr/include/absl/strings/numbers.h:276:59: error: ‘out’ was not declared in this scope
  276 |                                             absl::int128* out) {
      |                                                           ^~~
/usr/include/absl/strings/numbers.h:280:51: error: ‘bool absl::lts_20230125::SimpleAtoi’ redeclared as different kind of entity
  280 | ABSL_MUST_USE_RESULT inline bool SimpleAtoi(absl::string_view str,
      |                                                   ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:62:27: note: previous declaration ‘template<class int_type> bool absl::lts_20230125::SimpleAtoi<int_type>’
   62 | ABSL_MUST_USE_RESULT bool SimpleAtoi(absl::string_view str, int_type* out);
      |                           ^~~~~~~~~~
/usr/include/absl/strings/numbers.h:280:51: error: ‘string_view’ is not a member of ‘absl’
  280 | ABSL_MUST_USE_RESULT inline bool SimpleAtoi(absl::string_view str,
      |                                                   ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:281:58: error: expected primary-expression before ‘*’ token
  281 |                                             absl::uint128* out) {
      |                                                          ^
/usr/include/absl/strings/numbers.h:281:60: error: ‘out’ was not declared in this scope
  281 |                                             absl::uint128* out) {
      |                                                            ^~~
/usr/include/absl/strings/numbers.h:286:27: error: redefinition of ‘template<class int_type> bool absl::lts_20230125::SimpleHexAtoi’
  286 | ABSL_MUST_USE_RESULT bool SimpleHexAtoi(absl::string_view str, int_type* out) {
      |                           ^~~~~~~~~~~~~
/usr/include/absl/strings/numbers.h:107:27: note: ‘template<class int_type> bool absl::lts_20230125::SimpleHexAtoi<int_type>’ previously declared here
  107 | ABSL_MUST_USE_RESULT bool SimpleHexAtoi(absl::string_view str, int_type* out);
      |                           ^~~~~~~~~~~~~
/usr/include/absl/strings/numbers.h:286:47: error: ‘string_view’ is not a member of ‘absl’
  286 | ABSL_MUST_USE_RESULT bool SimpleHexAtoi(absl::string_view str, int_type* out) {
      |                                               ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:286:72: error: expected primary-expression before ‘*’ token
  286 | ABSL_MUST_USE_RESULT bool SimpleHexAtoi(absl::string_view str, int_type* out) {
      |                                                                        ^
/usr/include/absl/strings/numbers.h:286:74: error: ‘out’ was not declared in this scope
  286 | ABSL_MUST_USE_RESULT bool SimpleHexAtoi(absl::string_view str, int_type* out) {
      |                                                                          ^~~
/usr/include/absl/strings/numbers.h:290:54: error: ‘bool absl::lts_20230125::SimpleHexAtoi’ redeclared as different kind of entity
  290 | ABSL_MUST_USE_RESULT inline bool SimpleHexAtoi(absl::string_view str,
      |                                                      ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:107:27: note: previous declaration ‘template<class int_type> bool absl::lts_20230125::SimpleHexAtoi<int_type>’
  107 | ABSL_MUST_USE_RESULT bool SimpleHexAtoi(absl::string_view str, int_type* out);
      |                           ^~~~~~~~~~~~~
/usr/include/absl/strings/numbers.h:290:54: error: ‘string_view’ is not a member of ‘absl’
  290 | ABSL_MUST_USE_RESULT inline bool SimpleHexAtoi(absl::string_view str,
      |                                                      ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:291:60: error: expected primary-expression before ‘*’ token
  291 |                                                absl::int128* out) {
      |                                                            ^
/usr/include/absl/strings/numbers.h:291:62: error: ‘out’ was not declared in this scope
  291 |                                                absl::int128* out) {
      |                                                              ^~~
/usr/include/absl/strings/numbers.h:295:54: error: ‘bool absl::lts_20230125::SimpleHexAtoi’ redeclared as different kind of entity
  295 | ABSL_MUST_USE_RESULT inline bool SimpleHexAtoi(absl::string_view str,
      |                                                      ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:107:27: note: previous declaration ‘template<class int_type> bool absl::lts_20230125::SimpleHexAtoi<int_type>’
  107 | ABSL_MUST_USE_RESULT bool SimpleHexAtoi(absl::string_view str, int_type* out);
      |                           ^~~~~~~~~~~~~
/usr/include/absl/strings/numbers.h:295:54: error: ‘string_view’ is not a member of ‘absl’
  295 | ABSL_MUST_USE_RESULT inline bool SimpleHexAtoi(absl::string_view str,
      |                                                      ^~~~~~~~~~~
/usr/include/absl/strings/numbers.h:296:61: error: expected primary-expression before ‘*’ token
  296 |                                                absl::uint128* out) {
      |                                                             ^
/usr/include/absl/strings/numbers.h:296:63: error: ‘out’ was not declared in this scope
  296 |                                                absl::uint128* out) {
      |                                                               ^~~
/usr/include/absl/strings/str_cat.h:295:29: error: expected ‘)’ before ‘pc’
  295 |   AlphaNum(absl::string_view pc) : piece_(pc) {}  // NOLINT(runtime/explicit)
      |           ~                 ^~~
      |                             )
/usr/include/absl/strings/str_cat.h:315:9: error: ‘string_view’ in namespace ‘absl’ does not name a type
  315 |   absl::string_view::size_type size() const { return piece_.size(); }
      |         ^~~~~~~~~~~
/usr/include/absl/strings/str_cat.h:317:9: error: ‘string_view’ in namespace ‘absl’ does not name a type
  317 |   absl::string_view Piece() const { return piece_; }
      |         ^~~~~~~~~~~
/usr/include/absl/strings/str_cat.h:340:9: error: ‘string_view’ in namespace ‘absl’ does not name a type
  340 |   absl::string_view piece_;
      |         ^~~~~~~~~~~
/usr/include/absl/strings/str_cat.h: In constructor ‘absl::lts_20230125::AlphaNum::AlphaNum(int)’:
/usr/include/absl/strings/str_cat.h:256:9: error: class ‘absl::lts_20230125::AlphaNum’ does not have any field named ‘piece_’
  256 |       : piece_(digits_, static_cast<size_t>(
      |         ^~~~~~
/usr/include/absl/strings/str_cat.h: In constructor ‘absl::lts_20230125::AlphaNum::AlphaNum(unsigned int)’:
/usr/include/absl/strings/str_cat.h:260:9: error: class ‘absl::lts_20230125::AlphaNum’ does not have any field named ‘piece_’
  260 |       : piece_(digits_, static_cast<size_t>(
      |         ^~~~~~
/usr/include/absl/strings/str_cat.h: In constructor ‘absl::lts_20230125::AlphaNum::AlphaNum(long int)’:
/usr/include/absl/strings/str_cat.h:264:9: error: class ‘absl::lts_20230125::AlphaNum’ does not have any field named ‘piece_’
  264 |       : piece_(digits_, static_cast<size_t>(
      |         ^~~~~~
/usr/include/absl/strings/str_cat.h: In constructor ‘absl::lts_20230125::AlphaNum::AlphaNum(long unsigned int)’:
/usr/include/absl/strings/str_cat.h:268:9: error: class ‘absl::lts_20230125::AlphaNum’ does not have any field named ‘piece_’
  268 |       : piece_(digits_, static_cast<size_t>(
      |         ^~~~~~
/usr/include/absl/strings/str_cat.h: In constructor ‘absl::lts_20230125::AlphaNum::AlphaNum(long long int)’:
/usr/include/absl/strings/str_cat.h:272:9: error: class ‘absl::lts_20230125::AlphaNum’ does not have any field named ‘piece_’
  272 |       : piece_(digits_, static_cast<size_t>(
      |         ^~~~~~
/usr/include/absl/strings/str_cat.h: In constructor ‘absl::lts_20230125::AlphaNum::AlphaNum(long long unsigned int)’:
/usr/include/absl/strings/str_cat.h:276:9: error: class ‘absl::lts_20230125::AlphaNum’ does not have any field named ‘piece_’
  276 |       : piece_(digits_, static_cast<size_t>(
      |         ^~~~~~
/usr/include/absl/strings/str_cat.h: In constructor ‘absl::lts_20230125::AlphaNum::AlphaNum(float)’:
/usr/include/absl/strings/str_cat.h:281:9: error: class ‘absl::lts_20230125::AlphaNum’ does not have any field named ‘piece_’
  281 |       : piece_(digits_, numbers_internal::SixDigitsToBuffer(f, digits_)) {}
      |         ^~~~~~
/usr/include/absl/strings/str_cat.h: In constructor ‘absl::lts_20230125::AlphaNum::AlphaNum(double)’:
/usr/include/absl/strings/str_cat.h:283:9: error: class ‘absl::lts_20230125::AlphaNum’ does not have any field named ‘piece_’
  283 |       : piece_(digits_, numbers_internal::SixDigitsToBuffer(f, digits_)) {}
      |         ^~~~~~
/usr/include/absl/strings/str_cat.h: In constructor ‘absl::lts_20230125::AlphaNum::AlphaNum(const absl::lts_20230125::strings_internal::AlphaNumBuffer<size>&)’:
/usr/include/absl/strings/str_cat.h:291:9: error: class ‘absl::lts_20230125::AlphaNum’ does not have any field named ‘piece_’
  291 |       : piece_(&buf.data[0], buf.size) {}
      |         ^~~~~~
/usr/include/absl/strings/str_cat.h: In constructor ‘absl::lts_20230125::AlphaNum::AlphaNum(const char*)’:
/usr/include/absl/strings/str_cat.h:294:9: error: class ‘absl::lts_20230125::AlphaNum’ does not have any field named ‘piece_’
  294 |       : piece_(NullSafeStringView(c_str)) {}      // NOLINT(runtime/explicit)
      |         ^~~~~~
/usr/include/absl/strings/str_cat.h:294:16: error: ‘NullSafeStringView’ was not declared in this scope
  294 |       : piece_(NullSafeStringView(c_str)) {}      // NOLINT(runtime/explicit)
      |                ^~~~~~~~~~~~~~~~~~
/usr/include/absl/strings/str_cat.h: In constructor ‘absl::lts_20230125::AlphaNum::AlphaNum(const T&, absl::lts_20230125::strings_internal::StringifySink&&)’:
/usr/include/absl/strings/str_cat.h:302:9: error: class ‘absl::lts_20230125::AlphaNum’ does not have any field named ‘piece_’
  302 |       : piece_(strings_internal::ExtractStringification(sink, v)) {}
      |         ^~~~~~
/usr/include/absl/strings/str_cat.h:302:34: error: ‘ExtractStringification’ is not a member of ‘absl::lts_20230125::strings_internal’
  302 |       : piece_(strings_internal::ExtractStringification(sink, v)) {}
      |                                  ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/absl/strings/str_cat.h: In constructor ‘absl::lts_20230125::AlphaNum::AlphaNum(const std::__cxx11::basic_string<char, std::char_traits<char>, _Alloc>&)’:
/usr/include/absl/strings/str_cat.h:307:9: error: class ‘absl::lts_20230125::AlphaNum’ does not have any field named ‘piece_’
  307 |       : piece_(str) {}
      |         ^~~~~~
/usr/include/absl/strings/str_cat.h: In member function ‘const char* absl::lts_20230125::AlphaNum::data() const’:
/usr/include/absl/strings/str_cat.h:316:37: error: ‘piece_’ was not declared in this scope
  316 |   const char* data() const { return piece_.data(); }
      |                                     ^~~~~~
/usr/include/absl/strings/str_cat.h: At global scope:
/usr/include/absl/strings/str_cat.h:375:51: error: ‘string_view’ is not a member of ‘absl’
  375 | std::string CatPieces(std::initializer_list<absl::string_view> pieces);
      |                                                   ^~~~~~~~~~~
/usr/include/absl/strings/str_cat.h:375:51: error: ‘string_view’ is not a member of ‘absl’
/usr/include/absl/strings/str_cat.h:375:62: error: template argument 1 is invalid
  375 | std::string CatPieces(std::initializer_list<absl::string_view> pieces);
      |                                                              ^
/usr/include/absl/strings/str_cat.h:377:47: error: ‘string_view’ is not a member of ‘absl’
  377 |                   std::initializer_list<absl::string_view> pieces);
      |                                               ^~~~~~~~~~~
/usr/include/absl/strings/str_cat.h:377:47: error: ‘string_view’ is not a member of ‘absl’
/usr/include/absl/strings/str_cat.h:377:58: error: template argument 1 is invalid
  377 |                   std::initializer_list<absl::string_view> pieces);
      |                                                          ^
/usr/include/absl/strings/str_cat.h: In function ‘std::string absl::lts_20230125::StrCat(const AlphaNum&)’:
/usr/include/absl/strings/str_cat.h:384:34: error: ‘const class absl::lts_20230125::AlphaNum’ has no member named ‘size’
  384 |   return std::string(a.data(), a.size());
      |                                  ^~~~
/usr/include/absl/strings/str_cat.h: In function ‘std::string absl::lts_20230125::StrCat(const AlphaNum&, const AlphaNum&, const AlphaNum&, const AlphaNum&, const AlphaNum&, const AV& ...)’:
/usr/include/absl/strings/str_cat.h:399:10: error: ‘const class absl::lts_20230125::AlphaNum’ has no member named ‘Piece’
  399 |       {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(),
      |          ^~~~~
/usr/include/absl/strings/str_cat.h:399:21: error: ‘const class absl::lts_20230125::AlphaNum’ has no member named ‘Piece’
  399 |       {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(),
      |                     ^~~~~
/usr/include/absl/strings/str_cat.h:399:32: error: ‘const class absl::lts_20230125::AlphaNum’ has no member named ‘Piece’
  399 |       {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(),
      |                                ^~~~~
/usr/include/absl/strings/str_cat.h:399:43: error: ‘const class absl::lts_20230125::AlphaNum’ has no member named ‘Piece’
  399 |       {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(),
      |                                           ^~~~~
/usr/include/absl/strings/str_cat.h:399:54: error: ‘const class absl::lts_20230125::AlphaNum’ has no member named ‘Piece’
  399 |       {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(),
      |                                                      ^~~~~
/usr/include/absl/strings/str_cat.h:400:43: error: ‘const class absl::lts_20230125::AlphaNum’ has no member named ‘Piece’
  400 |        static_cast<const AlphaNum&>(args).Piece()...});
      |                                           ^~~~~
/usr/include/absl/strings/str_cat.h:398:37: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘int’
  398 |   return strings_internal::CatPieces(
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
      |                                     |
      |                                     <brace-enclosed initializer list>
  399 |       {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(),
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |        static_cast<const AlphaNum&>(args).Piece()...});
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/absl/strings/str_cat.h:375:64: note:   initializing argument 1 of ‘std::string absl::lts_20230125::strings_internal::CatPieces(int)’
  375 | std::string CatPieces(std::initializer_list<absl::string_view> pieces);
      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/usr/include/absl/strings/str_cat.h: In function ‘void absl::lts_20230125::StrAppend(std::string*, const AlphaNum&, const AlphaNum&, const AlphaNum&, const AlphaNum&, const AlphaNum&, const AV& ...)’:
/usr/include/absl/strings/str_cat.h:444:16: error: ‘const class absl::lts_20230125::AlphaNum’ has no member named ‘Piece’
  444 |       dest, {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(),
      |                ^~~~~
/usr/include/absl/strings/str_cat.h:444:27: error: ‘const class absl::lts_20230125::AlphaNum’ has no member named ‘Piece’
  444 |       dest, {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(),
      |                           ^~~~~
/usr/include/absl/strings/str_cat.h:444:38: error: ‘const class absl::lts_20230125::AlphaNum’ has no member named ‘Piece’
  444 |       dest, {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(),
      |                                      ^~~~~
/usr/include/absl/strings/str_cat.h:444:49: error: ‘const class absl::lts_20230125::AlphaNum’ has no member named ‘Piece’
  444 |       dest, {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(),
      |                                                 ^~~~~
/usr/include/absl/strings/str_cat.h:444:60: error: ‘const class absl::lts_20230125::AlphaNum’ has no member named ‘Piece’
  444 |       dest, {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(),
      |                                                            ^~~~~
/usr/include/absl/strings/str_cat.h:445:49: error: ‘const class absl::lts_20230125::AlphaNum’ has no member named ‘Piece’
  445 |              static_cast<const AlphaNum&>(args).Piece()...});
      |                                                 ^~~~~
/usr/include/absl/strings/str_cat.h:443:33: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘int’
  443 |   strings_internal::AppendPieces(
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
      |                                 |
      |                                 <brace-enclosed initializer list>
  444 |       dest, {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(),
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  445 |              static_cast<const AlphaNum&>(args).Piece()...});
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/absl/strings/str_cat.h:377:60: note:   initializing argument 2 of ‘void absl::lts_20230125::strings_internal::AppendPieces(std::string*, int)’
  377 |                   std::initializer_list<absl::string_view> pieces);
      |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/home/sirus/.cache/trizen/sources/python-dm-tree/src/dm-tree-0.1.8/tree/tree.cc: At global scope:
/home/sirus/.cache/trizen/sources/python-dm-tree/src/dm-tree-0.1.8/tree/tree.cc:62:7: error: ‘string_view’ in namespace ‘absl’ does not name a type
   62 | absl::string_view GetClassName(PyObject* o) {
      |       ^~~~~~~~~~~
/home/sirus/.cache/trizen/sources/python-dm-tree/src/dm-tree-0.1.8/tree/tree.cc: In function ‘std::string tree::{anonymous}::PyObjectToString(PyObject*)’:
/home/sirus/.cache/trizen/sources/python-dm-tree/src/dm-tree-0.1.8/tree/tree.cc:88:34: error: ‘GetClassName’ was not declared in this scope
   88 |     return absl::StrCat("type=", GetClassName(o), " str=", s);
      |                                  ^~~~~~~~~~~~
/home/sirus/.cache/trizen/sources/python-dm-tree/src/dm-tree-0.1.8/tree/tree.cc: In function ‘PyObject* tree::SameNamedtuples(PyObject*, PyObject*)’:
/home/sirus/.cache/trizen/sources/python-dm-tree/src/dm-tree-0.1.8/tree/tree.cc:695:7: error: ‘GetClassName’ was not declared in this scope
  695 |   if (GetClassName(o1).compare(GetClassName(o2)) == 0) {
      |       ^~~~~~~~~~~~
/home/sirus/.cache/trizen/sources/python-dm-tree/src/dm-tree-0.1.8/tree/tree.cc:700:1: warning: control reaches end of non-void function [-Wreturn-type]
  700 | }
      | ^
make[2]: *** [CMakeFiles/_tree.dir/build.make:76: CMakeFiles/_tree.dir/tree.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/_tree.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
    main()
  File "/usr/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main
    json_out['return_val'] = hook(**hook_input['kwargs'])
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
    return _build_backend().build_wheel(wheel_directory, config_settings,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 416, in build_wheel
    return self._build_with_temp_dir(['bdist_wheel'], '.whl',
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 401, in _build_with_temp_dir
    self.run_setup()
  File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 488, in run_setup
    self).run_setup(setup_script=setup_script)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in run_setup
    exec(code, locals())
  File "<string>", line 124, in <module>
  File "/usr/lib/python3.11/site-packages/setuptools/__init__.py", line 107, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.11/site-packages/setuptools/dist.py", line 1234, in run_command
    super().run_command(command)
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.11/site-packages/wheel/bdist_wheel.py", line 343, in run
    self.run_command("build")
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.11/site-packages/setuptools/dist.py", line 1234, in run_command
    super().run_command(command)
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 131, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.11/site-packages/setuptools/dist.py", line 1234, in run_command
    super().run_command(command)
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "<string>", line 72, in run
  File "<string>", line 110, in build_extension
  File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '-j48', '--config', 'Release']' returned non-zero exit status 2.

ERROR Backend subprocess exited when trying to invoke build_wheel
==> ERROR: A failure occurred in build().
    Aborting...
:: Unable to build python-dm-tree - makepkg exited with code: 4
=>> Try again? [y/N]:  n
=>> Exit now? [Y/n]:  y

@MonterraByte
Copy link

MonterraByte commented Sep 2, 2023

The following patch makes it build successfully:

diff '--color=auto' -u -r a/tree/CMakeLists.txt b/tree/CMakeLists.txt
--- a/tree/CMakeLists.txt       2022-12-18 09:35:42.000000000 +0000
+++ b/tree/CMakeLists.txt       2023-09-02 16:51:30.814685912 +0100
@@ -68,7 +68,7 @@
 set (BUILD_TESTING OFF)
 
 # Include abseil-cpp.
-set(ABSEIL_VER 20210324.2)
+set(ABSEIL_VER 20230802.0)
 include(ExternalProject)
 set(ABSEIL_CMAKE_ARGS
     "-DCMAKE_INSTALL_PREFIX=${CMAKE_SOURCE_DIR}/abseil-cpp"

This should be reported upstream.

@acxz
Copy link
Owner

acxz commented Sep 8, 2023

closing as duplicate of #245

@acxz acxz closed this as completed Sep 8, 2023
@acxz acxz changed the title python-dm-tree error: ‘string_view’ in namespace ‘std’ does not name a type [python-dm-tree] error: ‘string_view’ in namespace ‘std’ does not name a type Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants