Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-4962

Columnstore doesn't build with gcc 12 (on Fedora Rawhide)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 6.2.1
    • 22.08.1
    • Build
    • None

    Description

      Columnstore currently attached to 10.8-based server branches (6.2.1.2 according to VERSION) fails to build on Fedora Rawhide, possibly specific to gcc 12:

      /home/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.8.0/storage/columnstore/columnstore/dbcon/execplan/arithmeticcolumn.cpp: In member function 'const std::string execplan::ArithmeticColumn::nextToken(std::__cxx11::basic_string<char>::size_type&, char) const':
      /home/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.8.0/storage/columnstore/columnstore/dbcon/execplan/arithmeticcolumn.cpp:297:12: error: conversion from 'int' to 'const std::string' {aka 'const std::__cxx11::basic_string<char>'} is ambiguous
        297 |     return 0;
            |            ^
      In file included from /usr/include/c++/12/string:53,
                       from /home/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.8.0/storage/columnstore/columnstore/dbcon/execplan/arithmeticcolumn.cpp:23:
      /usr/include/c++/12/bits/basic_string.h:732:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::nullptr_t = std::nullptr_t]' (deleted)
        732 |       basic_string(nullptr_t) = delete;
            |       ^~~~~~~~~~~~
      /usr/include/c++/12/bits/basic_string.h:634:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
        634 |       basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
            |       ^~~~~~~~~~~~
      

      Attachments

        Issue Links

          Activity

            People

              drrtuy Roman
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.