Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5615

TCompactProtocol.tcc:35:3: error: #error "Unable to determine the behavior of a signed right shift"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.16.0
    • None
    • C++ - Compiler
    • None

    Description

      I want to cross compile thrift for arm.

      When I did make, an error occured:

      libtool: link: ranlib .libs/libthriftnb.a
      libtool: link: ( cd ".libs" && rm -f "libthriftnb.la" && ln -s "../libthriftnb.la" "libthriftnb.la" )
      /bin/sh ../../libtool  --tag=CXX   --mode=compile aarch64-kedacom-linux-gnu-g++ -std=c++11 -DHAVE_CONFIG_H     -I./src -D_STDC_FORMAT_MACROS -D_STDC_LIMIT_MACROS  -march=armv8-a -Wall -Wextra -pedantic -march=armv8-a -MT src/thrift/transport/libthriftz_la-TZlibTransport.lo -MD -MP -MF src/thrift/transport/.deps/libthriftz_la-TZlibTransport.Tpo -c -o src/thrift/transport/libthriftz_la-TZlibTransport.lo `test -f 'src/thrift/transport/TZlibTransport.cpp' || echo './'`src/thrift/transport/TZlibTransport.cpp
      libtool: compile:  aarch64-kedacom-linux-gnu-g++ -std=c++11 -DHAVE_CONFIG_H -I./src -D_STDC_FORMAT_MACROS -D_STDC_LIMIT_MACROS -march=armv8-a -Wall -Wextra -pedantic -march=armv8-a -MT src/thrift/transport/libthriftz_la-TZlibTransport.lo -MD -MP -MF src/thrift/transport/.deps/libthriftz_la-TZlibTransport.Tpo -c src/thrift/transport/TZlibTransport.cpp  -fPIC -DPIC -o src/thrift/transport/.libs/libthriftz_la-TZlibTransport.o
      libtool: compile:  aarch64-kedacom-linux-gnu-g++ -std=c++11 -DHAVE_CONFIG_H -I./src -D_STDC_FORMAT_MACROS -D_STDC_LIMIT_MACROS -march=armv8-a -Wall -Wextra -pedantic -march=armv8-a -MT src/thrift/transport/libthriftz_la-TZlibTransport.lo -MD -MP -MF src/thrift/transport/.deps/libthriftz_la-TZlibTransport.Tpo -c src/thrift/transport/TZlibTransport.cpp -o src/thrift/transport/libthriftz_la-TZlibTransport.o >/dev/null 2>&1
      mv -f src/thrift/transport/.deps/libthriftz_la-TZlibTransport.Tpo src/thrift/transport/.deps/libthriftz_la-TZlibTransport.Plo
      /bin/sh ../../libtool  --tag=CXX   --mode=compile aarch64-kedacom-linux-gnu-g++ -std=c++11 -DHAVE_CONFIG_H     -I./src -D_STDC_FORMAT_MACROS -D_STDC_LIMIT_MACROS  -march=armv8-a -Wall -Wextra -pedantic -march=armv8-a -MT src/thrift/transport/libthriftz_la-THeaderTransport.lo -MD -MP -MF src/thrift/transport/.deps/libthriftz_la-THeaderTransport.Tpo -c -o src/thrift/transport/libthriftz_la-THeaderTransport.lo `test -f 'src/thrift/transport/THeaderTransport.cpp' || echo './'`src/thrift/transport/THeaderTransport.cpp
      libtool: compile:  aarch64-kedacom-linux-gnu-g++ -std=c++11 -DHAVE_CONFIG_H -I./src -D_STDC_FORMAT_MACROS -D_STDC_LIMIT_MACROS -march=armv8-a -Wall -Wextra -pedantic -march=armv8-a -MT src/thrift/transport/libthriftz_la-THeaderTransport.lo -MD -MP -MF src/thrift/transport/.deps/libthriftz_la-THeaderTransport.Tpo -c src/thrift/transport/THeaderTransport.cpp  -fPIC -DPIC -o src/thrift/transport/.libs/libthriftz_la-THeaderTransport.o
      In file included from ./src/thrift/protocol/TCompactProtocol.h:282,
                       from src/thrift/transport/THeaderTransport.cpp:24:
      ./src/thrift/protocol/TCompactProtocol.tcc:35:3: error: #error "Unable to determine the behavior of a signed right shift"
       # error "Unable to determine the behavior of a signed right shift"
         ^~~~~
      make[4]: *** [src/thrift/transport/libthriftz_la-THeaderTransport.lo] Error 1
      make[4]: Leaving directory `/root/build/thrift-0.16.0/lib/cpp'
      make[3]: *** [all-recursive] Error 1
      make[3]: Leaving directory `/root/build/thrift-0.16.0/lib/cpp'
      make[2]: *** [all-recursive] Error 1
      make[2]: Leaving directory `/root/build/thrift-0.16.0/lib'
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory `/root/build/thrift-0.16.0'
      make: *** [all] Error 2

      Attachments

        Activity

          People

            Unassigned Unassigned
            atptour2017 chendan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: