bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cross compilation problems


From: Steve Bowman
Subject: Re: cross compilation problems
Date: Wed, 25 Oct 2000 02:07:23 -0700
User-agent: Mutt/1.2.5i

On Wed, Oct 25, 2000 at 12:37:12AM -0700, Steve Bowman wrote:
> On Wed, Oct 25, 2000 at 01:57:14AM -0500, Daniel E . Baumann wrote:
> > Well I tried this:
> > 
> > mkdir build; cd build
> > MIG=i386-gnu-mig CC=i386-gnu-gcc LD=i386-gnu-ld ../configure \
> > --build=i686-pc-linux-gnu  --host=i386-pc-gnu --target=i386-pc-gnu \
> > --prefix=/gnu

I think I mis-stated the need for --target.  I was thinking the last
option to configure was for target, but it appears to be for host and
the synopsis says this (i.e. "configure options host", that is, you can
leave out the --host flag if you put the host argument last).  Looking at
configure, I'm confused about the distinction between target and host
and can't readily discern it since target defaults to host unless it's
for cross-building cross tools where the machine your code will run on
(host?) may differ from from the machine you generate code for (target?).

> [snip]
> Hmmm.  I checked a few with ldd and they are looking for libc.so.6
> which doesn't look good.  These libs come with the gcc-i386-gnu package.
> I have version 1.7-4 of this package installed - and it looks broken.
> It worked last time I built gnumach, but maybe it doesn't need any of
> the broken libs.  If I cannot build either, I'll report a bug against
> gcc-i386-gnu.  And I may report one anyway if I can confirm it's really
> broken and not just my tired imagination.
> 
> > 
> > Using the dpkg-builpackage script where would you run that from? A build
> > directory?
> 
> >From the top directory (ls debian/rules should see a file if you're in
> the right dir).  Ummm.  If the cross-compiler really is broken, don't
> get your hopes up.  I'd expect it to try linking the same broken libs.

dpkg-buildpackage doesn't want to work for a cross-build, but I may not
have /etc/dpkg/cross* files configured correctly.  The defaults really
should work.

However, (cross-)building the old-fashioned way works for me!  I built
is as:

MIG=i386-gnu-mig CC=i386-gnu-gcc ../configure --prefix=/gnu i386-pc-gnu
make; make install

This was using gcc-i386-gnu 1.7-4, mig-i386-gnu 1.0-2, and dpkg-cross
1.13 .

So, I don't plan to file any bugs unless the default /etc/dpkg/cross*
files need attention.  Hmmm.  I'm getting warnings I'm not used to seeing
from a native build:

/usr/bin/i386-gnu-gcc: invalid character 45 in exportstr for prof-depend

hundreds of times (476) (yes I did a clean first).  Don't know yet if
it needs worrying about.  Apparently not, it boots!

HTH,
Steve

-- 
Steve Bowman  <address@hidden> (preferred)
Buckeye, AZ   <address@hidden> <address@hidden>
              <http://www.goodnet.com/~sbowman/>

Powered by Debian GNU/Linux and GNU/Hurd <http://www.debian.org>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]