This is the mail archive of the libstdc++@gcc.gnu.org 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 configure.in 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.

Configury:

../configure --host=mipsel-hardhat-linux --build=i686-pc-linux-gnu
  --target=mipsel-hardhat-linux
  --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
  --infodir=/usr/share/info

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. 
  -I/opt/mvista/rpm-mips_fp_le/BUILD/gcc-3.0/objdir/mipsel-hardhat-linux/libstdc++-v3/include
  -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
  ../../../libstdc++-v3/src/gen-num-limits.cc

../../../libstdc++-v3/mknumeric_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 configure.in, 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]