Qpid
  1. Qpid
  2. QPID-3650

cast-align errors while building for various architectures

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.12
    • Fix Version/s: None
    • Component/s: C++ Broker
    • Labels:
    • Environment:

      Debian unstable

      Description

      While running thru various architecture builds for Debian, I'm running in these errors for ia64, armel, mips, mipsel and sparc:

      8<----
      libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../include -I../include -I. -I=. -D_FORTIFY_SOURCE=2 -Werror -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch -Wno-system-headers -Woverloaded-virtual -DQPID_LIBEXEC_DIR=\"/usr/lib/qpid\" -DBOOST_FILESYSTEM_VERSION=2 -Wno-missing-field-initializers -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -c qpid/sys/rdma/RdmaIO.cpp -fPIC -DPIC -o qpid/sys/rdma/.libs/librdmawrap_la-RdmaIO.o
      qpid/sys/rdma/RdmaIO.cpp: In member function 'void Rdma::AsynchIO::queueBuffer(Rdma::Buffer*, int)':
      qpid/sys/rdma/RdmaIO.cpp:203:59: error: cast from 'char*' to 'uint32_t*

      {aka unsigned int*}

      ' increases required alignment of target type [-Werror=cast-align]
      cc1plus: all warnings being treated as errors

      make[4]: *** [qpid/sys/rdma/librdmawrap_la-RdmaIO.lo] Error 1
      make[4]: Leaving directory `/build/buildd-qpid-cpp_0.12-2-armel-ztyDej/qpid-cpp-0.12/src'
      make[3]: *** [all-recursive] Error 1
      make[3]: Leaving directory `/build/buildd-qpid-cpp_0.12-2-armel-ztyDej/qpid-cpp-0.12/src'
      make[2]: *** [all] Error 2
      make[1]: *** [all-recursive] Error 1
      dh_auto_build: make -j1 returned exit code 2
      make[2]: Leaving directory `/build/buildd-qpid-cpp_0.12-2-armel-ztyDej/qpid-cpp-0.12/src'
      make[1]: Leaving directory `/build/buildd-qpid-cpp_0.12-2-armel-ztyDej/qpid-cpp-0.12'
      make: *** [build] Error 2

      8<----

      The complete logs are here:

      https://buildd.debian.org/status/package.php?p=qpid-cpp

        Activity

          People

          • Assignee:
            Darryl L. Pierce
            Reporter:
            Cajus Pollmeier
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development