Skip to content

ReadTheDocs builds are broken #114

@bbayles

Description

@bbayles

Here's the error:


reading manifest template 'MANIFEST.in'
warning: no files found matching 'ada_url/*.c'
warning: no previously-included files found matching 'ada_url/*.o'
warning: no previously-included files found matching 'ada_url/_ada_wrapper.*'
adding license file 'LICENSE'
writing manifest file 'ada_url.egg-info/SOURCES.txt'
copying ada_url/ada.cpp -> build/lib.linux-x86_64-cpython-311/ada_url
copying ada_url/ada.h -> build/lib.linux-x86_64-cpython-311/ada_url
copying ada_url/ada_c.h -> build/lib.linux-x86_64-cpython-311/ada_url
copying ada_url/py.typed -> build/lib.linux-x86_64-cpython-311/ada_url
running build_ext
generating cffi module 'build/temp.linux-x86_64-cpython-311/ada_url._ada_wrapper.c'
creating build/temp.linux-x86_64-cpython-311
creating build/temp.linux-x86_64-cpython-311/ada_url
g++ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DADA_INCLUDE_URL_PATTERN=0 -I./ada_url -I/home/docs/checkouts/readthedocs.org/user_builds/ada-url/envs/stable/include -I/home/docs/.asdf/installs/python/3.11.12/include/python3.11 -c ada_url/ada.cpp -o build/temp.linux-x86_64-cpython-311/ada_url/ada.o -std=c++20
In file included from ada_url/ada.cpp:3:
ada_url/ada.h: In member function ‘constexpr std::string_view ada::url::get_pathname() const’:
ada_url/ada.h:6633:10: error: call to non-‘constexpr’ function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_type() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_type = std::basic_string_view<char>]’
 6633 |   return path;
      |          ^~~~
In file included from /usr/include/c++/11/string:55,
                 from ada_url/ada.h:20,
                 from ada_url/ada.cpp:3:
/usr/include/c++/11/bits/basic_string.h:806:7: note: ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_type() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_type = std::basic_string_view<char>]’ declared here
  806 |       operator __sv_type() const noexcept
      |       ^~~~~~~~
In file included from ada_url/ada.cpp:3:
ada_url/ada.h: In member function ‘virtual constexpr void ada::url::clear_pathname()’:
ada_url/ada.h:6741:50: error: call to non-‘constexpr’ function ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::clear() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
 6741 | constexpr void url::clear_pathname() { path.clear(); }
      |                                        ~~~~~~~~~~^~
In file included from /usr/include/c++/11/string:55,
                 from ada_url/ada.h:20,
                 from ada_url/ada.cpp:3:
/usr/include/c++/11/bits/basic_string.h:1015:7: note: ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::clear() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ declared here
 1015 |       clear() _GLIBCXX_NOEXCEPT
      |       ^~~~~
In file included from ada_url/ada.cpp:3:
ada_url/ada.h: In member function ‘constexpr void ada::url::copy_scheme(ada::url&&)’:
ada_url/ada.h:6764:26: error: call to non-‘constexpr’ function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
 6764 |   non_special_scheme = u.non_special_scheme;
      |                          ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from ada_url/ada.h:20,
                 from ada_url/ada.cpp:3:
/usr/include/c++/11/bits/basic_string.h:679:7: note: ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ declared here
  679 |       operator=(const basic_string& __str)
      |       ^~~~~~~~
In file included from ada_url/ada.cpp:3:
ada_url/ada.h: In member function ‘constexpr void ada::url::copy_scheme(const ada::url&)’:
ada_url/ada.h:6769:26: error: call to non-‘constexpr’ function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
 6769 |   non_special_scheme = u.non_special_scheme;
      |                          ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from ada_url/ada.h:20,
                 from ada_url/ada.cpp:3:
/usr/include/c++/11/bits/basic_string.h:679:7: note: ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ declared here
  679 |       operator=(const basic_string& __str)
      |       ^~~~~~~~
In file included from ada_url/ada.cpp:3:
ada_url/ada.h: In member function ‘virtual constexpr void ada::url_aggregator::clear_pathname()’:
ada_url/ada.h:7944:47: error: call to non-‘constexpr’ function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’
 7944 |   uint32_t ending_index = uint32_t(buffer.size());
      |                                    ~~~~~~~~~~~^~
In file included from /usr/include/c++/11/string:55,
                 from ada_url/ada.h:20,
                 from ada_url/ada.cpp:3:
/usr/include/c++/11/bits/basic_string.h:920:7: note: ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’ declared here
  920 |       size() const _GLIBCXX_NOEXCEPT
      |       ^~~~
In file included from ada_url/ada.cpp:3:
ada_url/ada.h: In member function ‘constexpr void ada::url_aggregator::reserve(uint32_t)’:
ada_url/ada.h:8076:17: error: call to non-‘constexpr’ function ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reserve(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’
 8076 |   buffer.reserve(capacity);
      |   ~~~~~~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/11/string:56,
                 from ada_url/ada.h:20,
                 from ada_url/ada.cpp:3:
/usr/include/c++/11/bits/basic_string.tcc:280:5: note: ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reserve(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’ declared here
  280 |     basic_string<_CharT, _Traits, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ada_url/ada.cpp:3:
ada_url/ada.h: In member function ‘constexpr std::string_view ada::url_aggregator::get_href() const’:
ada_url/ada.h:8155:10: error: call to non-‘constexpr’ function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_type() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_type = std::basic_string_view<char>]’
 8155 |   return buffer;
      |          ^~~~~~
In file included from /usr/include/c++/11/string:55,
                 from ada_url/ada.h:20,
                 from ada_url/ada.cpp:3:
/usr/include/c++/11/bits/basic_string.h:806:7: note: ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_type() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_type = std::basic_string_view<char>]’ declared here
  806 |       operator __sv_type() const noexcept
      |       ^~~~~~~~
In file included from ada_url/ada.cpp:3:
ada_url/ada.h: In member function ‘constexpr void ada::url_aggregator::set_protocol_as_file()’:
ada_url/ada.h:8205:19: error: call to non-‘constexpr’ function ‘bool std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::empty() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
 8205 |   if (buffer.empty()) {
      |       ~~~~~~~~~~~~^~
In file included from /usr/include/c++/11/string:55,
                 from ada_url/ada.h:20,
                 from ada_url/ada.cpp:3:
/usr/include/c++/11/bits/basic_string.h:1023:7: note: ‘bool std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::empty() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ declared here
 1023 |       empty() const _GLIBCXX_NOEXCEPT
      |       ^~~~~
In file included from ada_url/ada.cpp:3:
ada_url/ada.h: In member function ‘constexpr std::string_view ada::url_aggregator::get_pathname() const’:
ada_url/ada.h:8403:43: error: call to non-‘constexpr’ function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’
 8403 |   auto ending_index = uint32_t(buffer.size());
      |                                ~~~~~~~~~~~^~
In file included from /usr/include/c++/11/string:55,
                 from ada_url/ada.h:20,
                 from ada_url/ada.cpp:3:
/usr/include/c++/11/bits/basic_string.h:920:7: note: ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’ declared here
  920 |       size() const _GLIBCXX_NOEXCEPT
      |       ^~~~
error: command '/usr/bin/g++' failed with exit code 1
ERROR Backend subprocess exited when trying to invoke build_wheel
make: *** [Makefile:36: package] Error 1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions