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

Failed building wheel for fb-re2 #239

Open
mariospicross opened this issue Mar 22, 2024 · 1 comment
Open

Failed building wheel for fb-re2 #239

mariospicross opened this issue Mar 22, 2024 · 1 comment

Comments

@mariospicross
Copy link

Hello. Was on the last command of step 2 when I got above error. Here's the output when running ~/gs-venv/bin/pip install --no-binary lxml --upgrade git+https://github.com/ArchiveTeam/grab-site:

 $ ~/gs-venv/bin/pip install --no-binary lxml --upgrade git+https://github.com/ArchiveTeam/grab-site
Collecting git+https://github.com/ArchiveTeam/grab-site
  Cloning https://github.com/ArchiveTeam/grab-site to /tmp/pip-req-build-_i8e0vjm
  Running command git clone --filter=blob:none --quiet https://github.com/ArchiveTeam/grab-site /tmp/pip-req-build-_i8e0vjm
  Resolved https://github.com/ArchiveTeam/grab-site to commit 8016234f3b0cac0e275137c977d6d177dbc34f2a
  Preparing metadata (setup.py) ... done
Collecting wpull@ https://github.com/ArchiveTeam/ludios_wpull/archive/refs/tags/3.0.9.zip (from grab-site==2.2.7)
  Using cached https://github.com/ArchiveTeam/ludios_wpull/archive/refs/tags/3.0.9.zip
  Preparing metadata (setup.py) ... done
Collecting click>=6.3 (from grab-site==2.2.7)
  Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting manhole>=1.0.0 (from grab-site==2.2.7)
  Using cached manhole-1.8.0-py2.py3-none-any.whl.metadata (13 kB)
Requirement already satisfied: lmdb>=0.89 in /home/orchid/gs-venv/lib/python3.8/site-packages (from grab-site==2.2.7) (1.4.1)
Collecting autobahn>=0.12.1 (from grab-site==2.2.7)
  Using cached autobahn-23.1.2-py2.py3-none-any.whl
Collecting fb-re2>=1.0.6 (from grab-site==2.2.7)
  Using cached fb-re2-1.0.7.tar.gz (9.4 kB)
  Preparing metadata (setup.py) ... done
Collecting websockets>=6.0 (from grab-site==2.2.7)
  Using cached websockets-12.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.6 kB)
Collecting cchardet>=1.0.0 (from grab-site==2.2.7)
  Using cached cchardet-2.1.7-cp38-cp38-manylinux2010_x86_64.whl.metadata (7.7 kB)
Collecting txaio>=21.2.1 (from autobahn>=0.12.1->grab-site==2.2.7)
  Using cached txaio-23.1.1-py2.py3-none-any.whl.metadata (5.4 kB)
Collecting cryptography>=3.4.6 (from autobahn>=0.12.1->grab-site==2.2.7)
  Using cached cryptography-42.0.5-cp37-abi3-manylinux_2_28_x86_64.whl.metadata (5.3 kB)
Collecting hyperlink>=21.0.0 (from autobahn>=0.12.1->grab-site==2.2.7)
  Using cached hyperlink-21.0.0-py2.py3-none-any.whl.metadata (1.5 kB)
