You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Chris Seto <ch...@gmail.com> on 2015/07/10 06:03:35 UTC
Compilation error on ThriftTest_constants.lo
Hi,
I am attempting to compile Thrift on an ARM-Linux platform, but with
both the codebase on git and the released tarbar, I am getting a very
non-descriptive error with regards to ThrfitTest_constants.lo
make log: http://pastebin.com/2fpDgPGv
config.log: http://pastebin.com/wCst5Gg4
Any ideas?
Thanks,
Chris
--
======
Chris Seto
http://www.chrisseto.com
======
Re: Compilation error on ThriftTest_constants.lo
Posted by Chris Seto <ch...@gmail.com>.
Hi Roger,
It actually turns out that there was some issue with my Boost
installation. I built Boost from source and was able to successfully
complete the CMake, and then a little more troubleshooting later, I was
able to also get make/make install to work.
Thank you very much for all your help!!
Chris
On 7/10/2015 1:11 PM, Roger Meier wrote:
> you cross compile and have boost under /usr/lib ?
>
> see https://github.com/apache/thrift/blob/master/build/cmake/README.md
>
> how to pass -DBOOST_ROOT=/my/crosscompiledboost
>
> cheers
> roger
>
> Quoting Chris Seto <ch...@gmail.com>:
>
>> Hi Roger,
>>
>> I have a bit of a probably dumb question. I'm a little new to CMake,
>> and it seems to be failing on something trivial:
>>
>> I do know that I have the boost header files at /usr/include/boost,
>> and it looks like I have the compiled boost library in /usr/lib.
>> Still, it looks like CMake isn't finding it.
>>
>> Given that I know the paths, what is the best way to tell CMake to
>> look there?
>>> CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1111
>>> (message):
>>> Unable to find the requested Boost libraries.
>>>
>>> Boost version: 1.55.0
>>>
>>> Boost include path: /usr/include
>>>
>>> Could not find the following static Boost libraries:
>>>
>>> boost_chrono
>>> boost_system
>>> boost_thread
>>> boost_unit_test_framework
>>>
>>> No Boost libraries were found. You may need to set
>>> BOOST_LIBRARYDIR to the
>>> directory containing Boost libraries or BOOST_ROOT to the location of
>>> Boost.
>>> Call Stack (most recent call first):
>>> lib/cpp/test/CMakeLists.txt:22 (find_package)
>>
>> Thanks!!
>> Chris
>>
>> ======
>> Chris Seto
>> http://www.chrisseto.com
>> ======
>> On 7/10/2015 12:45 AM, Roger Meier wrote:
>>> cmake -DCMAKE_C_COMPILER=arm-none-linux-gnueabi-gcc
>>> -DCMAKE_CXX_COMPILER=arm-none-linux-gnueabi-g++ ..
>
>
Re: Compilation error on ThriftTest_constants.lo
Posted by Roger Meier <ro...@bufferoverflow.ch>.
you cross compile and have boost under /usr/lib ?
see https://github.com/apache/thrift/blob/master/build/cmake/README.md
how to pass -DBOOST_ROOT=/my/crosscompiledboost
cheers
roger
Quoting Chris Seto <ch...@gmail.com>:
> Hi Roger,
>
> I have a bit of a probably dumb question. I'm a little new to CMake,
> and it seems to be failing on something trivial:
>
> I do know that I have the boost header files at /usr/include/boost,
> and it looks like I have the compiled boost library in /usr/lib.
> Still, it looks like CMake isn't finding it.
>
> Given that I know the paths, what is the best way to tell CMake to
> look there?
>> CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1111 (message):
>> Unable to find the requested Boost libraries.
>>
>> Boost version: 1.55.0
>>
>> Boost include path: /usr/include
>>
>> Could not find the following static Boost libraries:
>>
>> boost_chrono
>> boost_system
>> boost_thread
>> boost_unit_test_framework
>>
>> No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
>> directory containing Boost libraries or BOOST_ROOT to the location of
>> Boost.
>> Call Stack (most recent call first):
>> lib/cpp/test/CMakeLists.txt:22 (find_package)
>
> Thanks!!
> Chris
>
> ======
> Chris Seto
> http://www.chrisseto.com
> ======
> On 7/10/2015 12:45 AM, Roger Meier wrote:
>> cmake -DCMAKE_C_COMPILER=arm-none-linux-gnueabi-gcc
>> -DCMAKE_CXX_COMPILER=arm-none-linux-gnueabi-g++ ..
Re: Compilation error on ThriftTest_constants.lo
Posted by Chris Seto <ch...@gmail.com>.
Hi Roger,
I have a bit of a probably dumb question. I'm a little new to CMake, and
it seems to be failing on something trivial:
I do know that I have the boost header files at /usr/include/boost, and
it looks like I have the compiled boost library in /usr/lib. Still, it
looks like CMake isn't finding it.
Given that I know the paths, what is the best way to tell CMake to look
there?
> CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1111
> (message):
> Unable to find the requested Boost libraries.
>
> Boost version: 1.55.0
>
> Boost include path: /usr/include
>
> Could not find the following static Boost libraries:
>
> boost_chrono
> boost_system
> boost_thread
> boost_unit_test_framework
>
> No Boost libraries were found. You may need to set BOOST_LIBRARYDIR
> to the
> directory containing Boost libraries or BOOST_ROOT to the location of
> Boost.
> Call Stack (most recent call first):
> lib/cpp/test/CMakeLists.txt:22 (find_package)
Thanks!!
Chris
======
Chris Seto
http://www.chrisseto.com
======
On 7/10/2015 12:45 AM, Roger Meier wrote:
> cmake -DCMAKE_C_COMPILER=arm-none-linux-gnueabi-gcc
> -DCMAKE_CXX_COMPILER=arm-none-linux-gnueabi-g++ ..
Re: Compilation error on ThriftTest_constants.lo
Posted by Roger Meier <ro...@bufferoverflow.ch>.
the log says that you are using g++ and not a cross compiler
I recommend using cmake, see here:
https://github.com/apache/thrift/blob/master/build/cmake/README.md
mkdir cmake-build && cd cmake-build
cmake -DCMAKE_C_COMPILER=arm-none-linux-gnueabi-gcc
-DCMAKE_CXX_COMPILER=arm-none-linux-gnueabi-g++ ..
cheers
-roger
Quoting Chris Seto <ch...@gmail.com>:
> Hi,
>
> I am attempting to compile Thrift on an ARM-Linux platform, but with
> both the codebase on git and the released tarbar, I am getting a
> very non-descriptive error with regards to ThrfitTest_constants.lo
>
> make log: http://pastebin.com/2fpDgPGv
> config.log: http://pastebin.com/wCst5Gg4
>
> Any ideas?
>
> Thanks,
> Chris
> --
>
> ======
> Chris Seto
> http://www.chrisseto.com
> ======