#66353 closed defect (fixed)
py39-levenshtein @0.20.8_0: Failed to build on 10.10
Reported by: | macdeport | Owned by: | stromnov (Andrey Stromnov) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.0 |
Keywords: | yosemite | Cc: | |
Port: | py-levenshtein |
Description (last modified by macdeport)
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-levenshtein/py39-levenshtein/work/Levenshtein-0.20.8/src/Levenshtein/Levenshtein-c/_levenshtein.hpp:8: :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-levenshtein/py39-levenshtein/work/Levenshtein-0.20.8/extern/rapidfuzz-cpp/rapidfuzz/../rapidfuzz/details/common.hpp:78:60: error: 'InputIt2' does not refer to a value :info:build StringAffix remove_common_affix(Range<InputIt1>& s1, Range<InputIt2>& s2); :info:build ^ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-levenshtein/py39-levenshtein/work/Levenshtein-0.20.8/extern/rapidfuzz-cpp/rapidfuzz/../rapidfuzz/details/common.hpp:77:39: note: declared here :info:build template <typename InputIt1, typename InputIt2> :info:build ^ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-levenshtein/py39-levenshtein/work/Levenshtein-0.20.8/extern/rapidfuzz-cpp/rapidfuzz/../rapidfuzz/details/common.hpp:78:71: error: use of undeclared identifier 's2' :info:build StringAffix remove_common_affix(Range<InputIt1>& s1, Range<InputIt2>& s2); :info:build ^ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-levenshtein/py39-levenshtein/work/Levenshtein-0.20.8/extern/rapidfuzz-cpp/rapidfuzz/../rapidfuzz/details/common.hpp:81:29: error: reference to 'Range' is ambiguous :info:build size_t remove_common_prefix(Range<InputIt1>& s1, Range<InputIt2>& s2); :info:build ^ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-levenshtein/py39-levenshtein/work/Levenshtein-0.20.8/extern/rapidfuzz-cpp/rapidfuzz/../rapidfuzz/details/Range.hpp:44:7: note: candidate found by name lookup is 'rapidfuzz::detail::Range' :info:build class Range { :info:build ^ :info:build
Attachments (1)
Change History (5)
Changed 2 years ago by macdeport
Attachment: | main.log.zip added |
---|
comment:1 Changed 2 years ago by macdeport
Description: | modified (diff) |
---|
I've attached the main.log file
comment:2 Changed 2 years ago by jmroot (Joshua Root)
Keywords: | yosemite added |
---|---|
Owner: | set to stromnov |
Port: | py-levenshtein added; py39-levenshtein removed |
Status: | new → assigned |
Summary: | py39-levenshtein @0.20.8_0: Failed to build for architecture x86_64 → py39-levenshtein @0.20.8_0: Failed to build on 10.10 |
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-levenshtein/py39-levenshtein/work/Levenshtein-0.20.8/src/Levenshtein/Levenshtein-c/_levenshtein.cpp:31: :info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-levenshtein/py39-levenshtein/work/Levenshtein-0.20.8/src/Levenshtein/Levenshtein-c/_levenshtein.hpp:8: :info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-levenshtein/py39-levenshtein/work/Levenshtein-0.20.8/extern/rapidfuzz-cpp/rapidfuzz/../rapidfuzz/details/common.hpp:9: :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-levenshtein/py39-levenshtein/work/Levenshtein-0.20.8/extern/rapidfuzz-cpp/rapidfuzz/../rapidfuzz/details/Range.hpp:139:1: error: C++ requires a type specifier for all declarations :info:build Range(T& x) -> Range<decltype(to_begin(x))>; :info:build ^
Looks like it needs C++17.
comment:3 follow-up: 4 Changed 2 years ago by stromnov (Andrey Stromnov)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:4 Changed 2 years ago by macdeport
But importing Levenshtein leads to:
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/Levenshtein/__init__.py", line 21, in <module> import rapidfuzz.distance.Levenshtein as _Levenshtein ModuleNotFoundError: No module named 'rapidfuzz'
Of cause installing py39-rapidfuzz fix this issue: perhaps conditional automatic installation is a better solution?
Thanks Andrew.
Note: See
TracTickets for help on using
tickets.
Failed to build py39-levenshtein: command execution failed