This is the mail archive of the mailing list for the libstdc++ project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Does libstdc++ v3 not work with Canadian crosses?

On Wed, Jun 27, 2001 at 10:42:07AM -0700, Benjamin Kosnik wrote:
> > So --with-cross-host is passed automatically only if host != target.
> > The problem is that if --with-cross-host is not passed, the xcompiling=1
> > and NATIVE=0 block in libstdc++'s is never reached.  We try to
> > run mknumeric_limits.  It fails, because it was compiled for the target.  We
> > lose.
> I've built canadian crosses and host-x-host crosses before. How are you 
> configuring (exactly)?
> when building a cross compiler or canadian cross, the generic_limits file 
> is used and mknumeric_limits is bypassed.


../configure --host=mipsel-hardhat-linux --build=i686-pc-linux-gnu
  --enable-shared --enable-languages=c,c++ --enable-threads
  --prefix=/usr --exec-prefix=/usr
  --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
  --datadir=/usr/share --includedir=/usr/include
  --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var
  --sharedstatedir=/usr/share --mandir=/usr/share/man

The CC/AS/CC_FOR_TARGET etc etc environment variables point at an
x86-linux -> mips-linux cross toolchain.

And then I get:
running mknumeric_limits

mips_fp_le-gcc  -I. 
  -DHAVE_CONFIG_H -fno-exceptions
  -o /opt/mvista/rpm-mips_fp_le/BUILD/gcc-3.0/objdir/mipsel-hardhat-linux/libstdc++-v3/src/gen-num-limits

  /opt/mvista/rpm-mips_fp_le/BUILD/gcc-3.0/objdir/mipsel-hardhat-linux/libstdc++-v3/src/gen-num-limits: cannot execute binary file
gen-num-limits failed to execute, exiting.
mknumeric_limits failed to execute properly: exiting
make: *** [configure-target-libstdc++-v3] Error 1

>From reading mknumeric_limits and, it will only skip
running gen-num-limits if --with-cross-host is given explicitly; I
don't want to do that, since it isn't true, and effects things like the
garbage collector as well.

Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]