FAQ
Hi Anty,

Moving this question over to impala-user@cloudera.org, which should be able
to help you out with this issue.


--
Aaron T. Myers
Software Engineer, Cloudera

On Thu, Apr 25, 2013 at 8:53 PM, Anty.Rao wrote:

When attempting to build impala from source ,i encounter following Linker
error

CMakeFiles/avrogencpp.dir/impl/avrogencpp.cc.o: In function `main':
avrogencpp.cc:(.text+0x3891): undefined reference to
`boost::program_options::options_description::options_description(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, unsigned int,
unsigned int)'
collect2: ld returned 1 exit status

make[2]: *** [avrogencpp] Error 1

make[1]: *** [CMakeFiles/avrogencpp.dir/all] Error 2

make[1]: *** Waiting for unfinished jobs....

CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
`_Z41__static_initialization_and_destruction_0ii.clone.0':
DataFileTests.cc:(.text+0xafa9): undefined reference to
`boost::system::generic_category()'
DataFileTests.cc:(.text+0xafb5): undefined reference to
`boost::system::generic_category()'
DataFileTests.cc:(.text+0xafc1): undefined reference to
`boost::system::system_category()'
CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
`DataFileTest::testTruncate()':
DataFileTests.cc:(.text._ZN12DataFileTest12testTruncateEv[DataFileTest::testTruncate()]+0x127):
undefined reference to
`boost::filesystem3::detail::file_size(boost::filesystem3::path const&,
boost::system::error_code*)'
DataFileTests.cc:(.text._ZN12DataFileTest12testTruncateEv[DataFileTest::testTruncate()]+0x1a9):
undefined reference to
`boost::filesystem3::detail::file_size(boost::filesystem3::path const&,
boost::system::error_code*)'
CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
`DataFileTest::testCleanup()':
DataFileTests.cc:(.text._ZN12DataFileTest11testCleanupEv[DataFileTest::testCleanup()]+0xcd):
undefined reference to
`boost::filesystem3::detail::remove(boost::filesystem3::path const&,
boost::system::error_code*)'
collect2: ld returned 1 exit status

make[2]: *** [DataFileTests] Error 1

make[1]: *** [CMakeFiles/DataFileTests.dir/all] Error 2
According to above error log, it seems the building process can't find
boost library in link phase. I'm sure i have already install boost library
in my box.
impala can't be built successfully from source inherently?Can't someone
shed lights on me ? My box is Centos 6.2




--


Search Discussions

  • Anty Rao at May 2, 2013 at 4:48 am
    Thanks Yukinori
    I will install a new boost version

    On Sat, Apr 27, 2013 at 9:10 AM, Yukinori SUDA wrote:

    Hi Anty,

    I could build impala 0.7.1 on CentOS 6.2.
    Then I installed boost 1.42 manually cause its rpm package(1.41) doesn't
    support "uuid".

    I used below as build option for boost.
    bjam --with-thread --with-filesystem --with-regex --with-system
    --layout=tagged threading=multi link=shared

    Hope this helps

    suda

    2013/4/27 Aaron T. Myers <atm@cloudera.com>

    Hi Anty,
    Moving this question over to impala-user@cloudera.org, which should be
    able to help you out with this issue.


    --
    Aaron T. Myers
    Software Engineer, Cloudera

    On Thu, Apr 25, 2013 at 8:53 PM, Anty.Rao wrote:

    When attempting to build impala from source ,i encounter following
    Linker error

    CMakeFiles/avrogencpp.dir/impl/avrogencpp.cc.o: In function `main':
    avrogencpp.cc:(.text+0x3891): undefined reference to
    `boost::program_options::options_description::options_description(std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const&, unsigned int,
    unsigned int)'
    collect2: ld returned 1 exit status

    make[2]: *** [avrogencpp] Error 1

    make[1]: *** [CMakeFiles/avrogencpp.dir/all] Error 2

    make[1]: *** Waiting for unfinished jobs....

    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `_Z41__static_initialization_and_destruction_0ii.clone.0':
    DataFileTests.cc:(.text+0xafa9): undefined reference to
    `boost::system::generic_category()'
    DataFileTests.cc:(.text+0xafb5): undefined reference to
    `boost::system::generic_category()'
    DataFileTests.cc:(.text+0xafc1): undefined reference to
    `boost::system::system_category()'
    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `DataFileTest::testTruncate()':
    DataFileTests.cc:(.text._ZN12DataFileTest12testTruncateEv[DataFileTest::testTruncate()]+0x127):
    undefined reference to
    `boost::filesystem3::detail::file_size(boost::filesystem3::path const&,
    boost::system::error_code*)'
    DataFileTests.cc:(.text._ZN12DataFileTest12testTruncateEv[DataFileTest::testTruncate()]+0x1a9):
    undefined reference to
    `boost::filesystem3::detail::file_size(boost::filesystem3::path const&,
    boost::system::error_code*)'
    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `DataFileTest::testCleanup()':
    DataFileTests.cc:(.text._ZN12DataFileTest11testCleanupEv[DataFileTest::testCleanup()]+0xcd):
    undefined reference to
    `boost::filesystem3::detail::remove(boost::filesystem3::path const&,
    boost::system::error_code*)'
    collect2: ld returned 1 exit status

    make[2]: *** [DataFileTests] Error 1

    make[1]: *** [CMakeFiles/DataFileTests.dir/all] Error 2
    According to above error log, it seems the building process can't find
    boost library in link phase. I'm sure i have already install boost library
    in my box.
    impala can't be built successfully from source inherently?Can't
    someone shed lights on me ? My box is Centos 6.2




    --



    --
    Anty Rao
  • FU Tianyuan at May 16, 2013 at 1:39 am
    Hi Anty,

    I am building Impala 1.0 now. But I have the same problem now. So I want to
    know did you sovle the boost link error and how did you solve this. Thank
    you!

    tianyuan


    2013/5/2 Anty Rao <ant.rao@gmail.com>
    Thanks Yukinori
    I will install a new boost version

    On Sat, Apr 27, 2013 at 9:10 AM, Yukinori SUDA wrote:

    Hi Anty,

    I could build impala 0.7.1 on CentOS 6.2.
    Then I installed boost 1.42 manually cause its rpm package(1.41) doesn't
    support "uuid".

    I used below as build option for boost.
    bjam --with-thread --with-filesystem --with-regex --with-system
    --layout=tagged threading=multi link=shared

    Hope this helps

    suda

    2013/4/27 Aaron T. Myers <atm@cloudera.com>

    Hi Anty,
    Moving this question over to impala-user@cloudera.org, which should be
    able to help you out with this issue.


    --
    Aaron T. Myers
    Software Engineer, Cloudera

    On Thu, Apr 25, 2013 at 8:53 PM, Anty.Rao wrote:

    When attempting to build impala from source ,i encounter following
    Linker error

    CMakeFiles/avrogencpp.dir/impl/avrogencpp.cc.o: In function `main':
    avrogencpp.cc:(.text+0x3891): undefined reference to
    `boost::program_options::options_description::options_description(std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const&, unsigned int,
    unsigned int)'
    collect2: ld returned 1 exit status

    make[2]: *** [avrogencpp] Error 1

    make[1]: *** [CMakeFiles/avrogencpp.dir/all] Error 2

    make[1]: *** Waiting for unfinished jobs....

    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `_Z41__static_initialization_and_destruction_0ii.clone.0':
    DataFileTests.cc:(.text+0xafa9): undefined reference to
    `boost::system::generic_category()'
    DataFileTests.cc:(.text+0xafb5): undefined reference to
    `boost::system::generic_category()'
    DataFileTests.cc:(.text+0xafc1): undefined reference to
    `boost::system::system_category()'
    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `DataFileTest::testTruncate()':
    DataFileTests.cc:(.text._ZN12DataFileTest12testTruncateEv[DataFileTest::testTruncate()]+0x127):
    undefined reference to
    `boost::filesystem3::detail::file_size(boost::filesystem3::path const&,
    boost::system::error_code*)'
    DataFileTests.cc:(.text._ZN12DataFileTest12testTruncateEv[DataFileTest::testTruncate()]+0x1a9):
    undefined reference to
    `boost::filesystem3::detail::file_size(boost::filesystem3::path const&,
    boost::system::error_code*)'
    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `DataFileTest::testCleanup()':
    DataFileTests.cc:(.text._ZN12DataFileTest11testCleanupEv[DataFileTest::testCleanup()]+0xcd):
    undefined reference to
    `boost::filesystem3::detail::remove(boost::filesystem3::path const&,
    boost::system::error_code*)'
    collect2: ld returned 1 exit status

    make[2]: *** [DataFileTests] Error 1

    make[1]: *** [CMakeFiles/DataFileTests.dir/all] Error 2
    According to above error log, it seems the building process can't find
    boost library in link phase. I'm sure i have already install boost library
    in my box.
    impala can't be built successfully from source inherently?Can't
    someone shed lights on me ? My box is Centos 6.2




    --



    --
    Anty Rao
  • Travis L Pinney at May 16, 2013 at 1:46 am
    Hi Tianyuan,

    You should take a look here.

    https://github.com/cloudera/impala/issues/31

    Thanks,
    Travis



    On Wed, May 15, 2013 at 9:39 PM, FU Tianyuan wrote:

    Hi Anty,

    I am building Impala 1.0 now. But I have the same problem now. So I want
    to know did you sovle the boost link error and how did you solve this.
    Thank you!

    tianyuan


    2013/5/2 Anty Rao <ant.rao@gmail.com>
    Thanks Yukinori
    I will install a new boost version

    On Sat, Apr 27, 2013 at 9:10 AM, Yukinori SUDA wrote:

    Hi Anty,

    I could build impala 0.7.1 on CentOS 6.2.
    Then I installed boost 1.42 manually cause its rpm package(1.41) doesn't
    support "uuid".

    I used below as build option for boost.
    bjam --with-thread --with-filesystem --with-regex --with-system
    --layout=tagged threading=multi link=shared

    Hope this helps

    suda

    2013/4/27 Aaron T. Myers <atm@cloudera.com>

    Hi Anty,
    Moving this question over to impala-user@cloudera.org, which should be
    able to help you out with this issue.


    --
    Aaron T. Myers
    Software Engineer, Cloudera

    On Thu, Apr 25, 2013 at 8:53 PM, Anty.Rao wrote:

    When attempting to build impala from source ,i encounter following
    Linker error

    CMakeFiles/avrogencpp.dir/impl/avrogencpp.cc.o: In function `main':
    avrogencpp.cc:(.text+0x3891): undefined reference to
    `boost::program_options::options_description::options_description(std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const&, unsigned int,
    unsigned int)'
    collect2: ld returned 1 exit status

    make[2]: *** [avrogencpp] Error 1

    make[1]: *** [CMakeFiles/avrogencpp.dir/all] Error 2

    make[1]: *** Waiting for unfinished jobs....

    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `_Z41__static_initialization_and_destruction_0ii.clone.0':
    DataFileTests.cc:(.text+0xafa9): undefined reference to
    `boost::system::generic_category()'
    DataFileTests.cc:(.text+0xafb5): undefined reference to
    `boost::system::generic_category()'
    DataFileTests.cc:(.text+0xafc1): undefined reference to
    `boost::system::system_category()'
    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `DataFileTest::testTruncate()':
    DataFileTests.cc:(.text._ZN12DataFileTest12testTruncateEv[DataFileTest::testTruncate()]+0x127):
    undefined reference to
    `boost::filesystem3::detail::file_size(boost::filesystem3::path const&,
    boost::system::error_code*)'
    DataFileTests.cc:(.text._ZN12DataFileTest12testTruncateEv[DataFileTest::testTruncate()]+0x1a9):
    undefined reference to
    `boost::filesystem3::detail::file_size(boost::filesystem3::path const&,
    boost::system::error_code*)'
    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `DataFileTest::testCleanup()':
    DataFileTests.cc:(.text._ZN12DataFileTest11testCleanupEv[DataFileTest::testCleanup()]+0xcd):
    undefined reference to
    `boost::filesystem3::detail::remove(boost::filesystem3::path const&,
    boost::system::error_code*)'
    collect2: ld returned 1 exit status

    make[2]: *** [DataFileTests] Error 1

    make[1]: *** [CMakeFiles/DataFileTests.dir/all] Error 2
    According to above error log, it seems the building process can't find
    boost library in link phase. I'm sure i have already install boost library
    in my box.
    impala can't be built successfully from source inherently?Can't
    someone shed lights on me ? My box is Centos 6.2




    --



    --
    Anty Rao
  • FU Tianyuan at May 16, 2013 at 8:25 am
    Hi Travis,

    I have looked the issues-31 and tried again but I have not solved my
    problem.
    My environment is CentOS 6.4, Impala 1.0 and I followed
    https://github.com/cloudera/impala/issues/31, build boost 1.46.1 again with
    ./bjam threading=multi link=shared
    and modify the CMakeList.txt to
    find_package(Boost REQUIRED COMPONENTS thread regex system filesystem)

    How can I solve this .
    Here is the Error:

    **********************************************************************************************************************************
    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `_Z41__static_initialization_and_destruction_0ii.clone.0':
    DataFileTests.cc:(.text+0x91e9): undefined reference to
    `boost::system::generic_category()'
    DataFileTests.cc:(.text+0x91f5): undefined reference to
    `boost::system::generic_category()'
    DataFileTests.cc:(.text+0x9201): undefined reference to
    `boost::system::system_category()'
    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `DataFileTest::testTruncate()':
    DataFileTests.cc:(.text._ZN12DataFileTest12testTruncateEv[DataFileTest::testTruncate()]+0x129):
    undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
    DataFileTests.cc:(.text._ZN12DataFileTest12testTruncateEv[DataFileTest::testTruncate()]+0x155):
    undefined reference to
    `boost::filesystem3::detail::file_size(boost::filesystem3::path const&,
    boost::system::error_code*)'
    DataFileTests.cc:(.text._ZN12DataFileTest12testTruncateEv[DataFileTest::testTruncate()]+0x1c6):
    undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
    DataFileTests.cc:(.text._ZN12DataFileTest12testTruncateEv[DataFileTest::testTruncate()]+0x1f2):
    undefined reference to
    `boost::filesystem3::detail::file_size(boost::filesystem3::path const&,
    boost::system::error_code*)'
    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `DataFileTest::testCleanup()':
    DataFileTests.cc:(.text._ZN12DataFileTest11testCleanupEv[DataFileTest::testCleanup()]+0xb8):
    undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
    DataFileTests.cc:(.text._ZN12DataFileTest11testCleanupEv[DataFileTest::testCleanup()]+0xe4):
    undefined reference to
    `boost::filesystem3::detail::remove(boost::filesystem3::path const&,
    boost::system::error_code*)'
    collect2: ld returned 1 exit status
    make[2]: *** [DataFileTests] Error 1
    make[1]: *** [CMakeFiles/DataFileTests.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    In file included from /usr/include/boost/thread/future.hpp:14,
                      from /usr/include/boost/thread.hpp:24,
                      from
    /home/fty/impala/thirdparty/avro-1.7.1-cdh4.2.0/lang/c++/test/buffertest.cc:21:
    /usr/include/boost/exception_ptr.hpp:43: error: expected class-name before
    ‘{’ token
    make[2]: *** [CMakeFiles/buffertest.dir/test/buffertest.cc.o] Error 1
    make[1]: *** [CMakeFiles/buffertest.dir/all] Error 2
    Linking CXX executable SpecificTests
    [ 76%] Built target SpecificTests
    Linking CXX executable StreamTests
    CMakeFiles/StreamTests.dir/test/StreamTests.cc.o: In function
    `_Z41__static_initialization_and_destruction_0ii.clone.0':
    StreamTests.cc:(.text+0x9a32): undefined reference to
    `boost::system::generic_category()'
    StreamTests.cc:(.text+0x9a3e): undefined reference to
    `boost::system::generic_category()'
    StreamTests.cc:(.text+0x9a4a): undefined reference to
    `boost::system::system_category()'
    CMakeFiles/StreamTests.dir/test/StreamTests.cc.o: In function
    `avro::stream::FileRemover::~FileRemover()':
    StreamTests.cc:(.text._ZN4avro6stream11FileRemoverD2Ev[_ZN4avro6stream11FileRemoverD5Ev]+0xb):
    undefined reference to
    `boost::filesystem3::detail::remove(boost::filesystem3::path const&,
    boost::system::error_code*)'
    CMakeFiles/StreamTests.dir/test/StreamTests.cc.o: In function `void
    avro::stream::testNonEmpty_fileStream<avro::stream::Fill2,
    avro::stream::Verify1>(avro::stream::TestData const&)':
    StreamTests.cc:(.text._ZN4avro6stream23testNonEmpty_fileStreamINS0_5Fill2ENS0_7Verify1EEEvRKNS0_8TestDataE[void
    avro::stream::testNonEmpty_fileStream<avro::stream::Fill2,
    avro::stream::Verify1>(avro::stream::TestData const&)]+0x2d): undefined
    reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
    StreamTests.cc:(.text._ZN4avro6stream23testNonEmpty_fileStreamINS0_5Fill2ENS0_7Verify1EEEvRKNS0_8TestDataE[void
    avro::stream::testNonEmpty_fileStream<avro::stream::Fill2,
    avro::stream::Verify1>(avro::stream::TestData const&)]+0x1a8): undefined
    reference to `boost::filesystem3::detail::remove(boost::filesystem3::path
    const&, boost::system::error_code*)'
    CMakeFiles/StreamTests.dir/test/StreamTests.cc.o: In function `void
    avro::stream::testNonEmpty_fileStream<avro::stream::Fill1,
    avro::stream::Verify1>(avro::stream::TestData const&)':
    StreamTests.cc:(.text._ZN4avro6stream23testNonEmpty_fileStreamINS0_5Fill1ENS0_7Verify1EEEvRKNS0_8TestDataE[void
    avro::stream::testNonEmpty_fileStream<avro::stream::Fill1,
    avro::stream::Verify1>(avro::stream::TestData const&)]+0x35): undefined
    reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
    StreamTests.cc:(.text._ZN4avro6stream23testNonEmpty_fileStreamINS0_5Fill1ENS0_7Verify1EEEvRKNS0_8TestDataE[void
    avro::stream::testNonEmpty_fileStream<avro::stream::Fill1,
    avro::stream::Verify1>(avro::stream::TestData const&)]+0x1d5): undefined
    reference to `boost::filesystem3::detail::remove(boost::filesystem3::path
    const&, boost::system::error_code*)'
    CMakeFiles/StreamTests.dir/test/StreamTests.cc.o: In function `void
    avro::stream::testEmpty_fileStream<avro::stream::CheckEmpty2>()':
    StreamTests.cc:(.text._ZN4avro6stream20testEmpty_fileStreamINS0_11CheckEmpty2EEEvv[void
    avro::stream::testEmpty_fileStream<avro::stream::CheckEmpty2>()]+0x1c):
    undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
    StreamTests.cc:(.text._ZN4avro6stream20testEmpty_fileStreamINS0_11CheckEmpty2EEEvv[void
    avro::stream::testEmpty_fileStream<avro::stream::CheckEmpty2>()]+0xad):
    undefined reference to
    `boost::filesystem3::detail::remove(boost::filesystem3::path const&,
    boost::system::error_code*)'
    CMakeFiles/StreamTests.dir/test/StreamTests.cc.o: In function `void
    avro::stream::testEmpty_fileStream<avro::stream::CheckEmpty1>()':
    StreamTests.cc:(.text._ZN4avro6stream20testEmpty_fileStreamINS0_11CheckEmpty1EEEvv[void
    avro::stream::testEmpty_fileStream<avro::stream::CheckEmpty1>()]+0x27):
    undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
    StreamTests.cc:(.text._ZN4avro6stream20testEmpty_fileStreamINS0_11CheckEmpty1EEEvv[void
    avro::stream::testEmpty_fileStream<avro::stream::CheckEmpty1>()]+0x1f9):
    undefined reference to
    `boost::filesystem3::detail::remove(boost::filesystem3::path const&,
    boost::system::error_code*)'
    CMakeFiles/StreamTests.dir/test/StreamTests.cc.o: In function `void
    avro::stream::testNonEmpty_fileStream<avro::stream::Fill2,
    avro::stream::Verify2>(avro::stream::TestData const&)':
    StreamTests.cc:(.text._ZN4avro6stream23testNonEmpty_fileStreamINS0_5Fill2ENS0_7Verify2EEEvRKNS0_8TestDataE[void
    avro::stream::testNonEmpty_fileStream<avro::stream::Fill2,
    avro::stream::Verify2>(avro::stream::TestData const&)]+0x2d): undefined
    reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
    StreamTests.cc:(.text._ZN4avro6stream23testNonEmpty_fileStreamINS0_5Fill2ENS0_7Verify2EEEvRKNS0_8TestDataE[void
    avro::stream::testNonEmpty_fileStream<avro::stream::Fill2,
    avro::stream::Verify2>(avro::stream::TestData const&)]+0x1a8): undefined
    reference to `boost::filesystem3::detail::remove(boost::filesystem3::path
    const&, boost::system::error_code*)'
    collect2: ld returned 1 exit status
    make[2]: *** [StreamTests] Error 1
    make[1]: *** [CMakeFiles/StreamTests.dir/all] Error 2
    make: *** [all] Error 2
    **********************************************************************************************************************************





    2013/5/16 Travis L Pinney <travis.pinney@gmail.com>
    Hi Tianyuan,

    You should take a look here.

    https://github.com/cloudera/impala/issues/31

    Thanks,
    Travis



    On Wed, May 15, 2013 at 9:39 PM, FU Tianyuan wrote:

    Hi Anty,

    I am building Impala 1.0 now. But I have the same problem now. So I want
    to know did you sovle the boost link error and how did you solve this.
    Thank you!

    tianyuan


    2013/5/2 Anty Rao <ant.rao@gmail.com>
    Thanks Yukinori
    I will install a new boost version

    On Sat, Apr 27, 2013 at 9:10 AM, Yukinori SUDA wrote:

    Hi Anty,

    I could build impala 0.7.1 on CentOS 6.2.
    Then I installed boost 1.42 manually cause its rpm package(1.41)
    doesn't support "uuid".

    I used below as build option for boost.
    bjam --with-thread --with-filesystem --with-regex --with-system
    --layout=tagged threading=multi link=shared

    Hope this helps

    suda

    2013/4/27 Aaron T. Myers <atm@cloudera.com>

    Hi Anty,
    Moving this question over to impala-user@cloudera.org, which should
    be able to help you out with this issue.


    --
    Aaron T. Myers
    Software Engineer, Cloudera

    On Thu, Apr 25, 2013 at 8:53 PM, Anty.Rao wrote:

    When attempting to build impala from source ,i encounter following
    Linker error

    CMakeFiles/avrogencpp.dir/impl/avrogencpp.cc.o: In function `main':
    avrogencpp.cc:(.text+0x3891): undefined reference to
    `boost::program_options::options_description::options_description(std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const&, unsigned int,
    unsigned int)'
    collect2: ld returned 1 exit status

    make[2]: *** [avrogencpp] Error 1

    make[1]: *** [CMakeFiles/avrogencpp.dir/all] Error 2

    make[1]: *** Waiting for unfinished jobs....

    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `_Z41__static_initialization_and_destruction_0ii.clone.0':
    DataFileTests.cc:(.text+0xafa9): undefined reference to
    `boost::system::generic_category()'
    DataFileTests.cc:(.text+0xafb5): undefined reference to
    `boost::system::generic_category()'
    DataFileTests.cc:(.text+0xafc1): undefined reference to
    `boost::system::system_category()'
    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `DataFileTest::testTruncate()':
    DataFileTests.cc:(.text._ZN12DataFileTest12testTruncateEv[DataFileTest::testTruncate()]+0x127):
    undefined reference to
    `boost::filesystem3::detail::file_size(boost::filesystem3::path const&,
    boost::system::error_code*)'
    DataFileTests.cc:(.text._ZN12DataFileTest12testTruncateEv[DataFileTest::testTruncate()]+0x1a9):
    undefined reference to
    `boost::filesystem3::detail::file_size(boost::filesystem3::path const&,
    boost::system::error_code*)'
    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `DataFileTest::testCleanup()':
    DataFileTests.cc:(.text._ZN12DataFileTest11testCleanupEv[DataFileTest::testCleanup()]+0xcd):
    undefined reference to
    `boost::filesystem3::detail::remove(boost::filesystem3::path const&,
    boost::system::error_code*)'
    collect2: ld returned 1 exit status

    make[2]: *** [DataFileTests] Error 1

    make[1]: *** [CMakeFiles/DataFileTests.dir/all] Error 2
    According to above error log, it seems the building process can't
    find boost library in link phase. I'm sure i have already install boost
    library in my box.
    impala can't be built successfully from source inherently?Can't
    someone shed lights on me ? My box is Centos 6.2




    --



    --
    Anty Rao
  • Anty Rao at May 16, 2013 at 8:32 am
    Hi:Tianyuan
    I have successfully build impala from source. I update boost version to
    1.46.1, and use the following boost build option

    ./bjam --with-thread --with-program_options --with-date_time
    --with-filesystem --with-regex --with-system --layout=tagged link=static
    link=shared threading=multi threading=single

    On Thu, May 16, 2013 at 4:25 PM, FU Tianyuan wrote:

    Hi Travis,

    I have looked the issues-31 and tried again but I have not solved my
    problem.
    My environment is CentOS 6.4, Impala 1.0 and I followed
    https://github.com/cloudera/impala/issues/31, build boost 1.46.1 again
    with
    ./bjam threading=multi link=shared
    and modify the CMakeList.txt to
    find_package(Boost REQUIRED COMPONENTS thread regex system filesystem)

    How can I solve this .
    Here is the Error:


    **********************************************************************************************************************************
    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `_Z41__static_initialization_and_destruction_0ii.clone.0':
    DataFileTests.cc:(.text+0x91e9): undefined reference to
    `boost::system::generic_category()'
    DataFileTests.cc:(.text+0x91f5): undefined reference to
    `boost::system::generic_category()'
    DataFileTests.cc:(.text+0x9201): undefined reference to
    `boost::system::system_category()'
    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `DataFileTest::testTruncate()':
    DataFileTests.cc:(.text._ZN12DataFileTest12testTruncateEv[DataFileTest::testTruncate()]+0x129):
    undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
    DataFileTests.cc:(.text._ZN12DataFileTest12testTruncateEv[DataFileTest::testTruncate()]+0x155):
    undefined reference to
    `boost::filesystem3::detail::file_size(boost::filesystem3::path const&,
    boost::system::error_code*)'
    DataFileTests.cc:(.text._ZN12DataFileTest12testTruncateEv[DataFileTest::testTruncate()]+0x1c6):
    undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
    DataFileTests.cc:(.text._ZN12DataFileTest12testTruncateEv[DataFileTest::testTruncate()]+0x1f2):
    undefined reference to
    `boost::filesystem3::detail::file_size(boost::filesystem3::path const&,
    boost::system::error_code*)'
    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `DataFileTest::testCleanup()':
    DataFileTests.cc:(.text._ZN12DataFileTest11testCleanupEv[DataFileTest::testCleanup()]+0xb8):
    undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
    DataFileTests.cc:(.text._ZN12DataFileTest11testCleanupEv[DataFileTest::testCleanup()]+0xe4):
    undefined reference to
    `boost::filesystem3::detail::remove(boost::filesystem3::path const&,
    boost::system::error_code*)'
    collect2: ld returned 1 exit status
    make[2]: *** [DataFileTests] Error 1
    make[1]: *** [CMakeFiles/DataFileTests.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    In file included from /usr/include/boost/thread/future.hpp:14,
    from /usr/include/boost/thread.hpp:24,
    from
    /home/fty/impala/thirdparty/avro-1.7.1-cdh4.2.0/lang/c++/test/buffertest.cc:21:
    /usr/include/boost/exception_ptr.hpp:43: error: expected class-name before
    ‘{’ token
    make[2]: *** [CMakeFiles/buffertest.dir/test/buffertest.cc.o] Error 1
    make[1]: *** [CMakeFiles/buffertest.dir/all] Error 2
    Linking CXX executable SpecificTests
    [ 76%] Built target SpecificTests
    Linking CXX executable StreamTests
    CMakeFiles/StreamTests.dir/test/StreamTests.cc.o: In function
    `_Z41__static_initialization_and_destruction_0ii.clone.0':
    StreamTests.cc:(.text+0x9a32): undefined reference to
    `boost::system::generic_category()'
    StreamTests.cc:(.text+0x9a3e): undefined reference to
    `boost::system::generic_category()'
    StreamTests.cc:(.text+0x9a4a): undefined reference to
    `boost::system::system_category()'
    CMakeFiles/StreamTests.dir/test/StreamTests.cc.o: In function
    `avro::stream::FileRemover::~FileRemover()':
    StreamTests.cc:(.text._ZN4avro6stream11FileRemoverD2Ev[_ZN4avro6stream11FileRemoverD5Ev]+0xb):
    undefined reference to
    `boost::filesystem3::detail::remove(boost::filesystem3::path const&,
    boost::system::error_code*)'
    CMakeFiles/StreamTests.dir/test/StreamTests.cc.o: In function `void
    avro::stream::testNonEmpty_fileStream<avro::stream::Fill2,
    avro::stream::Verify1>(avro::stream::TestData const&)':
    StreamTests.cc:(.text._ZN4avro6stream23testNonEmpty_fileStreamINS0_5Fill2ENS0_7Verify1EEEvRKNS0_8TestDataE[void
    avro::stream::testNonEmpty_fileStream<avro::stream::Fill2,
    avro::stream::Verify1>(avro::stream::TestData const&)]+0x2d): undefined
    reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
    StreamTests.cc:(.text._ZN4avro6stream23testNonEmpty_fileStreamINS0_5Fill2ENS0_7Verify1EEEvRKNS0_8TestDataE[void
    avro::stream::testNonEmpty_fileStream<avro::stream::Fill2,
    avro::stream::Verify1>(avro::stream::TestData const&)]+0x1a8): undefined
    reference to `boost::filesystem3::detail::remove(boost::filesystem3::path
    const&, boost::system::error_code*)'
    CMakeFiles/StreamTests.dir/test/StreamTests.cc.o: In function `void
    avro::stream::testNonEmpty_fileStream<avro::stream::Fill1,
    avro::stream::Verify1>(avro::stream::TestData const&)':
    StreamTests.cc:(.text._ZN4avro6stream23testNonEmpty_fileStreamINS0_5Fill1ENS0_7Verify1EEEvRKNS0_8TestDataE[void
    avro::stream::testNonEmpty_fileStream<avro::stream::Fill1,
    avro::stream::Verify1>(avro::stream::TestData const&)]+0x35): undefined
    reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
    StreamTests.cc:(.text._ZN4avro6stream23testNonEmpty_fileStreamINS0_5Fill1ENS0_7Verify1EEEvRKNS0_8TestDataE[void
    avro::stream::testNonEmpty_fileStream<avro::stream::Fill1,
    avro::stream::Verify1>(avro::stream::TestData const&)]+0x1d5): undefined
    reference to `boost::filesystem3::detail::remove(boost::filesystem3::path
    const&, boost::system::error_code*)'
    CMakeFiles/StreamTests.dir/test/StreamTests.cc.o: In function `void
    avro::stream::testEmpty_fileStream<avro::stream::CheckEmpty2>()':
    StreamTests.cc:(.text._ZN4avro6stream20testEmpty_fileStreamINS0_11CheckEmpty2EEEvv[void
    avro::stream::testEmpty_fileStream<avro::stream::CheckEmpty2>()]+0x1c):
    undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
    StreamTests.cc:(.text._ZN4avro6stream20testEmpty_fileStreamINS0_11CheckEmpty2EEEvv[void
    avro::stream::testEmpty_fileStream<avro::stream::CheckEmpty2>()]+0xad):
    undefined reference to
    `boost::filesystem3::detail::remove(boost::filesystem3::path const&,
    boost::system::error_code*)'
    CMakeFiles/StreamTests.dir/test/StreamTests.cc.o: In function `void
    avro::stream::testEmpty_fileStream<avro::stream::CheckEmpty1>()':
    StreamTests.cc:(.text._ZN4avro6stream20testEmpty_fileStreamINS0_11CheckEmpty1EEEvv[void
    avro::stream::testEmpty_fileStream<avro::stream::CheckEmpty1>()]+0x27):
    undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
    StreamTests.cc:(.text._ZN4avro6stream20testEmpty_fileStreamINS0_11CheckEmpty1EEEvv[void
    avro::stream::testEmpty_fileStream<avro::stream::CheckEmpty1>()]+0x1f9):
    undefined reference to
    `boost::filesystem3::detail::remove(boost::filesystem3::path const&,
    boost::system::error_code*)'
    CMakeFiles/StreamTests.dir/test/StreamTests.cc.o: In function `void
    avro::stream::testNonEmpty_fileStream<avro::stream::Fill2,
    avro::stream::Verify2>(avro::stream::TestData const&)':
    StreamTests.cc:(.text._ZN4avro6stream23testNonEmpty_fileStreamINS0_5Fill2ENS0_7Verify2EEEvRKNS0_8TestDataE[void
    avro::stream::testNonEmpty_fileStream<avro::stream::Fill2,
    avro::stream::Verify2>(avro::stream::TestData const&)]+0x2d): undefined
    reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
    StreamTests.cc:(.text._ZN4avro6stream23testNonEmpty_fileStreamINS0_5Fill2ENS0_7Verify2EEEvRKNS0_8TestDataE[void
    avro::stream::testNonEmpty_fileStream<avro::stream::Fill2,
    avro::stream::Verify2>(avro::stream::TestData const&)]+0x1a8): undefined
    reference to `boost::filesystem3::detail::remove(boost::filesystem3::path
    const&, boost::system::error_code*)'
    collect2: ld returned 1 exit status
    make[2]: *** [StreamTests] Error 1
    make[1]: *** [CMakeFiles/StreamTests.dir/all] Error 2
    make: *** [all] Error 2

    **********************************************************************************************************************************





    2013/5/16 Travis L Pinney <travis.pinney@gmail.com>
    Hi Tianyuan,

    You should take a look here.

    https://github.com/cloudera/impala/issues/31

    Thanks,
    Travis



    On Wed, May 15, 2013 at 9:39 PM, FU Tianyuan wrote:

    Hi Anty,

    I am building Impala 1.0 now. But I have the same problem now. So I want
    to know did you sovle the boost link error and how did you solve this.
    Thank you!

    tianyuan


    2013/5/2 Anty Rao <ant.rao@gmail.com>
    Thanks Yukinori
    I will install a new boost version

    On Sat, Apr 27, 2013 at 9:10 AM, Yukinori SUDA wrote:

    Hi Anty,

    I could build impala 0.7.1 on CentOS 6.2.
    Then I installed boost 1.42 manually cause its rpm package(1.41)
    doesn't support "uuid".

    I used below as build option for boost.
    bjam --with-thread --with-filesystem --with-regex --with-system
    --layout=tagged threading=multi link=shared

    Hope this helps

    suda

    2013/4/27 Aaron T. Myers <atm@cloudera.com>

    Hi Anty,
    Moving this question over to impala-user@cloudera.org, which should
    be able to help you out with this issue.


    --
    Aaron T. Myers
    Software Engineer, Cloudera

    On Thu, Apr 25, 2013 at 8:53 PM, Anty.Rao wrote:

    When attempting to build impala from source ,i encounter following
    Linker error

    CMakeFiles/avrogencpp.dir/impl/avrogencpp.cc.o: In function `main':
    avrogencpp.cc:(.text+0x3891): undefined reference to
    `boost::program_options::options_description::options_description(std::basic_string<char,
    std::char_traits<char>, std::allocator<char> > const&, unsigned int,
    unsigned int)'
    collect2: ld returned 1 exit status

    make[2]: *** [avrogencpp] Error 1

    make[1]: *** [CMakeFiles/avrogencpp.dir/all] Error 2

    make[1]: *** Waiting for unfinished jobs....

    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `_Z41__static_initialization_and_destruction_0ii.clone.0':
    DataFileTests.cc:(.text+0xafa9): undefined reference to
    `boost::system::generic_category()'
    DataFileTests.cc:(.text+0xafb5): undefined reference to
    `boost::system::generic_category()'
    DataFileTests.cc:(.text+0xafc1): undefined reference to
    `boost::system::system_category()'
    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `DataFileTest::testTruncate()':
    DataFileTests.cc:(.text._ZN12DataFileTest12testTruncateEv[DataFileTest::testTruncate()]+0x127):
    undefined reference to
    `boost::filesystem3::detail::file_size(boost::filesystem3::path const&,
    boost::system::error_code*)'
    DataFileTests.cc:(.text._ZN12DataFileTest12testTruncateEv[DataFileTest::testTruncate()]+0x1a9):
    undefined reference to
    `boost::filesystem3::detail::file_size(boost::filesystem3::path const&,
    boost::system::error_code*)'
    CMakeFiles/DataFileTests.dir/test/DataFileTests.cc.o: In function
    `DataFileTest::testCleanup()':
    DataFileTests.cc:(.text._ZN12DataFileTest11testCleanupEv[DataFileTest::testCleanup()]+0xcd):
    undefined reference to
    `boost::filesystem3::detail::remove(boost::filesystem3::path const&,
    boost::system::error_code*)'
    collect2: ld returned 1 exit status

    make[2]: *** [DataFileTests] Error 1

    make[1]: *** [CMakeFiles/DataFileTests.dir/all] Error 2
    According to above error log, it seems the building process can't
    find boost library in link phase. I'm sure i have already install boost
    library in my box.
    impala can't be built successfully from source inherently?Can't
    someone shed lights on me ? My box is Centos 6.2




    --



    --
    Anty Rao

    --
    Anty Rao

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupimpala-user @
categorieshadoop
postedApr 26, '13 at 10:23p
activeMay 16, '13 at 8:32a
posts6
users4
websitecloudera.com
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase