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

Linux on Arm fails with '-headersclean' in global/qfloat16.h

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.7.1, 6.8.0 FF
    • 6.7.0 RC, 6.7
    • Core: Other
    • None
    • Linux/Wayland
    • 58796ac17 (dev), fa601afd5 (6.7), 5b2640540 (6.6)

    Description

      Adding '-headersclean' configure argument for CI's Linux on Arm build config, it fails with warnings in corelib/global/qfloat16.h

        /home/qt/work/qt/qtbase/src/corelib/global/qfloat16.h: In function
        ‘qfloat16::NativeType operator+(qfloat16, qfloat16::NativeType)’:
        /home/qt/work/qt/qtbase/src/corelib/global/qfloat16.h:178:31: error:
        conversion from ‘float’ to ‘qfloat16::NativeType’ {aka
        ‘__fp16’} may change value [-Werror=float-conversion]
          178 |     QF16_MAKE_ARITH_OP_FP(FP, +) \
              |                               ^
        /home/qt/work/qt/qtbase/src/corelib/global/qfloat16.h:172:95: note: in
        definition of macro ‘QF16_MAKE_ARITH_OP_FP’
          172 |     friend inline FP operator OP(qfloat16 lhs, FP rhs) noexcept { return static_cast<FP>(lhs) OP rhs; } \
              |                                                                                               ^~
        /home/qt/work/qt/qtbase/src/corelib/global/qfloat16.h:191:5: note: in
        expansion of macro ‘QF16_MAKE_ARITH_OP’
          191 |     QF16_MAKE_ARITH_OP(NativeType)
              |     ^~~~~~~~~~~~~~~~~~
        /home/qt/work/qt/qtbase/src/corelib/global/qfloat16.h: In function
        ‘qfloat16::NativeType operator+(qfloat16::NativeType, qfloat16)’:
        /home/qt/work/qt/qtbase/src/corelib/global/qfloat16.h:178:31: error:
        conversion from ‘float’ to ‘qfloat16::NativeType’ {aka
        ‘__fp16’} may change value [-Werror=float-conversion]
          178 |     QF16_MAKE_ARITH_OP_FP(FP, +) \
          ...
      
      

      https://testresults.qt.io/coin/api/log/qt/qtbase/81d5d52e391436324f41897b74e89c9bbd08cea3/LinuxDebian_11_6aarch64LinuxDebian_11_6aarch64GCCqtci-linux-Debian-11.6-aarch64-50-5e21ddInsignificantTests_InstallQt5Dependencies_UseConfigure/74c6a302ac16ca0b23c5300080c19a4c4c493230/build_1709883295/log.txt.gz

      Attachments

        For Gerrit Dashboard: QTBUG-123374
        # Subject Branch Project Status CR V

        Activity

          People

            thiago Thiago Macieira
            falt Simo Fält
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes