Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939467 - dev-cpp/cpp-httplib-0.17.2 build failure with GCC 12
Summary: dev-cpp/cpp-httplib-0.17.2 build failure with GCC 12
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Maciej Barć
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-11 11:57 UTC by Risto A. Paju
Modified: 2024-09-11 23:30 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,7.51 KB, text/plain)
2024-09-11 11:57 UTC, Risto A. Paju
Details
Build log (build.log,8.87 KB, text/x-log)
2024-09-11 17:00 UTC, Risto A. Paju
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Risto A. Paju 2024-09-11 11:57:02 UTC
Created attachment 902648 [details]
emerge --info

In file included from /var/tmp/portage/dev-cpp/cpp-httplib-0.17.2/work/cpp-httplib-0.17.2_build-abi_x86_64.amd64/out/httplib.cc:1:
/var/tmp/portage/dev-cpp/cpp-httplib-0.17.2/work/cpp-httplib-0.17.2_build-abi_x86_64.amd64/out/httplib.h: In member function ‘constexpr size_t httplib::detail::case_ignore_hash::operator()(const std::string&) const’:
/var/tmp/portage/dev-cpp/cpp-httplib-0.17.2/work/cpp-httplib-0.17.2_build-abi_x86_64.amd64/out/httplib.h:359:30: error: call to non-‘constexpr’ function ‘const _CharT* std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::data() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
  359 |     return hash_core(key.data(), key.size(), 0);
      |                      ~~~~~~~~^~
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/string:53,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/stdexcept:39,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/system_error:41,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/bits/std_mutex.h:39,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/condition_variable:39,
                 from /var/tmp/portage/dev-cpp/cpp-httplib-0.17.2/work/cpp-httplib-0.17.2_build-abi_x86_64.amd64/out/httplib.h:218:
/usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/bits/basic_string.h:2579:7: note: ‘const _CharT* std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::data() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ declared here
 2579 |       data() const _GLIBCXX_NOEXCEPT
      |       ^~~~
Comment 1 Mike Gilbert gentoo-dev 2024-09-11 16:03:54 UTC
Does it work with GCC 13?
Comment 2 Mike Gilbert gentoo-dev 2024-09-11 16:06:01 UTC
Please attach a full build log.
Comment 3 Risto A. Paju 2024-09-11 17:00:38 UTC
Created attachment 902667 [details]
Build log
Comment 4 Larry the Git Cow gentoo-dev 2024-09-11 23:30:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=276f6598d6558ba0f342c55752bc91c9c6db05f3

commit 276f6598d6558ba0f342c55752bc91c9c6db05f3
Author:     Maciej Barć <xgqt@gentoo.org>
AuthorDate: 2024-09-11 21:22:30 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2024-09-11 23:30:52 +0000

    dev-cpp/cpp-httplib: drop old 0.17.2
    
    Closes: https://bugs.gentoo.org/939467
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 dev-cpp/cpp-httplib/Manifest                  |  1 -
 dev-cpp/cpp-httplib/cpp-httplib-0.17.2.ebuild | 92 ---------------------------
 2 files changed, 93 deletions(-)