Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. error: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20'
Forum Updated to NodeBB v4.3 + New Features

error: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20'

Scheduled Pinned Locked Moved Solved Mobile and Embedded
24 Posts 4 Posters 16.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H huck

    @JiujiuTong said in error: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20':

    ERROR: detected a std::atomic implementation that fails for function pointers.

    hello, I got the same problem as you did

    ERROR: detected a std::atomic implementation that fails for function pointers.

    How did your solve it, please?

    J Offline
    J Offline
    JiujiuTong
    wrote on last edited by JiujiuTong
    #15

    @huck
    recompile QT with arm-rpi-4.9.3-linux-gnueabihf tool

    H 1 Reply Last reply
    0
    • J JiujiuTong

      @huck
      recompile QT with arm-rpi-4.9.3-linux-gnueabihf tool

      H Offline
      H Offline
      huck
      wrote on last edited by
      #16

      @JiujiuTong said in error: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20':

      ith arm-rpi-4.9.3-linux-gnueabihf tool

      i am not compile qt yet, just in ./configure stage. by the way is arm-rpi-4.9.3-linux-gnueabihf a must?

      J 1 Reply Last reply
      0
      • H huck

        @JiujiuTong said in error: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20':

        ith arm-rpi-4.9.3-linux-gnueabihf tool

        i am not compile qt yet, just in ./configure stage. by the way is arm-rpi-4.9.3-linux-gnueabihf a must?

        J Offline
        J Offline
        JiujiuTong
        wrote on last edited by JiujiuTong
        #17

        @huck
        do you mean that the error happens when you run ./configure ? can you past the error information ?

        H 1 Reply Last reply
        0
        • J JiujiuTong

          @huck
          do you mean that the error happens when you run ./configure ? can you past the error information ?

          H Offline
          H Offline
          huck
          wrote on last edited by
          #18

          @JiujiuTong yes , in configure run. and I am using imx6, instead of raspberry

          Proprietary Codecs ..................... no
          Spellchecker ........................... yes
          ALSA ................................... no
          PulseAudio ............................. no

          Note: QtSerialBus: Cannot find linux/can.h and linux/can/raw.h Linux headers for socketCAN support.

          Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.

          WARNING: No QPA platform plugin enabled! This will
          produce a Qt that cannot run GUI applications.
          The dependencies needed for xcb to build are listed in
          src/plugins/platforms/xcb/README

          ERROR: detected a std::atomic implementation that fails for function pointers.
          Please apply the patch corresponding to your Standard Library vendor, found in
          qtbase/config.tests/common/atomicfptr

          J 1 Reply Last reply
          0
          • H huck

            @JiujiuTong yes , in configure run. and I am using imx6, instead of raspberry

            Proprietary Codecs ..................... no
            Spellchecker ........................... yes
            ALSA ................................... no
            PulseAudio ............................. no

            Note: QtSerialBus: Cannot find linux/can.h and linux/can/raw.h Linux headers for socketCAN support.

            Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.

            WARNING: No QPA platform plugin enabled! This will
            produce a Qt that cannot run GUI applications.
            The dependencies needed for xcb to build are listed in
            src/plugins/platforms/xcb/README

            ERROR: detected a std::atomic implementation that fails for function pointers.
            Please apply the patch corresponding to your Standard Library vendor, found in
            qtbase/config.tests/common/atomicfptr

            J Offline
            J Offline
            JiujiuTong
            wrote on last edited by
            #19

            @huck
            sorry, it's not the same phenomenon...
            @SGaist @jsulm
            we need your helps :)

            H 1 Reply Last reply
            0
            • J JiujiuTong

              @huck
              sorry, it's not the same phenomenon...
              @SGaist @jsulm
              we need your helps :)

              H Offline
              H Offline
              huck
              wrote on last edited by
              #20

              @JiujiuTong VC 10 VC 11 GCC 4.6 GCC 4.7 替代方案
              Reworded sequence points No No No No
              Atomics No Yes No Yes Boost.Atomic

              I think my gcc does not supoort “std::atomic”

              thank you all the same

              jsulmJ 1 Reply Last reply
              0
              • H huck

                @JiujiuTong VC 10 VC 11 GCC 4.6 GCC 4.7 替代方案
                Reworded sequence points No No No No
                Atomics No Yes No Yes Boost.Atomic

                I think my gcc does not supoort “std::atomic”

                thank you all the same

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #21

                @huck You should execute configure with -v and post the actual compiler error.
                What is you GCC version?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                H 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @huck You should execute configure with -v and post the actual compiler error.
                  What is you GCC version?

                  H Offline
                  H Offline
                  huck
                  wrote on last edited by
                  #22

                  @jsulm said in error: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20':

                  uld execute configure with -v and post the actu

                  I did add -v in ./configure . I didn't make it yet, so this is the whole info
                  my gcc 4.6.2

                  1 Reply Last reply
                  0
                  • SGaistS SGaist

                    You're welcome !

                    Since you have it working now please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)

                    J Offline
                    J Offline
                    JiujiuTong
                    wrote on last edited by JiujiuTong
                    #23

                    @SGaist
                    another question:
                    do you think the tools list below can be used for raspberry pi3?
                    https://releases.linaro.org/components/toolchain/binaries/5.4-2017.01/arm-linux-gnueabihf/
                    for example gcc-linaro-5.4.1-2017.01-x86_64_arm-linux-gnueabihf.tar.xz seems like a new tool.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #24

                      @huck likely too old

                      @JiujiuTong you can give it try.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved