Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1950

[proton-c] build intermittently fails to produce good python tox header file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: proton-c-0.25.0
    • Fix Version/s: None
    • Component/s: build
    • Labels:
      None

      Description

      Building from source, not installed, and running tests:

      {{ mkdir build
      cd build
      cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/opt/local ..
      make -j 8
      make test
      }}
      fails python-tox-test. To see what's wrong:

      {{ ctest -VV -R python-tox-test
      }}

      shows:

      {{ 33: /home/chug/tmp/proton-0.26-rc2/qpid-proton-0.26.0/build/python/dist/src/core/message.c:118:24:
      error: ‘HEADER_PRIORITY_DEFAULT’ undeclared (first use in this function)
      33: if (msg->priority != HEADER_PRIORITY_DEFAULT) {

      }}

      It looks like the header file that defines HEADER_PRIORITY_DEFAULT has an issue.

      By running 'make' again python-tox-test passes. I suspect that there is some kind of race with doing 'make -j 8' if running make again fixes things.

      This error does not always happen. Sometimes I can do clean cmake/build and it works just fine.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chug Chuck Rolke
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: