Skip to content

Failed building wheel for fb-re2 #239

@10kmotorola

Description

@10kmotorola

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions