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

Qt OpcUA fails to build against latest Qt5.git in '5.12'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P0: Blocker
    • Resolution: Done
    • Affects Version/s: 5.12.5
    • Fix Version/s: 5.12.5
    • Component/s: OpcUA
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      From build log:

      /install/mkspecs/linux-g++ ../../src/3rdparty/open62541/open62541.c -o .obj/open62541.o
      agent:2019/08/19 08:50:35 build.go:215: ../../src/3rdparty/open62541/open62541.c: In function ‘UA_findDataType’:
      agent:2019/08/19 08:50:35 build.go:215: ../../src/3rdparty/open62541/open62541.c:5663:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
      agent:2019/08/19 08:50:35 build.go:215: for(size_t i = 0; i < UA_TYPES_COUNT; ++i) {
      agent:2019/08/19 08:50:35 build.go:215: ^
      agent:2019/08/19 08:50:35 build.go:215: ../../src/3rdparty/open62541/open62541.c:5663:5: note: use option -std=c99 or -std=gnu99 to compile your code
      agent:2019/08/19 08:50:35 build.go:215: ../../src/3rdparty/open62541/open62541.c: In function ‘printNumber’:
      agent:2019/08/19 08:50:35 build.go:215: ../../src/3rdparty/open62541/open62541.c:5776:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
      agent:2019/08/19 08:50:35 build.go:215: for(size_t i = digits; i > 0; --i) {
      agent:2019/08/19 08:50:35 build.go:215: ^
      agent:2019/08/19 08:50:35 build.go:215: ../../src/3rdparty/open62541/open62541.c: In function ‘fnv32’:
      agent:2019/08/19 08:50:35 build.go:215: ../../src/3rdparty/open62541/open62541.c:5944:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
      agent:2019/08/19 08:50:35 build.go:215: for(size_t i = 0; i < size; ++i) {
      agent:2019/08/19 08:50:35 build.go:215: ^
      agent:2019/08/19 08:50:35 build.go:215: ../../src/3rdparty/open62541/open62541.c: In function ‘computeStrides’:
      agent:2019/08/19 08:50:35 build.go:215: ../../src/3rdparty/open62541/open62541.c:6137:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
      agent:2019/08/19 08:50:35 build.go:215: for(size_t i = 0; i < dims_count; ++i)

      Issue seems to be in recently added Linux SLES_12 (gcc-x86_64)

        Attachments

        1. buildlog.txt
          300 kB
          Jani Heikkinen
        For Gerrit Dashboard: QTBUG-77667
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              fmeerkoetter Frank Meerkötter
              Reporter:
              janihe Jani Heikkinen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes