You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "JF Gauvin (JIRA)" <ji...@apache.org> on 2014/03/05 19:48:48 UTC

[jira] [Issue Comment Deleted] (THRIFT-2127) Autoconf scripting does not properly account for cross-compile

     [ https://issues.apache.org/jira/browse/THRIFT-2127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

JF Gauvin updated THRIFT-2127:
------------------------------

    Comment: was deleted

(was: Thanks for your comments. It's now compiling, but only when I'm not using libevent and zlib (checking version fail). Notice that I uninstalled Boost, libevent and zlib (dev). 

I've attached the patch.

I'm not sure if removing AC_FUNC_MALLOC and AC_FUNC_REALLOC in configure.ac is the best thing to do.)

> Autoconf scripting does not properly account for cross-compile
> --------------------------------------------------------------
>
>                 Key: THRIFT-2127
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2127
>             Project: Thrift
>          Issue Type: Bug
>          Components: Build Process
>    Affects Versions: 0.9
>         Environment: Ubuntu 12.04 running OpenEmbedded Dylan
>            Reporter: Frank Earl
>            Assignee: Jake Farrell
>         Attachments: 0001-cross-compile.patch, fix_autoconf_crosscompile_leaks.patch
>
>
> Trying to get Thrift to Cross-compile within OpenEmbedded to get an ARM based build combined with a full-on SDK for our embedded target.  So far, I'm getting this:
> configure:16347: checking for boostlib >= 1.40.0
> configure:16401: arm-poky-linux-gnueabi-g++  -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon --sysroot=/home/fearl/git/dc_image_build/poky/build/tmp/sysroots/beaglebone -c -O2 -pipe -g -feliminate-unused-debug-types -fpermissive -fvisibility-inlines-hidden  -I/usr/include conftest.cpp >&5
> cc1plus: warning: include location "/usr/include" is unsafe for cross-compilation [-Wpoison-system-directories]
> configure:16401: $? = 0
> This means it's grabbing from outside the sysroot- which can present bad results on the cross-compile pass.



--
This message was sent by Atlassian JIRA
(v6.2#6252)