chendan created THRIFT-5615:
-------------------------------
Summary: TCompactProtocol.tcc:35:3: error: #error "Unable to
determine the behavior of a signed right shift"
Key: THRIFT-5615
URL: https://issues.apache.org/jira/browse/THRIFT-5615
Project: Thrift
Issue Type: Bug
Components: C++ - Compiler
Affects Versions: 0.16.0
Reporter: chendan
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
--
This message was sent by Atlassian Jira
(v8.20.10#820010)