Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-1567

Compilation errors on s390x platform

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.10.0
    • Fix Version/s: 1.11.0
    • Component/s: Container
    • Labels:
      None

      Description

       [ 21%] Building C object src/CMakeFiles/qpid-dispatch.dir/parse_tree.c.o
      cd /builddir/build/BUILD/qpid-dispatch-1.10.0/src && /usr/bin/cc -Dqpid_dispatch_EXPORTS -I/builddir/build/BUILD/qpid-dispatch-1.10.0/include -I/usr/include/python3.8 -I/builddir/build/BUILD/qpid-dispatch-1.10.0/src -I/builddir/build/BUILD/qpid-dispatch-1.10.0/src/router_core  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -Wno-stringop-overflow -O2 -g -DNDEBUG -fPIC   -Werror -Wall -Wpedantic -std=gnu99 -o CMakeFiles/qpid-dispatch.dir/parse_tree.c.o   -c /builddir/build/BUILD/qpid-dispatch-1.10.0/src/parse_tree.c
      /builddir/build/BUILD/qpid-dispatch-1.10.0/src/parse_tree.c: In function 'normalize_pattern.part.0.isra':
      /builddir/build/BUILD/qpid-dispatch-1.10.0/src/parse_tree.c:88:16: error: 't.separators' may be used uninitialized in this function [-Werror=maybe-uninitialized]
         88 |         tend = strpbrk(t->token.begin, t->separators);
            |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /builddir/build/BUILD/qpid-dispatch-1.10.0/src/parse_tree.c:142:22: note: 't.separators' was declared here
        142 |     token_iterator_t t;
            |                      ^
      /builddir/build/BUILD/qpid-dispatch-1.10.0/src/parse_tree.c:169:43: error: 't.match_1' may be used uninitialized in this function [-Werror=maybe-uninitialized]
        169 |                 *(char *)last_token.begin = t.match_1;
            |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
      /builddir/build/BUILD/qpid-dispatch-1.10.0/src/parse_tree.c: In function 'parse_node_add_pattern':
      /builddir/build/BUILD/qpid-dispatch-1.10.0/src/parse_tree.c:74:24: error: 'tmp.separators' may be used uninitialized in this function [-Werror=maybe-uninitialized]
         74 |     const char *tend = strpbrk(str, t->separators);
            |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      /builddir/build/BUILD/qpid-dispatch-1.10.0/src/parse_tree.c:240:30: note: 'tmp.separators' was declared here
        240 |             token_iterator_t tmp;
            |                              ^~~
      /builddir/build/BUILD/qpid-dispatch-1.10.0/src/parse_tree.c:120:37: error: 'tmp.match_1' may be used uninitialized in this function [-Werror=maybe-uninitialized]
        120 |     return TOKEN_LEN(t->token) == 1 &&
            |                                     ^
      /builddir/build/BUILD/qpid-dispatch-1.10.0/src/parse_tree.c:240:30: note: 'tmp.match_1' was declared here
        240 |             token_iterator_t tmp;
            |                              ^~~
      /builddir/build/BUILD/qpid-dispatch-1.10.0/src/parse_tree.c:74:24: error: 'tmp.separators' may be used uninitialized in this function [-Werror=maybe-uninitialized]
         74 |     const char *tend = strpbrk(str, t->separators);
            |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      /builddir/build/BUILD/qpid-dispatch-1.10.0/src/parse_tree.c:240:30: note: 'tmp.separators' was declared here
        240 |             token_iterator_t tmp;
            |                              ^~~
      /builddir/build/BUILD/qpid-dispatch-1.10.0/src/parse_tree.c:120:37: error: 'tmp.match_1' may be used uninitialized in this function [-Werror=maybe-uninitialized]
        120 |     return TOKEN_LEN(t->token) == 1 &&
            |                                     ^
      /builddir/build/BUILD/qpid-dispatch-1.10.0/src/parse_tree.c:240:30: note: 'tmp.match_1' was declared here
        240 |             token_iterator_t tmp;
            |                              ^~~
      /builddir/build/BUILD/qpid-dispatch-1.10.0/src/parse_tree.c:74:24: error: 'tmp.separators' may be used uninitialized in this function [-Werror=maybe-uninitialized]
         74 |     const char *tend = strpbrk(str, t->separators);
            |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      /builddir/build/BUILD/qpid-dispatch-1.10.0/src/parse_tree.c:240:30: note: 'tmp.separators' was declared here
        240 |             token_iterator_t tmp;
            |                              ^~~
      /builddir/build/BUILD/qpid-dispatch-1.10.0/src/parse_tree.c:120:37: error: 'tmp.match_1' may be used uninitialized in this function [-Werror=maybe-uninitialized]
        120 |     return TOKEN_LEN(t->token) == 1 &&
            |                                     ^
      /builddir/build/BUILD/qpid-dispatch-1.10.0/src/parse_tree.c:240:30: note: 'tmp.match_1' was declared here
        240 |             token_iterator_t tmp;
            |                              ^~~
      cc1: all warnings being treated as errors
      make[2]: *** [src/CMakeFiles/qpid-dispatch.dir/build.make:318: src/CMakeFiles/qpid-dispatch.dir/parse_tree.c.o] Error 1
      make[2]: Leaving directory '/builddir/build/BUILD/qpid-dispatch-1.10.0'
      make[1]: Leaving directory '/builddir/build/BUILD/qpid-dispatch-1.10.0'
      make[1]: *** [CMakeFiles/Makefile2:1034: src/CMakeFiles/qpid-dispatch.dir/all] Error 2
      make: *** [Makefile:144: all] Error 2

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kgiusti Ken Giusti
                Reporter:
                gmurthy Ganesh Murthy
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: