This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: g++ cross distro compilation problem
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Nick Stokes <randomaccessiterator at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 19 Jan 2011 01:14:05 +0000
- Subject: Re: g++ cross distro compilation problem
- References: <AANLkTi=Et26_0c0sU4S+6b-cA_=YXA2_Mt0tiN3VUTsd@mail.gmail.com>
On 19 January 2011 00:39, Nick Stokes wrote:
>
> We stage the compilers, install, and test them on the compute nodes.
> Everything seems ok. But on the login node the C++ compiler spits out
> the following errors (for a simple hello world program):
>
> $ g++ hello.cpp
> In file included from
> /opt/gcc/4.4.3/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.4.3/../../../../include/c++/4.4.3/bits/localefwd.h:42,
> ? ? ? ? ? ? ? ? from
> /opt/gcc/4.4.3/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.4.3/../../../../include/c++/4.4.3/ios:42,
> ? ? ? ? ? ? ? ? from
> /opt/gcc/4.4.3/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.4.3/../../../../include/c++/4.4.3/ostream:40,
> ? ? ? ? ? ? ? ? from
> /opt/gcc/4.4.3/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.4.3/../../../../include/c++/4.4.3/iostream:40,
> ? ? ? ? ? ? ? ? from main.cpp:1:
> /opt/gcc/4.4.3/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.4.3/../../../../include/c++/4.4.3/x86_64-unknown-linux-gnu/bits/c++locale.h:52:
> error: 'uselocale' was not declared in this scope
This indicates that the compiler was built on a system which had the
necessary pieces for the C++ runtime library to be configured with
--enable-clocale=gnu (it will be used automatically if configure
detects it is supported)
Apparently on the system where it's installed something is missing.
Probably something in glibc, as Ian suggests.