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

Fedora 40 compile error - calloc - transposed args

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 23.10.1
    • 23.10.2
    • writeengine
    • None
    • 2024-1

    Description

      gcc-14.1.1

      /home/buildbot/aarch64-fedora-40-rpm-autobake/build/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/storage/columnstore/columnstore/writeengine/wrapper/writeengine.cpp: In function ‘void WriteEngine::allocateValArray(void*&, std::vector<colTuple_struct>::size_type, ColType, int)’:
      /home/buildbot/aarch64-fedora-40-rpm-autobake/build/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/storage/columnstore/columnstore/writeengine/wrapper/writeengine.cpp:1102:50: error: ‘void* calloc(size_t, size_t)’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
       1102 |     case WriteEngine::WR_TEXT: valArray = calloc(sizeof(char), totalRow * MAX_COLUMN_BOUNDARY); break;
            |                                                  ^~~~~~~~~~~~
      /home/buildbot/aarch64-fedora-40-rpm-autobake/build/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/storage/columnstore/columnstore/writeengine/wrapper/writeengine.cpp:1102:50: note: earlier argument should specify number of elements, later size of each element
      /home/buildbot/aarch64-fedora-40-rpm-autobake/build/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/storage/columnstore/columnstore/writeengine/wrapper/writeengine.cpp:1103:51: error: ‘void* calloc(size_t, size_t)’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
       1103 |     case WriteEngine::WR_TOKEN: valArray = calloc(sizeof(Token), totalRow); break;
            |                                                   ^~~~~~~~~~~~~
      /home/buildbot/aarch64-fedora-40-rpm-autobake/build/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/storage/columnstore/columnstore/writeengine/wrapper/writeengine.cpp:1103:51: note: earlier argument should specify number of elements, later size of each element
      cc1plus: all warnings being treated as errors
      

      ref

      Attachments

        Activity

          People

            leonid.fedorov Leonid Fedorov
            danblack Daniel Black
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.