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

Linker error: undefined reference to `__mulodi4'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 6.1
    • Core: Other
    • None
    • Ubuntu 18.04 LTS 32 bit
      clang 9.0.0

    Description

      1. Configure qtbase on a 32-bit machine.
        I used:
        ~/dev/src/qtbase/configure -platform linux-clang-libc++ -no-opengl -sanitize address -opensource -confirm-license -developer-build
        
      2. Try building this.
        I used:
        cmake --build .
        

        The build will fail:

        [  3%] Linking CXX executable ../../../bin/moc
        ../bootstrap/libBootstrap.a(qdatetime.cpp.o): In function `_Z12qMulOverflowIxENSt9enable_ifIXoosr3stdE13is_unsigned_vIT_Esr3stdE11is_signed_vIS1_EEbE4typeES1_S1_PS1_':
        /home/qtrob/dev/clang-9.0.0/qtbase/include/QtCore/../../../../src/qtbase/src/corelib/global/qnumeric.h:122: undefined reference to `__mulodi4'
        clang: error: linker command failed with exit code 1 (use -v to see invocation)
        src/tools/moc/CMakeFiles/moc.dir/build.make:193: recipe for target 'bin/moc' failed
        make[2]: *** [bin/moc] Error 1
        CMakeFiles/Makefile2:19376: recipe for target 'src/tools/moc/CMakeFiles/moc.dir/all' failed
        make[1]: *** [src/tools/moc/CMakeFiles/moc.dir/all] Error 2
        Makefile:159: recipe for target 'all' failed
        make: *** [all] Error 2
        

        I attached the full logs.

      On a 64-bit machine, this works fine.

      Attachments

        1. build.log
          17 kB
        2. configure.log
          50 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes