Hi,
I would need a cross-compiler from i686 to powerpc-eabi and I am trying to
build one (even though it's miles above my knowledge). I have the feeling I
spend "some" time chasing a problem related to this.
I took the binutils src.rpm and changed the spec file to:
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
--prefix=/usr --enable-shared --target=powerpc-elf32-eabi \
--host=${RPM_ARCH}-mandrake-linux
and put strip in verbose mode
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr
make prefix=$RPM_BUILD_ROOT/usr tooldir=$RPM_BUILD_ROOT/usr/ install \
install-info
LD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/lib ./binutils/strip-new -v \
$RPM_BUILD_ROOT/usr/bin/*
I type
SPECS]# rpm -bi --target=i686 binutils-cross.spec
First, I notice the configure line to be:
./configure --prefix=/usr --enable-shared --target=powerpc-elf32-eabi
--host=i386-mandrake-linux
Shouldn't it be i686-mandrake-linux? That would be what I'd type if I wasn't
trying to use rpm.
Then, it builds fine, but with rpm 47mdk, it was topping at the 'strip'
phase (hence the verbose mode) with a warning:
./binutils/strip-new -v /var/tmp/binutils-root/usr/bin/ar <...zipped...>
copy from /var/tmp/binutils-root/usr/bin/ar(elf32-little) to
/var/tmp/binutils-root/usr/bin/stKDgzr3(elf32-little)
lt-strip-new: Warning: Output file cannot represent architecture UNKNOWN!
Now, it goes on building the rpm package (yeah!), but I don't feel like
installing it to intall it.
I am surely doing something wrong...
=-=
kk1
>From: Chmouel Boudjnah <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: [Cooker] rpmrc still broken
>Date: 27 Jan 2000 18:30:33 +0100
>
>David Walluck <[EMAIL PROTECTED]> writes:
>
> > No, take a look at this. It says i386 where it should say i586. That
> > must be the problem since using rpm release 47 with an old rpmrc works
> > fine. So the rpmrc is at fault here.
>
>i am stupid, thanks.
>
> > --- rpmrc.broke Mon Jan 24 13:45:11 2000
> > +++ rpmrc.old Tue Jan 25 23:53:39 2000
> > @@ -110,17 +110,17 @@
>
> --Chmouel
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com