You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@impala.apache.org by Jim Apple <jb...@cloudera.com> on 2016/12/20 19:45:03 UTC

Linking failure when static linking asan build

I get the following when static linking the asan build. Has anyone
seen something like this before? I imagine this is an environment
issue, as this is working in jenkins.impala.io

/opt/Impala-Toolchain/kudu-e018a83/release/lib/libkudu_client.so.0.1.0:
error: undefined reference to '__cxa_throw_bad_array_new_length',
version 'CXXABI_1.3.8'
/opt/Impala-Toolchain/kudu-e018a83/release/lib/libkudu_client.so.0.1.0:
error: undefined reference to 'std::__throw_out_of_range_fmt(char
const*, ...)', version 'GLIBCXX_3.4.20'
/opt/Impala-Toolchain/gcc-4.9.2/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/bitset:770:
error: undefined reference to 'std::__throw_out_of_range_fmt(char
const*, ...)'
/opt/Impala-Toolchain/gcc-4.9.2/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/bits/stl_vector.h:803:
error: undefined reference to 'std::__throw_out_of_range_fmt(char
const*, ...)'
/opt/Impala-Toolchain/gcc-4.9.2/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/bitset:770:
error: undefined reference to 'std::__throw_out_of_range_fmt(char
const*, ...)'
/data/jenkins/workspace/verify-impala-toolchain-package-build/label/ec2-package-ubuntu-14-04/toolchain/build/gcc-4.9.2/include/c++/4.9.2/bits/basic_string.h:324:
error: undefined reference to 'std::__throw_out_of_range_fmt(char
const*, ...)'

I have tried bin/clean, opening a new terminal window,
bootstrap_toolchain, and deleting CMakeCache from Impala-lzo.

Re: Linking failure when static linking asan build

Posted by Todd Lipcon <to...@cloudera.com>.
For the ccache+distcc issue, you might want to try setting
CCACHE_COMPILERCHECK='%compiler% -v'. See the ccache man page under 'USING
CCACHE WITH OTHER COMPILER WRAPPERS' for more details.

-Todd

On Wed, Dec 21, 2016 at 3:57 AM, Tim Armstrong <ta...@cloudera.com>
wrote:

> I've seen some odd problems like this before when using the switch_compiler
> distcc command - I've accidentally got into a state where I've built some
> files with clang and some with gcc. It's a real mess since ccache interacts
> badly with the distcc wrapper script - it can't account for the wrapper
> script transparently switching between compilers.
>
> I had to clear ccache to get out of the situation a couple of times
>
> On Tue, Dec 20, 2016 at 11:45 AM, Jim Apple <jb...@cloudera.com> wrote:
>
> > I get the following when static linking the asan build. Has anyone
> > seen something like this before? I imagine this is an environment
> > issue, as this is working in jenkins.impala.io
> >
> > /opt/Impala-Toolchain/kudu-e018a83/release/lib/libkudu_client.so.0.1.0:
> > error: undefined reference to '__cxa_throw_bad_array_new_length',
> > version 'CXXABI_1.3.8'
> > /opt/Impala-Toolchain/kudu-e018a83/release/lib/libkudu_client.so.0.1.0:
> > error: undefined reference to 'std::__throw_out_of_range_fmt(char
> > const*, ...)', version 'GLIBCXX_3.4.20'
> > /opt/Impala-Toolchain/gcc-4.9.2/lib/gcc/x86_64-unknown-
> > linux-gnu/4.9.2/../../../../include/c++/4.9.2/bitset:770:
> > error: undefined reference to 'std::__throw_out_of_range_fmt(char
> > const*, ...)'
> > /opt/Impala-Toolchain/gcc-4.9.2/lib/gcc/x86_64-unknown-
> > linux-gnu/4.9.2/../../../../include/c++/4.9.2/bits/stl_vector.h:803:
> > error: undefined reference to 'std::__throw_out_of_range_fmt(char
> > const*, ...)'
> > /opt/Impala-Toolchain/gcc-4.9.2/lib/gcc/x86_64-unknown-
> > linux-gnu/4.9.2/../../../../include/c++/4.9.2/bitset:770:
> > error: undefined reference to 'std::__throw_out_of_range_fmt(char
> > const*, ...)'
> > /data/jenkins/workspace/verify-impala-toolchain-package-build/label/ec2-
> > package-ubuntu-14-04/toolchain/build/gcc-4.9.2/
> > include/c++/4.9.2/bits/basic_string.h:324:
> > error: undefined reference to 'std::__throw_out_of_range_fmt(char
> > const*, ...)'
> >
> > I have tried bin/clean, opening a new terminal window,
> > bootstrap_toolchain, and deleting CMakeCache from Impala-lzo.
> >
>



-- 
Todd Lipcon
Software Engineer, Cloudera

Re: Linking failure when static linking asan build

Posted by Jim Apple <jb...@cloudera.com>.
I also turned of distcc entirely, re-cleared the cache,
re-./bin/clean.sh-ed, and no luck.

On Tue, Dec 20, 2016 at 1:02 PM, Jim Apple <jb...@cloudera.com> wrote:
> Unfortunately, that didn't fix it for me.
>
> On Tue, Dec 20, 2016 at 12:57 PM, Tim Armstrong <ta...@cloudera.com> wrote:
>> I've seen some odd problems like this before when using the switch_compiler
>> distcc command - I've accidentally got into a state where I've built some
>> files with clang and some with gcc. It's a real mess since ccache interacts
>> badly with the distcc wrapper script - it can't account for the wrapper
>> script transparently switching between compilers.
>>
>> I had to clear ccache to get out of the situation a couple of times
>>
>> On Tue, Dec 20, 2016 at 11:45 AM, Jim Apple <jb...@cloudera.com> wrote:
>>
>>> I get the following when static linking the asan build. Has anyone
>>> seen something like this before? I imagine this is an environment
>>> issue, as this is working in jenkins.impala.io
>>>
>>> /opt/Impala-Toolchain/kudu-e018a83/release/lib/libkudu_client.so.0.1.0:
>>> error: undefined reference to '__cxa_throw_bad_array_new_length',
>>> version 'CXXABI_1.3.8'
>>> /opt/Impala-Toolchain/kudu-e018a83/release/lib/libkudu_client.so.0.1.0:
>>> error: undefined reference to 'std::__throw_out_of_range_fmt(char
>>> const*, ...)', version 'GLIBCXX_3.4.20'
>>> /opt/Impala-Toolchain/gcc-4.9.2/lib/gcc/x86_64-unknown-
>>> linux-gnu/4.9.2/../../../../include/c++/4.9.2/bitset:770:
>>> error: undefined reference to 'std::__throw_out_of_range_fmt(char
>>> const*, ...)'
>>> /opt/Impala-Toolchain/gcc-4.9.2/lib/gcc/x86_64-unknown-
>>> linux-gnu/4.9.2/../../../../include/c++/4.9.2/bits/stl_vector.h:803:
>>> error: undefined reference to 'std::__throw_out_of_range_fmt(char
>>> const*, ...)'
>>> /opt/Impala-Toolchain/gcc-4.9.2/lib/gcc/x86_64-unknown-
>>> linux-gnu/4.9.2/../../../../include/c++/4.9.2/bitset:770:
>>> error: undefined reference to 'std::__throw_out_of_range_fmt(char
>>> const*, ...)'
>>> /data/jenkins/workspace/verify-impala-toolchain-package-build/label/ec2-
>>> package-ubuntu-14-04/toolchain/build/gcc-4.9.2/
>>> include/c++/4.9.2/bits/basic_string.h:324:
>>> error: undefined reference to 'std::__throw_out_of_range_fmt(char
>>> const*, ...)'
>>>
>>> I have tried bin/clean, opening a new terminal window,
>>> bootstrap_toolchain, and deleting CMakeCache from Impala-lzo.
>>>

Re: Linking failure when static linking asan build

Posted by Jim Apple <jb...@cloudera.com>.
Unfortunately, that didn't fix it for me.

On Tue, Dec 20, 2016 at 12:57 PM, Tim Armstrong <ta...@cloudera.com> wrote:
> I've seen some odd problems like this before when using the switch_compiler
> distcc command - I've accidentally got into a state where I've built some
> files with clang and some with gcc. It's a real mess since ccache interacts
> badly with the distcc wrapper script - it can't account for the wrapper
> script transparently switching between compilers.
>
> I had to clear ccache to get out of the situation a couple of times
>
> On Tue, Dec 20, 2016 at 11:45 AM, Jim Apple <jb...@cloudera.com> wrote:
>
>> I get the following when static linking the asan build. Has anyone
>> seen something like this before? I imagine this is an environment
>> issue, as this is working in jenkins.impala.io
>>
>> /opt/Impala-Toolchain/kudu-e018a83/release/lib/libkudu_client.so.0.1.0:
>> error: undefined reference to '__cxa_throw_bad_array_new_length',
>> version 'CXXABI_1.3.8'
>> /opt/Impala-Toolchain/kudu-e018a83/release/lib/libkudu_client.so.0.1.0:
>> error: undefined reference to 'std::__throw_out_of_range_fmt(char
>> const*, ...)', version 'GLIBCXX_3.4.20'
>> /opt/Impala-Toolchain/gcc-4.9.2/lib/gcc/x86_64-unknown-
>> linux-gnu/4.9.2/../../../../include/c++/4.9.2/bitset:770:
>> error: undefined reference to 'std::__throw_out_of_range_fmt(char
>> const*, ...)'
>> /opt/Impala-Toolchain/gcc-4.9.2/lib/gcc/x86_64-unknown-
>> linux-gnu/4.9.2/../../../../include/c++/4.9.2/bits/stl_vector.h:803:
>> error: undefined reference to 'std::__throw_out_of_range_fmt(char
>> const*, ...)'
>> /opt/Impala-Toolchain/gcc-4.9.2/lib/gcc/x86_64-unknown-
>> linux-gnu/4.9.2/../../../../include/c++/4.9.2/bitset:770:
>> error: undefined reference to 'std::__throw_out_of_range_fmt(char
>> const*, ...)'
>> /data/jenkins/workspace/verify-impala-toolchain-package-build/label/ec2-
>> package-ubuntu-14-04/toolchain/build/gcc-4.9.2/
>> include/c++/4.9.2/bits/basic_string.h:324:
>> error: undefined reference to 'std::__throw_out_of_range_fmt(char
>> const*, ...)'
>>
>> I have tried bin/clean, opening a new terminal window,
>> bootstrap_toolchain, and deleting CMakeCache from Impala-lzo.
>>

Re: Linking failure when static linking asan build

Posted by Tim Armstrong <ta...@cloudera.com>.
I've seen some odd problems like this before when using the switch_compiler
distcc command - I've accidentally got into a state where I've built some
files with clang and some with gcc. It's a real mess since ccache interacts
badly with the distcc wrapper script - it can't account for the wrapper
script transparently switching between compilers.

I had to clear ccache to get out of the situation a couple of times

On Tue, Dec 20, 2016 at 11:45 AM, Jim Apple <jb...@cloudera.com> wrote:

> I get the following when static linking the asan build. Has anyone
> seen something like this before? I imagine this is an environment
> issue, as this is working in jenkins.impala.io
>
> /opt/Impala-Toolchain/kudu-e018a83/release/lib/libkudu_client.so.0.1.0:
> error: undefined reference to '__cxa_throw_bad_array_new_length',
> version 'CXXABI_1.3.8'
> /opt/Impala-Toolchain/kudu-e018a83/release/lib/libkudu_client.so.0.1.0:
> error: undefined reference to 'std::__throw_out_of_range_fmt(char
> const*, ...)', version 'GLIBCXX_3.4.20'
> /opt/Impala-Toolchain/gcc-4.9.2/lib/gcc/x86_64-unknown-
> linux-gnu/4.9.2/../../../../include/c++/4.9.2/bitset:770:
> error: undefined reference to 'std::__throw_out_of_range_fmt(char
> const*, ...)'
> /opt/Impala-Toolchain/gcc-4.9.2/lib/gcc/x86_64-unknown-
> linux-gnu/4.9.2/../../../../include/c++/4.9.2/bits/stl_vector.h:803:
> error: undefined reference to 'std::__throw_out_of_range_fmt(char
> const*, ...)'
> /opt/Impala-Toolchain/gcc-4.9.2/lib/gcc/x86_64-unknown-
> linux-gnu/4.9.2/../../../../include/c++/4.9.2/bitset:770:
> error: undefined reference to 'std::__throw_out_of_range_fmt(char
> const*, ...)'
> /data/jenkins/workspace/verify-impala-toolchain-package-build/label/ec2-
> package-ubuntu-14-04/toolchain/build/gcc-4.9.2/
> include/c++/4.9.2/bits/basic_string.h:324:
> error: undefined reference to 'std::__throw_out_of_range_fmt(char
> const*, ...)'
>
> I have tried bin/clean, opening a new terminal window,
> bootstrap_toolchain, and deleting CMakeCache from Impala-lzo.
>