You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Andrey Alekseenko (JIRA)" <ji...@apache.org> on 2018/09/06 09:12:00 UTC

[jira] [Commented] (THRIFT-4180) Impossible to build Thrift C++ library for Android (NDK)

    [ https://issues.apache.org/jira/browse/THRIFT-4180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16605503#comment-16605503 ] 

Andrey Alekseenko commented on THRIFT-4180:
-------------------------------------------

The issue is still actual for 0.11.0 and Android NDK r17b & r18beta2 (clang 7.0.2)

../../../lib/c_glib/src/thrift/c_glib/protocol/thrift_compact_protocol.c:35:3: error: "Unable to determine the behavior of a signed right shift"

> Impossible to build Thrift C++ library for Android (NDK)
> --------------------------------------------------------
>
>                 Key: THRIFT-4180
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4180
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Library
>    Affects Versions: 0.10.0
>         Environment: Ubuntu Linux 16.04 x86_64
> Android NDK r14b
>            Reporter: Andrey Alekseenko
>            Priority: Blocker
>
> 1) make standalone clang ndk toolchain (gnustl_static)
> 2) build boost 1.63 and inject its headers & libs to toolchain's sysroot
> 3) configure thrift:
> ./configure --with-sysroot=$toolchains/arm/sysroot  --host=arm-linux-androideabi CXX="$toolchains/arm/bin/arm-linux-androideabi-clang++"
> 4) cd lib/cpp
> 5) make
> GOT ERRORS:
> 1) rpl_malloc & rpl_realloc  symbols are not found during compilation
> CAN BE FIXED BY: removing
> #define malloc rpl_malloc
> and 
> #define realloc rpl_realloc
> from ./src/thrift/config.h
> 2) ./src/thrift/protocol/TCompactProtocol.tcc:37:3: error: "TCompactProtocol currently only works if a signed right shift is arithmetic"



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)