Requirement already satisfied: setuptools in /home/orchid/gs-venv/lib/python3.8/site-packages (from autobahn>=0.12.1->grab-site==2.2.7) (56.0.0)
Collecting chardet (from wpull@ https://github.com/ArchiveTeam/ludios_wpull/archive/refs/tags/3.0.9.zip->grab-site==2.2.7)
  Using cached chardet-5.2.0-py3-none-any.whl.metadata (3.4 kB)
Collecting dnspython (from wpull@ https://github.com/ArchiveTeam/ludios_wpull/archive/refs/tags/3.0.9.zip->grab-site==2.2.7)
  Using cached dnspython-2.6.1-py3-none-any.whl.metadata (5.8 kB)
Collecting html5-parser (from wpull@ https://github.com/ArchiveTeam/ludios_wpull/archive/refs/tags/3.0.9.zip->grab-site==2.2.7)
  Using cached html5_parser-0.4.12-cp38-cp38-linux_x86_64.whl
Collecting lxml (from wpull@ https://github.com/ArchiveTeam/ludios_wpull/archive/refs/tags/3.0.9.zip->grab-site==2.2.7)
  Using cached lxml-5.1.0-cp38-cp38-linux_x86_64.whl
Requirement already satisfied: namedlist in /home/orchid/gs-venv/lib/python3.8/site-packages (from wpull@ https://github.com/ArchiveTeam/ludios_wpull/archive/refs/tags/3.0.9.zip->grab-site==2.2.7) (1.8)
Collecting sqlalchemy==1.3.24 (from wpull@ https://github.com/ArchiveTeam/ludios_wpull/archive/refs/tags/3.0.9.zip->grab-site==2.2.7)
  Using cached SQLAlchemy-1.3.24-cp38-cp38-manylinux2010_x86_64.whl.metadata (7.9 kB)
Requirement already satisfied: tornado==4.5.3 in /home/orchid/gs-venv/lib/python3.8/site-packages (from wpull@ https://github.com/ArchiveTeam/ludios_wpull/archive/refs/tags/3.0.9.zip->grab-site==2.2.7) (4.5.3)
Requirement already satisfied: yapsy in /home/orchid/gs-venv/lib/python3.8/site-packages (from wpull@ https://github.com/ArchiveTeam/ludios_wpull/archive/refs/tags/3.0.9.zip->grab-site==2.2.7) (1.12.2)
Collecting cffi>=1.12 (from cryptography>=3.4.6->autobahn>=0.12.1->grab-site==2.2.7)
  Using cached cffi-1.16.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB)
Collecting idna>=2.5 (from hyperlink>=21.0.0->autobahn>=0.12.1->grab-site==2.2.7)
  Using cached idna-3.6-py3-none-any.whl.metadata (9.9 kB)
Collecting pycparser (from cffi>=1.12->cryptography>=3.4.6->autobahn>=0.12.1->grab-site==2.2.7)
  Using cached pycparser-2.21-py2.py3-none-any.whl.metadata (1.1 kB)
Using cached cchardet-2.1.7-cp38-cp38-manylinux2010_x86_64.whl (265 kB)
Using cached click-8.1.7-py3-none-any.whl (97 kB)
Using cached manhole-1.8.0-py2.py3-none-any.whl (16 kB)
Using cached websockets-12.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (130 kB)
Using cached SQLAlchemy-1.3.24-cp38-cp38-manylinux2010_x86_64.whl (1.3 MB)
Using cached cryptography-42.0.5-cp37-abi3-manylinux_2_28_x86_64.whl (4.6 MB)
Using cached hyperlink-21.0.0-py2.py3-none-any.whl (74 kB)
Using cached txaio-23.1.1-py2.py3-none-any.whl (30 kB)
Using cached chardet-5.2.0-py3-none-any.whl (199 kB)
Using cached dnspython-2.6.1-py3-none-any.whl (307 kB)
Using cached cffi-1.16.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (444 kB)
Using cached idna-3.6-py3-none-any.whl (61 kB)
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Building wheels for collected packages: grab-site, fb-re2, wpull
  Building wheel for grab-site (setup.py) ... done
  Created wheel for grab-site: filename=grab_site-2.2.7-py3-none-any.whl size=47959 sha256=7db86f44913aef414d32f261a72530178bcda7d2f93091c0dd0a3d22e5d2392f
  Stored in directory: /tmp/pip-ephem-wheel-cache-32gv35zp/wheels/e5/6d/cd/9797e1e7f685e22a0ead92e0c9bc1851617ad441fcf2ad36b8
  Building wheel for fb-re2 (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [286 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.8
      copying re2.py -> build/lib.linux-x86_64-3.8
      running build_ext
      building '_re2' extension
      creating build/temp.linux-x86_64-3.8
      gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DOPENSSL_NO_SSL3 -fPIC -I/home/orchid/gs-venv/include -I/home/orchid/.pyenv/versions/3.8.15/include/python3.8 -c _re2.cc -o build/temp.linux-x86_64-3.8/_re2.o -std=c++11
      In file included from /usr/include/absl/base/config.h:86,
                       from /usr/include/absl/base/internal/invoke.h:40,
                       from /usr/include/absl/base/call_once.h:34,
                       from /usr/include/re2/re2.h:222,
                       from _re2.cc:37:
      /usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported."
         79 | #error "C++ versions less than C++14 are not supported."
            |  ^~~~~
      In file included from /usr/include/re2/re2.h:223:
      /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) {
            |           ^~~~~~~~~~~
      In file included from /usr/include/absl/types/optional.h:39,
                       from /usr/include/re2/re2.h:224:
      /usr/include/absl/utility/utility.h:164:12: error: ‘in_place_t’ has not been declared in ‘std’
        164 | using std::in_place_t;
            |            ^~~~~~~~~~
      /usr/include/absl/utility/utility.h:165:12: error: ‘in_place’ has not been declared in ‘std’
        165 | using std::in_place;
            |            ^~~~~~~~
      /usr/include/absl/utility/utility.h:181:12: error: ‘in_place_type’ has not been declared in ‘std’
        181 | using std::in_place_type;
            |            ^~~~~~~~~~~~~
      /usr/include/absl/utility/utility.h:182:12: error: ‘in_place_type_t’ has not been declared in ‘std’
        182 | using std::in_place_type_t;
            |            ^~~~~~~~~~~~~~~
      /usr/include/absl/utility/utility.h:198:12: error: ‘in_place_index’ has not been declared in ‘std’
        198 | using std::in_place_index;
            |            ^~~~~~~~~~~~~~
      /usr/include/absl/utility/utility.h:199:12: error: ‘in_place_index_t’ has not been declared in ‘std’
        199 | using std::in_place_index_t;
            |            ^~~~~~~~~~~~~~~~
      /usr/include/absl/types/optional.h:47:12: error: ‘bad_optional_access’ has not been declared in ‘std’
         47 | using std::bad_optional_access;
            |            ^~~~~~~~~~~~~~~~~~~
      /usr/include/absl/types/optional.h:48:12: error: ‘optional’ has not been declared in ‘std’
         48 | using std::optional;
            |            ^~~~~~~~
      /usr/include/absl/types/optional.h:49:12: error: ‘make_optional’ has not been declared in ‘std’
         49 | using std::make_optional;
            |            ^~~~~~~~~~~~~
      /usr/include/absl/types/optional.h:50:12: error: ‘nullopt_t’ has not been declared in ‘std’
         50 | using std::nullopt_t;
            |            ^~~~~~~~~
      /usr/include/absl/types/optional.h:51:12: error: ‘nullopt’ has not been declared in ‘std’
         51 | using std::nullopt;
            |            ^~~~~~~
      In file included from /usr/include/re2/re2.h:225:
      /usr/include/re2/stringpiece.h:14:27: error: ‘string_view’ in namespace ‘absl’ does not name a type
         14 | using StringPiece = absl::string_view;
            |                           ^~~~~~~~~~~
      /usr/include/re2/re2.h:286:24: error: expected ‘)’ before ‘pattern’
        286 |   RE2(absl::string_view pattern);
            |      ~                 ^~~~~~~~
            |                        )
      /usr/include/re2/re2.h:287:24: error: expected ‘)’ before ‘pattern’
        287 |   RE2(absl::string_view pattern, const Options& options);
            |      ~                 ^~~~~~~~
            |                        )
      /usr/include/re2/re2.h:346:32: error: ‘absl::string_view’ has not been declared
        346 |   static bool FullMatchN(absl::string_view text, const RE2& re,
            |                                ^~~~~~~~~~~
      /usr/include/re2/re2.h:348:35: error: ‘absl::string_view’ has not been declared
        348 |   static bool PartialMatchN(absl::string_view text, const RE2& re,
            |                                   ^~~~~~~~~~~
      /usr/include/re2/re2.h:350:30: error: ‘absl::string_view’ has not been declared
        350 |   static bool ConsumeN(absl::string_view* input, const RE2& re,
            |                              ^~~~~~~~~~~
      /usr/include/re2/re2.h:352:37: error: ‘absl::string_view’ has not been declared
        352 |   static bool FindAndConsumeN(absl::string_view* input, const RE2& re,
            |                                     ^~~~~~~~~~~
      /usr/include/re2/re2.h:409:31: error: ‘absl::string_view’ has not been declared
        409 |   static bool FullMatch(absl::string_view text, const RE2& re, A&&... a) {
            |                               ^~~~~~~~~~~
      /usr/include/re2/re2.h:425:34: error: ‘absl::string_view’ has not been declared
        425 |   static bool PartialMatch(absl::string_view text, const RE2& re, A&&... a) {
            |                                  ^~~~~~~~~~~
      /usr/include/re2/re2.h:443:29: error: ‘absl::string_view’ has not been declared
        443 |   static bool Consume(absl::string_view* input, const RE2& re, A&&... a) {
            |                             ^~~~~~~~~~~
      /usr/include/re2/re2.h:461:36: error: ‘absl::string_view’ has not been declared
        461 |   static bool FindAndConsume(absl::string_view* input, const RE2& re, A&&... a) {
            |                                    ^~~~~~~~~~~
      /usr/include/re2/re2.h:480:29: error: ‘absl::string_view’ has not been declared
        480 |                       absl::string_view rewrite);
            |                             ^~~~~~~~~~~
      /usr/include/re2/re2.h:497:34: error: ‘absl::string_view’ has not been declared
        497 |                            absl::string_view rewrite);
            |                                  ^~~~~~~~~~~
      /usr/include/re2/re2.h:507:29: error: ‘absl::string_view’ has not been declared
        507 |   static bool Extract(absl::string_view text,
            |                             ^~~~~~~~~~~
      /usr/include/re2/re2.h:509:29: error: ‘absl::string_view’ has not been declared
        509 |                       absl::string_view rewrite,
            |                             ^~~~~~~~~~~
      /usr/include/re2/re2.h:518:38: error: ‘absl::string_view’ has not been declared
        518 |   static std::string QuoteMeta(absl::string_view unquoted);
            |                                      ^~~~~~~~~~~
      /usr/include/re2/re2.h:583:20: error: ‘absl::string_view’ has not been declared
        583 |   bool Match(absl::string_view text,
            |                    ^~~~~~~~~~~
      /usr/include/re2/re2.h:587:20: error: ‘absl::string_view’ has not been declared
        587 |              absl::string_view* submatch,
            |                    ^~~~~~~~~~~
      /usr/include/re2/re2.h:598:33: error: ‘absl::string_view’ has not been declared
        598 |   bool CheckRewriteString(absl::string_view rewrite,
            |                                 ^~~~~~~~~~~
      /usr/include/re2/re2.h:603:32: error: ‘absl::string_view’ has not been declared
        603 |   static int MaxSubmatch(absl::string_view rewrite);
            |                                ^~~~~~~~~~~
      /usr/include/re2/re2.h:611:22: error: ‘absl::string_view’ has not been declared
        611 |                absl::string_view rewrite,
            |                      ^~~~~~~~~~~
      /usr/include/re2/re2.h:612:28: error: ‘string_view’ in namespace ‘absl’ does not name a type
        612 |                const absl::string_view* vec,
            |                            ^~~~~~~~~~~
      /usr/include/re2/re2.h:771:19: error: ‘absl::string_view’ has not been declared
        771 |   void Init(absl::string_view pattern, const Options& options);
            |                   ^~~~~~~~~~~
      /usr/include/re2/re2.h:773:22: error: ‘absl::string_view’ has not been declared
        773 |   bool DoMatch(absl::string_view text,
            |                      ^~~~~~~~~~~
      /usr/include/re2/re2.h:819:36: error: ‘string_view’ is not a member of ‘absl’
        819 | template <> struct Parse3ary<absl::string_view> : public std::true_type {};
            |                                    ^~~~~~~~~~~
      /usr/include/re2/re2.h:819:36: error: ‘string_view’ is not a member of ‘absl’
      /usr/include/re2/re2.h:819:47: error: template argument 1 is invalid
        819 | template <> struct Parse3ary<absl::string_view> : public std::true_type {};
            |                                               ^
      /usr/include/re2/re2.h:844:46: error: ‘optional’ is not a member of ‘absl’
        844 | template <typename T> struct Parse3ary<absl::optional<T>> : public Parse3ary<T> {};
            |                                              ^~~~~~~~
      /usr/include/re2/re2.h:844:46: error: ‘optional’ is not a member of ‘absl’
      /usr/include/re2/re2.h:844:55: error: template argument 1 is invalid
        844 | template <typename T> struct Parse3ary<absl::optional<T>> : public Parse3ary<T> {};
            |                                                       ^
      /usr/include/re2/re2.h:844:56: error: expected unqualified-id before ‘>’ token
        844 | template <typename T> struct Parse3ary<absl::optional<T>> : public Parse3ary<T> {};
            |                                                        ^~
      /usr/include/re2/re2.h:845:46: error: ‘optional’ is not a member of ‘absl’
        845 | template <typename T> struct Parse4ary<absl::optional<T>> : public Parse4ary<T> {};
            |                                              ^~~~~~~~
      /usr/include/re2/re2.h:845:46: error: ‘optional’ is not a member of ‘absl’
      /usr/include/re2/re2.h:845:55: error: template argument 1 is invalid
        845 | template <typename T> struct Parse4ary<absl::optional<T>> : public Parse4ary<T> {};
            |                                                       ^
      /usr/include/re2/re2.h:845:56: error: expected unqualified-id before ‘>’ token
        845 | template <typename T> struct Parse4ary<absl::optional<T>> : public Parse4ary<T> {};
            |                                                        ^~
      /usr/include/re2/re2.h:848:45: error: ‘absl::optional’ has not been declared
        848 | bool Parse(const char* str, size_t n, absl::optional<T>* dest) {
            |                                             ^~~~~~~~
      /usr/include/re2/re2.h:848:53: error: expected ‘,’ or ‘...’ before ‘<’ token
        848 | bool Parse(const char* str, size_t n, absl::optional<T>* dest) {
            |                                                     ^
      /usr/include/re2/re2.h: In function ‘bool re2::re2_internal::Parse(const char*, size_t, int)’:
      /usr/include/re2/re2.h:850:9: error: ‘dest’ was not declared in this scope
        850 |     if (dest != NULL)
            |         ^~~~
      /usr/include/re2/re2.h:856:9: error: ‘dest’ was not declared in this scope
        856 |     if (dest != NULL)
            |         ^~~~
      /usr/include/re2/re2.h: At global scope:
      /usr/include/re2/re2.h:864:45: error: ‘absl::optional’ has not been declared
        864 | bool Parse(const char* str, size_t n, absl::optional<T>* dest, int radix) {
            |                                             ^~~~~~~~
      /usr/include/re2/re2.h:864:53: error: expected ‘,’ or ‘...’ before ‘<’ token
        864 | bool Parse(const char* str, size_t n, absl::optional<T>* dest, int radix) {
            |                                                     ^
      /usr/include/re2/re2.h:864:6: error: redefinition of ‘template<class T> bool re2::re2_internal::Parse(const char*, size_t, int)’
        864 | bool Parse(const char* str, size_t n, absl::optional<T>* dest, int radix) {
            |      ^~~~~
      /usr/include/re2/re2.h:848:6: note: ‘template<class T> bool re2::re2_internal::Parse(const char*, size_t, int)’ previously declared here
        848 | bool Parse(const char* str, size_t n, absl::optional<T>* dest) {
            |      ^~~~~
      /usr/include/re2/re2.h: In static member function ‘static void re2::LazyRE2::Init(const re2::LazyRE2*)’:
      /usr/include/re2/re2.h:1019:68: error: no matching function for call to ‘re2::RE2::RE2(const char* const&, const re2::RE2::CannedOptions&)’
       1019 |     lazy_re2->ptr_ = new RE2(lazy_re2->pattern_, lazy_re2->options_);
            |                                                                    ^
      /usr/include/re2/re2.h:285:3: note: candidate: ‘re2::RE2::RE2(const std::string&)’
        285 |   RE2(const std::string& pattern);
            |   ^~~
      /usr/include/re2/re2.h:285:3: note:   candidate expects 1 argument, 2 provided
      /usr/include/re2/re2.h:284:3: note: candidate: ‘re2::RE2::RE2(const char*)’
        284 |   RE2(const char* pattern);
            |   ^~~
      /usr/include/re2/re2.h:284:3: note:   candidate expects 1 argument, 2 provided
      In file included from _re2.cc:38:
      /usr/include/re2/set.h: At global scope:
      /usr/include/re2/set.h:54:17: error: ‘absl::string_view’ has not been declared
         54 |   int Add(absl::string_view pattern, std::string* error);
            |                 ^~~~~~~~~~~
      /usr/include/re2/set.h:65:20: error: ‘absl::string_view’ has not been declared
         65 |   bool Match(absl::string_view text, std::vector<int>* v) const;
            |                    ^~~~~~~~~~~
      /usr/include/re2/set.h:70:20: error: ‘absl::string_view’ has not been declared
         70 |   bool Match(absl::string_view text, std::vector<int>* v,
            |                    ^~~~~~~~~~~
      _re2.cc:40:12: error: ‘StringPiece’ has not been declared in ‘re2’
         40 | using re2::StringPiece;
            |            ^~~~~~~~~~~
      _re2.cc:65:3: error: ‘StringPiece’ does not name a type
         65 |   StringPiece* groups;
            |   ^~~~~~~~~~~
      _re2.cc:111:86: error: ‘StringPiece’ has not been declared
        111 | static PyObject* create_match(PyObject* re, PyObject* string, long pos, long endpos, StringPiece* groups);
            |                                                                                      ^~~~~~~~~~~
      _re2.cc: In function ‘PyObject* create_regexp(PyObject*, PyObject*, PyObject*)’:
      _re2.cc:446:38: error: ‘StringPiece’ was not declared in this scope
        446 |   regexp->re2_obj = new(nothrow) RE2(StringPiece(raw_pattern, (int)len_pattern), options);
            |                                      ^~~~~~~~~~~
      _re2.cc: In function ‘PyObject* _do_search(RegexpObject2*, PyObject*, PyObject*, re2::RE2::Anchor, bool)’:
      _re2.cc:521:3: error: ‘StringPiece’ was not declared in this scope
        521 |   StringPiece* groups = NULL;
            |   ^~~~~~~~~~~
      _re2.cc:521:16: error: ‘groups’ was not declared in this scope; did you mean ‘n_groups’?
        521 |   StringPiece* groups = NULL;
            |                ^~~~~~
            |                n_groups
      _re2.cc:524:27: error: ‘StringPiece’ does not name a type
        524 |     groups = new(nothrow) StringPiece[n_groups];
            |                           ^~~~~~~~~~~
      _re2.cc:548:5: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
        548 |     delete[] groups;
            |     ^~~~~~~~~~~~~~~
      _re2.cc: In function ‘void match_dealloc(MatchObject2*)’:
      _re2.cc:597:18: error: ‘MatchObject2’ {aka ‘struct _MatchObject2’} has no member named ‘groups’
        597 |   delete[] self->groups;
            |                  ^~~~~~
      _re2.cc: At global scope:
      _re2.cc:604:5: error: ‘StringPiece’ has not been declared
        604 |     StringPiece* groups)
            |     ^~~~~~~~~~~
      _re2.cc: In function ‘PyObject* create_match(PyObject*, PyObject*, long int, long int, int*)’:
      _re2.cc:612:10: error: ‘MatchObject2’ {aka ‘struct _MatchObject2’} has no member named ‘groups’
        612 |   match->groups = NULL;
            |          ^~~~~~
      _re2.cc:615:10: error: ‘MatchObject2’ {aka ‘struct _MatchObject2’} has no member named ‘groups’
        615 |   match->groups = groups;
            |          ^~~~~~
      _re2.cc: In function ‘bool _group_span(MatchObject2*, long int, Py_ssize_t*, Py_ssize_t*)’:
      _re2.cc:658:3: error: ‘StringPiece’ was not declared in this scope
        658 |   StringPiece& piece = self->groups[idx];
            |   ^~~~~~~~~~~
      _re2.cc:658:16: error: ‘piece’ was not declared in this scope
        658 |   StringPiece& piece = self->groups[idx];
            |                ^~~~~
      _re2.cc:658:30: error: ‘MatchObject2’ {aka ‘struct _MatchObject2’} has no member named ‘groups’
        658 |   StringPiece& piece = self->groups[idx];
            |                              ^~~~~~
      _re2.cc: In function ‘PyObject* regexp_set_add(RegexpSetObject2*, PyObject*)’:
      _re2.cc:933:36: error: ‘StringPiece’ was not declared in this scope
        933 |   int seq = self->re2_set_obj->Add(StringPiece(raw_pattern, (int)len_pattern), &add_error);
            |                                    ^~~~~~~~~~~
      _re2.cc: In function ‘PyObject* regexp_set_match(RegexpSetObject2*, PyObject*)’:
      _re2.cc:990:43: error: ‘StringPiece’ was not declared in this scope
        990 |   bool matched = self->re2_set_obj->Match(StringPiece(raw_text, (int)len_text), &idxes);
            |                                           ^~~~~~~~~~~
      _re2.cc: In function ‘PyObject* escape(PyObject*, PyObject*)’:
      _re2.cc:1031:34: error: ‘StringPiece’ was not declared in this scope
       1031 |   std::string esc(RE2::QuoteMeta(StringPiece(str, (int)len)));
            |                                  ^~~~~~~~~~~
      _re2.cc: At global scope:
      _re2.cc:602:1: warning: ‘PyObject* create_match(PyObject*, PyObject*, long int, long int, int*)’ defined but not used [-Wunused-function]
        602 | create_match(PyObject* re, PyObject* string,
            | ^~~~~~~~~~~~
      error: command 'gcc' failed with exit status 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for fb-re2
  Running setup.py clean for fb-re2
  Building wheel for wpull (setup.py) ... done
  Created wheel for wpull: filename=wpull-3.0.9-py3-none-any.whl size=681792 sha256=4c9b56f2d9b3a837b89e5c45bc432a60f90b2740fe9ee9418a4af5ecee92dbcf
  Stored in directory: /tmp/pip-ephem-wheel-cache-32gv35zp/wheels/f7/bc/04/560151d39f165759bf4cad45339f4a45a74b1282a30a8a338f
Successfully built grab-site wpull
Failed to build fb-re2
ERROR: Could not build wheels for fb-re2, which is required to install pyproject.toml-based projects
@nativeit
Copy link

I got the same output on M1 MacOS Sonoma 14.4:

DEPRECATION: --no-binary currently disables reading from the cache of locally built wheels. In the future --no-binary will not influence the wheel cache. pip 23.1 will enforce this behaviour change. A possible replacement is to use the --no-cache-dir option. You can use the flag --use-feature=no-binary-enable-wheel-cache to test the upcoming behaviour. Discussion can be found at https://github.com/pypa/pip/issues/11453
Collecting git+https://github.com/ArchiveTeam/grab-site
  Cloning https://github.com/ArchiveTeam/grab-site to /private/var/folders/4r/mz51ft9549z3wpn_472wpc440000gn/T/pip-req-build-pbhy4ni9
  Running command git clone --filter=blob:none --quiet https://github.com/ArchiveTeam/grab-site /private/var/folders/4r/mz51ft9549z3wpn_472wpc440000gn/T/pip-req-build-pbhy4ni9
  Resolved https://github.com/ArchiveTeam/grab-site to commit 8016234f3b0cac0e275137c977d6d177dbc34f2a
  Preparing metadata (setup.py) ... done
Collecting wpull@ https://github.com/ArchiveTeam/ludios_wpull/archive/refs/tags/3.0.9.zip
  Using cached https://github.com/ArchiveTeam/ludios_wpull/archive/refs/tags/3.0.9.zip
  Preparing metadata (setup.py) ... done
Collecting click>=6.3
  Using cached click-8.1.7-py3-none-any.whl (97 kB)
Collecting manhole>=1.0.0
  Using cached manhole-1.8.0-py2.py3-none-any.whl (16 kB)
Collecting lmdb>=0.89
  Using cached lmdb-1.4.1.tar.gz (881 kB)
  Preparing metadata (setup.py) ... done
Collecting autobahn>=0.12.1
  Using cached autobahn-23.1.2.tar.gz (480 kB)
  Preparing metadata (setup.py) ... done
Collecting fb-re2>=1.0.6
  Using cached fb-re2-1.0.7.tar.gz (9.4 kB)
  Preparing metadata (setup.py) ... done
Collecting websockets>=6.0
  Using cached websockets-12.0-cp38-cp38-macosx_11_0_arm64.whl (121 kB)
Collecting cchardet>=1.0.0
  Using cached cchardet-2.1.7.tar.gz (653 kB)
  Preparing metadata (setup.py) ... done
Collecting txaio>=21.2.1
  Using cached txaio-23.1.1-py2.py3-none-any.whl (30 kB)
Collecting cryptography>=3.4.6
  Using cached cryptography-42.0.5-cp37-abi3-macosx_10_12_universal2.whl (5.9 MB)
Collecting hyperlink>=21.0.0
  Using cached hyperlink-21.0.0-py2.py3-none-any.whl (74 kB)
Requirement already satisfied: setuptools in ./lib/python3.8/site-packages (from autobahn>=0.12.1->grab-site==2.2.7) (56.0.0)
Collecting chardet
  Using cached chardet-5.2.0-py3-none-any.whl (199 kB)
Collecting dnspython
  Using cached dnspython-2.6.1-py3-none-any.whl (307 kB)
Collecting html5-parser
  Using cached html5-parser-0.4.12.tar.gz (270 kB)
  Preparing metadata (setup.py) ... done
Collecting lxml
  Using cached lxml-5.1.0.tar.gz (3.8 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting namedlist
  Using cached namedlist-1.8-py2.py3-none-any.whl (15 kB)
Collecting sqlalchemy==1.3.24
  Using cached SQLAlchemy-1.3.24.tar.gz (6.4 MB)
  Preparing metadata (setup.py) ... done
Collecting tornado==4.5.3
  Using cached tornado-4.5.3.tar.gz (484 kB)
  Preparing metadata (setup.py) ... done
Collecting yapsy
  Using cached Yapsy-1.12.2.tar.gz (83 kB)
  Preparing metadata (setup.py) ... done
Collecting cffi>=1.12
  Using cached cffi-1.16.0-cp38-cp38-macosx_14_0_arm64.whl
Collecting idna>=2.5
  Using cached idna-3.6-py3-none-any.whl (61 kB)
Collecting pycparser
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Building wheels for collected packages: lxml
  Building wheel for lxml (pyproject.toml) ... done
  Created wheel for lxml: filename=lxml-5.1.0-cp38-cp38-macosx_14_0_arm64.whl size=1584683 sha256=66b471407fb78d0fad1a3606d7e00f488ac3f2470fc5df5a66bcdd14f0a17b11
  Stored in directory: /Users/stephen/Library/Caches/pip/wheels/5b/e1/b0/9e666f24f6a7ea981d14232dc692498adf51461c15f16a9723
Successfully built lxml
Installing collected packages: yapsy, tornado, namedlist, lmdb, fb-re2, cchardet, websockets, txaio, sqlalchemy, pycparser, manhole, lxml, idna, dnspython, click, chardet, hyperlink, html5-parser, cffi, wpull, cryptography, autobahn, grab-site
  DEPRECATION: yapsy is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for yapsy ... done
  DEPRECATION: tornado is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for tornado ... done
  DEPRECATION: lmdb is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for lmdb ... done
  DEPRECATION: fb-re2 is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for fb-re2 ... error
  error: subprocess-exited-with-error

  × Running setup.py install for fb-re2 did not run successfully.
  │ exit code: 1
  ╰─> [148 lines of output]
      running install
      running build
      running build_py
      creating build
      creating build/lib.macosx-14-arm64-3.8
      copying re2.py -> build/lib.macosx-14-arm64-3.8
      running build_ext
      building '_re2' extension
      creating build/temp.macosx-14-arm64-3.8
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I/opt/homebrew/opt/openjdk/include:-I/opt/homebrew/opt/ruby/include -I/opt/homebrew/include -I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/tcl-tk/include/tcl-tk -I/Users/stephen/.local/bin/gs-venv/include -I/opt/homebrew/Cellar/[email protected]/3.8.19/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c _re2.cc -o build/temp.macosx-14-arm64-3.8/_re2.o -std=c++11
      In file included from _re2.cc:37:
      In file included from /opt/homebrew/include/re2/re2.h:222:
      In file included from /opt/homebrew/include/absl/base/call_once.h:34:
      In file included from /opt/homebrew/include/absl/base/internal/invoke.h:40:
      In file included from /opt/homebrew/include/absl/base/config.h:92:
      /opt/homebrew/include/absl/base/policy_checks.h:79:2: error: "C++ versions less than C++14 are not supported."
      #error "C++ versions less than C++14 are not supported."
       ^
      In file included from _re2.cc:37:
      In file included from /opt/homebrew/include/re2/re2.h:222:
      In file included from /opt/homebrew/include/absl/base/call_once.h:35:
      In file included from /opt/homebrew/include/absl/base/internal/low_level_scheduling.h:21:
      In file included from /opt/homebrew/include/absl/base/internal/raw_logging.h:27:
      /opt/homebrew/include/absl/base/log_severity.h:102:3: warning: use of this statement in a constexpr function is a C++14 extension [-Wc++14-extensions]
        switch (s) {
        ^
      /opt/homebrew/include/absl/base/log_severity.h:108:3: warning: multiple return statements in constexpr function is a C++14 extension [-Wc++14-extensions]
        return "UNKNOWN";
        ^
      /opt/homebrew/include/absl/base/log_severity.h:103:36: note: previous return statement is here
          case absl::LogSeverity::kInfo: return "INFO";
                                         ^
      /opt/homebrew/include/absl/base/log_severity.h:104:39: note: previous return statement is here
          case absl::LogSeverity::kWarning: return "WARNING";
                                            ^
      /opt/homebrew/include/absl/base/log_severity.h:105:37: note: previous return statement is here
          case absl::LogSeverity::kError: return "ERROR";
                                          ^
      /opt/homebrew/include/absl/base/log_severity.h:106:37: note: previous return statement is here
          case absl::LogSeverity::kFatal: return "FATAL";
                                          ^
      /opt/homebrew/include/absl/base/log_severity.h:116:21: warning: variable declaration in a constexpr function is a C++14 extension [-Wc++14-extensions]
        absl::LogSeverity n = s;
                          ^
      /opt/homebrew/include/absl/base/log_severity.h:117:3: warning: use of this statement in a constexpr function is a C++14 extension [-Wc++14-extensions]
        if (n < absl::LogSeverity::kInfo) n = absl::LogSeverity::kInfo;
        ^
      In file included from _re2.cc:37:
      In file included from /opt/homebrew/include/re2/re2.h:222:
      In file included from /opt/homebrew/include/absl/base/call_once.h:40:
      In file included from /opt/homebrew/include/absl/base/nullability.h:153:
      /opt/homebrew/include/absl/base/internal/nullability_impl.h:40:16: warning: variable templates are a C++14 extension [-Wc++14-extensions]
      constexpr bool IsSupportedType = IsNullabilityCompatible<T>::value;
                     ^
      /opt/homebrew/include/absl/base/internal/nullability_impl.h:56:55: error: no template named 'remove_cv_t' in namespace 'std'; did you mean simply 'remove_cv_t'?
        static_assert(nullability_internal::IsSupportedType<std::remove_cv_t<T>>,
                                                            ^~~~~~~~~~~~~~~~
                                                            remove_cv_t
      /opt/homebrew/include/absl/meta/type_traits.h:238:1: note: 'remove_cv_t' declared here
      using remove_cv_t = typename std::remove_cv<T>::type;
      ^
      In file included from _re2.cc:37:
      In file included from /opt/homebrew/include/re2/re2.h:222:
      In file included from /opt/homebrew/include/absl/base/call_once.h:40:
      In file included from /opt/homebrew/include/absl/base/nullability.h:153:
      /opt/homebrew/include/absl/base/internal/nullability_impl.h:64:55: error: no template named 'remove_cv_t' in namespace 'std'; did you mean simply 'remove_cv_t'?
        static_assert(nullability_internal::IsSupportedType<std::remove_cv_t<T>>,
                                                            ^~~~~~~~~~~~~~~~
                                                            remove_cv_t
      /opt/homebrew/include/absl/meta/type_traits.h:238:1: note: 'remove_cv_t' declared here
      using remove_cv_t = typename std::remove_cv<T>::type;
      ^
      In file included from _re2.cc:37:
      In file included from /opt/homebrew/include/re2/re2.h:222:
      In file included from /opt/homebrew/include/absl/base/call_once.h:40:
      In file included from /opt/homebrew/include/absl/base/nullability.h:153:
      /opt/homebrew/include/absl/base/internal/nullability_impl.h:72:55: error: no template named 'remove_cv_t' in namespace 'std'; did you mean simply 'remove_cv_t'?
        static_assert(nullability_internal::IsSupportedType<std::remove_cv_t<T>>,
                                                            ^~~~~~~~~~~~~~~~
                                                            remove_cv_t
      /opt/homebrew/include/absl/meta/type_traits.h:238:1: note: 'remove_cv_t' declared here
      using remove_cv_t = typename std::remove_cv<T>::type;
      ^
      In file included from _re2.cc:37:
      In file included from /opt/homebrew/include/re2/re2.h:224:
      In file included from /opt/homebrew/include/absl/types/optional.h:39:
      /opt/homebrew/include/absl/utility/utility.h:54:12: error: no member named 'index_sequence' in namespace 'std'
      using std::index_sequence;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:55:12: error: no member named 'index_sequence_for' in namespace 'std'
      using std::index_sequence_for;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:56:12: error: no member named 'integer_sequence' in namespace 'std'; did you mean '__integer_sequence'?
      using std::integer_sequence;
            ~~~~~^~~~~~~~~~~~~~~~
                 __integer_sequence
      /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__utility/integer_sequence.h:25:8: note: '__integer_sequence' declared here
      struct __integer_sequence {
             ^
      In file included from _re2.cc:37:
      In file included from /opt/homebrew/include/re2/re2.h:224:
      In file included from /opt/homebrew/include/absl/types/optional.h:39:
      /opt/homebrew/include/absl/utility/utility.h:57:12: error: no member named 'make_index_sequence' in namespace 'std'
      using std::make_index_sequence;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:58:12: error: no member named 'make_integer_sequence' in namespace 'std'; did you mean '__integer_sequence'?
      using std::make_integer_sequence;
            ~~~~~^~~~~~~~~~~~~~~~~~~~~
                 __integer_sequence
      /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__utility/integer_sequence.h:25:8: note: '__integer_sequence' declared here
      struct __integer_sequence {
             ^
      In file included from _re2.cc:37:
      In file included from /opt/homebrew/include/re2/re2.h:224:
      In file included from /opt/homebrew/include/absl/types/optional.h:39:
      /opt/homebrew/include/absl/utility/utility.h:82:12: error: no member named 'in_place_t' in namespace 'std'
      using std::in_place_t;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:83:12: error: no member named 'in_place' in namespace 'std'
      using std::in_place;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:99:12: error: no member named 'in_place_type' in namespace 'std'
      using std::in_place_type;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:100:12: error: no member named 'in_place_type_t' in namespace 'std'
      using std::in_place_type_t;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:116:12: error: no member named 'in_place_index' in namespace 'std'
      using std::in_place_index;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:117:12: error: no member named 'in_place_index_t' in namespace 'std'
      using std::in_place_index_t;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:156:49: error: no template named 'index_sequence'
      auto apply_helper(Functor&& functor, Tuple&& t, index_sequence<Indexes...>)
                                                      ^
      /opt/homebrew/include/absl/utility/utility.h:210:15: error: no member named 'make_index_sequence' in namespace 'absl'
              absl::make_index_sequence<std::tuple_size<
              ~~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:211:64: error: initializer list cannot be used on the right hand side of operator '>'
                  typename std::remove_reference<Tuple>::type>::value>{})) {
                                                                     ^~~
      /opt/homebrew/include/absl/utility/utility.h:214:13: error: no member named 'make_index_sequence' in namespace 'absl'
            absl::make_index_sequence<std::tuple_size<
            ~~~~~~^
      fatal error: too many errors emitted, stopping now [-ferror-limit=]
      5 warnings and 20 errors generated.
      error: command 'clang' failed with exit status 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> fb-re2

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

[notice] A new release of pip is available: 23.0.1 -> 24.0
[notice] To update, run: pip install --upgrade pip

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

2 participants