Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-93294

When using clang to build on Linux it will fail due to the atomic library not being linked against

    XMLWordPrintable

Details

    • Linux/X11

    Description

      When using clang to build on Linux it will fail due to the atomic library not being linked against. It needs to be added to the core_module.pro so that it will build. The error is:

      /usr/bin/ld: /home/holg/development/lib/qt-everywhere-src-5.15.3/qtwebengine/src/core/release/obj/base/base/base_jumbo_28.o: in
      function `base::internal::ThreadGroupImpl::IncrementTasksRunningLockRequired(base::TaskPriority)': base_jumbo_28.cc:(.text._ZN4base8internal15ThreadGroupImpl33IncrementTasksRunningLockRequiredENS_12TaskPriorityE+0x85): undefined reference to `__atomic_store_2'
      /usr/bin/ld: /home/holg/development/lib/qt-everywhere-src-5.15.3/qtwebengine/src/core/release/obj/base/base/base_jumbo_28.o: in function `base::internal::ThreadGroupImpl::DecrementTasksRunningLockRequired(base::TaskPriority)': base_jumbo_28.cc:(.text._ZN4base8internal15ThreadGroupImpl33DecrementTasksRunningLockRequiredENS_12TaskPriorityE+0x85): undefined reference to `__atomic_store_2'
      /usr/bin/ld: /home/holg/development/lib/qt-everywhere-src-5.15.3/qtwebengine/src/core/release/obj/base/base/base_jumbo_28.o: in function `base::internal::ThreadGroupImpl::WorkerThreadDelegateImpl::BlockingStarted(base::BlockingType)': base_jumbo_28.cc:(.text._ZN4base8internal15ThreadGroupImpl24WorkerThreadDelegateImpl15BlockingStartedENS_12BlockingTypeE+0x160): undefined reference to `__atomic_store_2'
      /usr/bin/ld: /home/holg/development/lib/qt-everywhere-src-5.15.3/qtwebengine/src/core/release/obj/base/base/base_jumbo_28.o: in
      function `base::internal::ThreadGroupImpl::WorkerThreadDelegateImpl::BlockingTypeUpgraded()': base_jumbo_28.cc:(.text._ZN4base8internal15ThreadGroupImpl24WorkerThreadDelegateImpl20BlockingTypeUpgradedEv+0x133): undefined reference to `__atomic_store_2'
      /usr/bin/ld: /home/holg/development/lib/qt-everywhere-src-5.15.3/qtwebengine/src/core/release/obj/base/base/base_jumbo_28.o: in function `base::internal::ThreadGroupImpl::WorkerThreadDelegateImpl::BlockingEnded()':
      base_jumbo_28.cc:(.text._ZN4base8internal15ThreadGroupImpl24WorkerThreadDelegateImpl13BlockingEndedEv+0xa8): undefined reference to`__atomic_store_2'
      /usr/bin/ld: /home/holg/development/lib/qt-everywhere-src-5.15.3/qtwebengine/src/core/release/obj/base/base/base_jumbo_28.o:base_
      jumbo_28.cc:(.text._ZN4base8internal15ThreadGroupImpl24WorkerThreadDelegateImpl13BlockingEndedEv+0x133): more undefined references to `__atomic_store_2' follow
      /usr/bin/ld: /home/holg/development/lib/qt-everywhere-src-5.15.3/qtwebengine/src/core/release/obj/base/base/base_jumbo_28.o: in function `base::internal::ThreadPoolImpl::ShouldYield(base::internal::TaskSource const*) const':
      base_jumbo_28.cc:(.text._ZNK4base8internal14ThreadPoolImpl11ShouldYieldEPKNS0_10TaskSourceE+0x135): undefined reference to `__atomic_load_2' clang-9.0: error: linker command failed with exit code 1 (use -v to see invocation)
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kiburtse Kirill Burtsev
            andysh Andy Shaw
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes