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

columnstore-23.02.4 (server 11.2 branch) fails to compile with LTO (default Ubuntu 22.04)

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Blocker
    • Resolution: Unresolved
    • 23.02.4
    • 23.02
    • Build
    • None
    • Ubuntu 22.04 Aarch64

    Description

      The LTO enforces the ODR strictly. The LTO is enabled by default on this distribution.

      Compile failure is observed on Buildbot in the bb-11.2-release branch.

      https://buildbot.mariadb.org/#/builders/357/builds/15633/steps/4/logs/stdio

       
      make[4]: Leaving directory '/home/buildbot/aarch64-ubuntu-2204-deb-autobake/build/builddir'
      ./builddir/storage/columnstore/columnstore/.boost/boost-lib/include/boost/thread/futures/launch.hpp:17:3: error: type ‘struct launch’ violates the C++ One Definition Rule [-Werror=odr]
      ../messageqcpp/./builddir/storage/columnstore/columnstore/.boost/boost-lib/include/boost/thread/futures/launch.hpp:17:3: note: a different type is defined in another translation unit
      ./builddir/storage/columnstore/columnstore/.boost/boost-lib/include/boost/thread/future.hpp:151:16: error: type ‘struct shared_state_base’ violates the C++ One Definition Rule [-Werror=odr]
      ../messageqcpp/./builddir/storage/columnstore/columnstore/.boost/boost-lib/include/boost/thread/future.hpp:151:16: note: a different type is defined in another translation unit
      ./builddir/storage/columnstore/columnstore/.boost/boost-lib/include/boost/thread/future.hpp:164:20: note: the first difference of corresponding definitions is field ‘policy_’
      ../messageqcpp/./builddir/storage/columnstore/columnstore/.boost/boost-lib/include/boost/thread/future.hpp:164:20: note: a field of same name but different type is defined in another translation unit
      ./builddir/storage/columnstore/columnstore/.boost/boost-lib/include/boost/thread/futures/launch.hpp:17:3: note: type ‘struct launch’ itself violates the C++ One Definition Rule
      ../messageqcpp/./builddir/storage/columnstore/columnstore/.boost/boost-lib/include/boost/thread/futures/launch.hpp:17:3: note: the incompatible type is defined here
      ./builddir/storage/columnstore/columnstore/.boost/boost-lib/include/boost/thread/future.hpp:838:16: error: type ‘struct shared_state’ violates the C++ One Definition Rule [-Werror=odr]
      ../messageqcpp/./builddir/storage/columnstore/columnstore/.boost/boost-lib/include/boost/thread/future.hpp:838:16: note: a type with different bases is defined in another translation unit
      ./builddir/storage/columnstore/columnstore/.boost/boost-lib/include/boost/thread/future.hpp:2960:14: error: type ‘struct task_base_shared_state’ violates the C++ One Definition Rule [-Werror=odr]
      ../messageqcpp/./builddir/storage/columnstore/columnstore/.boost/boost-lib/include/boost/thread/future.hpp:2960:14: note: a type with different bases is defined in another translation unit
      ./builddir/storage/columnstore/columnstore/.boost/boost-lib/include/boost/thread/future.hpp:3437:16: error: type ‘struct task_shared_state’ violates the C++ One Definition Rule [-Werror=odr]
      ../messageqcpp/./builddir/storage/columnstore/columnstore/.boost/boost-lib/include/boost/thread/future.hpp:3437:16: note: a type with different bases is defined in another translation unit
      lto1: all warnings being treated as errors
      lto-wrapper: fatal error: /usr/bin/c++ returned 1 exit status
      compilation terminated.
      /usr/bin/ld: error: lto-wrapper failed
      collect2: error: ld returned 1 exit status
      make[4]: *** [storage/columnstore/columnstore/utils/cloudio/CMakeFiles/cloudio.dir/build.make:202: storage/columnstore/columnstore/lib/libcloudio.so] Error 1
      make[3]: *** [CMakeFiles/Makefile2:7327: storage/columnstore/columnstore/utils/cloudio/CMakeFiles/cloudio.dir/all] Error 2
      make[3]: *** Waiting for unfinished jobs.
      
      

      Attachments

        Issue Links

          Activity

            People

              drrtuy Roman
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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