Qpid
  1. Qpid
  2. QPID-5042

Qpid 0.24 fails to build on ARM platforms.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.23
    • Fix Version/s: 0.24
    • Component/s: None
    • Labels:
      None

      Description

      When compiling on ARM, the following occurs:

      [ 60%] Building CXX object src/CMakeFiles/qpidbroker.dir/qpid/broker/PagedQueue.o
      /home/mcpierce/Programming/Qpid/qpid/cpp/src/qpid/broker/PagedQueue.cpp: In member function ‘void qpid::broker::PagedQueue::Page::load(qpid::sys::MemoryMappedFile&, qpid::broker::ProtocolRegistry&)’:
      /home/mcpierce/Programming/Qpid/qpid/cpp/src/qpid/broker/PagedQueue.cpp:298:62: error: cast from ‘char*’ to ‘uint32_t*

      {aka unsigned int*}

      ’ increases required alignment of target type [-Werror=cast-align]
      uint32_t count = (reinterpret_cast<uint32_t>(region));
      ^
      cc1plus: all warnings being treated as errors
      make[2]: *** [src/CMakeFiles/qpidbroker.dir/qpid/broker/PagedQueue.o] Error 1
      make[1]: *** [src/CMakeFiles/qpidbroker.dir/all] Error 2
      make: *** [all] Error 2

      1. QPID-5042.patch
        1.0 kB
        Gordon Sim

        Activity

        Hide
        Justin Ross added a comment -
        Show
        Justin Ross added a comment - Released in Qpid 0.24, http://qpid.apache.org/releases/qpid-0.24/index.html
        Hide
        Gordon Sim added a comment -

        Merged to 0.24 release branch.

        Show
        Gordon Sim added a comment - Merged to 0.24 release branch.
        Hide
        ASF subversion and git services added a comment -

        Commit 1511045 from Gordon Sim in branch 'qpid/branches/0.24'
        [ https://svn.apache.org/r1511045 ]

        QPID-5042: use more portable encode and decode (merged r1511013 from trunk)

        Show
        ASF subversion and git services added a comment - Commit 1511045 from Gordon Sim in branch 'qpid/branches/0.24' [ https://svn.apache.org/r1511045 ] QPID-5042 : use more portable encode and decode (merged r1511013 from trunk)
        Hide
        Justin Ross added a comment -

        Reviewed by Ken. Approved for 0.24.

        Show
        Justin Ross added a comment - Reviewed by Ken. Approved for 0.24.
        Hide
        Ken Giusti added a comment -

        This fix looks good - approved for 0.24.

        Show
        Ken Giusti added a comment - This fix looks good - approved for 0.24.
        Hide
        ASF subversion and git services added a comment -

        Commit 1511013 from Gordon Sim in branch 'qpid/trunk'
        [ https://svn.apache.org/r1511013 ]

        QPID-5042: use more protable encode and decode

        Show
        ASF subversion and git services added a comment - Commit 1511013 from Gordon Sim in branch 'qpid/trunk' [ https://svn.apache.org/r1511013 ] QPID-5042 : use more protable encode and decode
        Hide
        Gordon Sim added a comment -

        Proposed fix

        Show
        Gordon Sim added a comment - Proposed fix

          People

          • Assignee:
            Gordon Sim
            Reporter:
            Darryl L. Pierce
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development