hawq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wen Lin <w...@pivotal.io>
Subject Re: Error building libyarn
Date Fri, 04 Mar 2016 01:55:30 GMT
I haven't met with such building error. Libyarn is built with GCC 4.4.2 and
tested here. So that's probably compiler difference causes this error.
It seems rethrow_if_nested is ambiguous to the compiler.
Would you like to add a "std::" before "rethrow_if_nested" and have a try?

Thanks!

On Fri, Mar 4, 2016 at 5:43 AM, Gagan Brahmi <gaganbrahmi@gmail.com> wrote:

> Hi Guys,
>
> Wondering if anyone has got around this problem earlier.
>
> I am getting the following error when I try to make libyarn.
>
> [ 32%] Building CXX object
> src/CMakeFiles/libyarn-shared.dir/libyarnclient/ApplicationClient.cpp.o
> cd /root/HAWQ/incubator-hawq-master/depends/libyarn/build/src &&
> /usr/bin/g++   -DTEST_HDFS_PREFIX=\"./\" -D_GNU_SOURCE
> -D__STDC_FORMAT_MACROS -Dlibyarn_shared_EXPORTS
> -fno-omit-frame-pointer -msse4.2 -Wl,--export-dynamic -std=c++0x -Wall
> -O2 -g -DNDEBUG -fPIC -I/usr/local/include
> -I/root/HAWQ/incubator-hawq-master/depends/libyarn/src
> -I/root/HAWQ/incubator-hawq-master/depends/libyarn/src/common
> -I/root/HAWQ/incubator-hawq-master/depends/libyarn/build/src
> -I/usr/include/libxml2
> -I/root/HAWQ/incubator-hawq-master/depends/libyarn/mock    -o
> CMakeFiles/libyarn-shared.dir/libyarnclient/ApplicationClient.cpp.o -c
>
> /root/HAWQ/incubator-hawq-master/depends/libyarn/src/libyarnclient/ApplicationClient.cpp
>
> /root/HAWQ/incubator-hawq-master/depends/libyarn/src/libyarnclient/ApplicationClient.cpp:
> In constructor ‘libyarn::ApplicationClient::ApplicationClient(std::string&,
> std::string&, std::string&)’:
>
> /root/HAWQ/incubator-hawq-master/depends/libyarn/src/libyarnclient/ApplicationClient.cpp:72:9:
> warning: format ‘%d’ expects argument of type ‘int’, but argument 4
> has type ‘std::vector<libyarn::RMInfo>::size_type {aka long unsigned
> int}’ [-Wformat]
>
> /root/HAWQ/incubator-hawq-master/depends/libyarn/src/libyarnclient/ApplicationClient.cpp:
> In function ‘void libyarn::HandleYarnFailoverException(const
> Yarn::YarnFailoverException&)’:
>
> /root/HAWQ/incubator-hawq-master/depends/libyarn/src/libyarnclient/ApplicationClient.cpp:139:28:
> error: call of overloaded ‘rethrow_if_nested(const
> Yarn::YarnFailoverException&)’ is ambiguous
>
> /root/HAWQ/incubator-hawq-master/depends/libyarn/src/libyarnclient/ApplicationClient.cpp:139:28:
> note: candidates are:
> In file included from
>
> /usr/local/gcc47/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/../../../../include/c++/4.7.4/exception:155:0,
>                  from
>
> /usr/local/gcc47/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/../../../../include/c++/4.7.4/ios:40,
>                  from
>
> /usr/local/gcc47/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/../../../../include/c++/4.7.4/ostream:40,
>                  from
>
> /usr/local/gcc47/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/../../../../include/c++/4.7.4/iostream:40,
>                  from
>
> /root/HAWQ/incubator-hawq-master/depends/libyarn/src/libyarnclient/ApplicationClient.cpp:20:
>
> /usr/local/gcc47/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/../../../../include/c++/4.7.4/bits/nested_exception.h:146:5:
> note: void std::rethrow_if_nested(const _Ex&) [with _Ex =
> Yarn::YarnFailoverException]
> In file included from
>
> /root/HAWQ/incubator-hawq-master/depends/libyarn/src/common/SessionConfig.h:24:0,
>                  from
>
> /root/HAWQ/incubator-hawq-master/depends/libyarn/src/libyarnclient/ApplicationClient.cpp:25:
>
> /root/HAWQ/incubator-hawq-master/depends/libyarn/src/common/ExceptionInternal.h:103:20:
> note: void Yarn::rethrow_if_nested(const T&) [with T =
> Yarn::YarnFailoverException]
> make[2]: ***
> [src/CMakeFiles/libyarn-shared.dir/libyarnclient/ApplicationClient.cpp.o]
> Error 1
> make[2]: Leaving directory
> `/root/HAWQ/incubator-hawq-master/depends/libyarn/build'
> make[1]: *** [src/CMakeFiles/libyarn-shared.dir/all] Error 2
> make[1]: Leaving directory
> `/root/HAWQ/incubator-hawq-master/depends/libyarn/build'
> make: *** [all] Error 2
>
> Any help or hints would be appreciated!
>
>
>
> Regards,
> Gagan Brahmi
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message