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

Re: Cross-compiling on Debian systems?




On Thu, 18 Nov 1999, Ben Collins wrote:

> On Thu, Nov 18, 1999 at 02:38:26PM +0100, Erik Mouw wrote:
> > On Wed, 17 Nov 1999 19:52:42 -0800 (PST), ferret@phonewave.net wrote:
> > > ./xgcc -B./ -DCROSS_COMPILE -DIN_GCC    -O2 -I./include  -I. -I. \
> > > -I./config  -g0 \
> > >   -finhibit-size-directive -fno-inline-functions -fno-exceptions  \
> > >   -c ./crtstuff.c -DCRT_BEGIN -o crtbegin.o
> > > as: option `-s' is ambiguous
> > > make[1]: *** [crtbegin.o] Error 1
> > > make[1]: Leaving directory `gcc-m68k-linux-2.8.1'
> > > make: *** [build] Error 2
> > > 
> > > I get the exact same error if I use dpkg-buildpackage. I don't know enough
> > > about building gcc to know what's wrong. And this is the source package
> > > from ftp.ca.debian.org (us.debian.org not responding to me through lynx
> > > for some reason)
> > 
> > Looks like you're using the native binutils instead of cross binutils.
> 
> Installing binutils-multiarch and compiling a native gas handles this.
> 
> > > I also found out I need the binutils-m68k-linux package, and that's being
> > > downloaded as I type..
> > 
> > You also need libc and kernel header files for the target system. The
> > kernel has to be configured for the target system, but that can be done on
> > the build host.
> 
> Install dpkg-cross and convert the native sparc libc6 and libc6-dev
> packages. This will install them into /usr/sparc-linux/{include,lib} for
> the cross-compile.

Installed dpkg-cross (isn't listed in the FTP site but a package search
brought it up. And the FTP archive doesn't have a source package)

:# dpkg-cross --install sysvinit_2.76-3.deb libc6_2.0.105-2.deb \
dpkg_1.4.0.34.deb mount_2.9g-6.deb ldso_1.9.10-1.deb
:Building sysvinit-sparc-cross_2.76-3_all.deb
:Building libc6-sparc-cross_2.0.105-2_all.deb
:Building dpkg-sparc-cross_1.4.0.34_all.deb
:dpkg-cross: package mount doesn't provide any useful files. Skipping.
^^^^
This looks funny

:Building ldso-sparc-cross_1.9.10-1_all.deb
:Unpacking sysvinit-sparc-cross
:Unpacking libc6-sparc-cross
:Unpacking dpkg-sparc-cross
:Unpacking ldso-sparc-cross
:dpkg: dependency problems prevent configuration of sysvinit-sparc-cross:
: sysvinit-sparc-cross depends on mount-sparc-cross (>= 2.7l-1); however:
:  Package mount-sparc-cross is not installed.
:dpkg: error processing sysvinit-sparc-cross (--install):
: dependency problems - leaving unconfigured
:dpkg: dependency problems prevent configuration of libc6-sparc-cross:
: libc6-sparc-cross depends on sysvinit-sparc-cross (>= 2.76-1); however:
:  Package sysvinit-sparc-cross is not configured yet.
:dpkg: error processing libc6-sparc-cross (--install):
: dependency problems - leaving unconfigured
:dpkg: dependency problems prevent configuration of dpkg-sparc-cross:
: dpkg-sparc-cross depends on libc6-sparc-cross (>= 2.0.99); however:
:  Package libc6-sparc-cross is not configured yet.
: dpkg-sparc-cross depends on libncurses4-sparc-cross; however:
:  Package libncurses4-sparc-cross is not installed.
: dpkg-sparc-cross depends on libstdc++2.9-sparc-cross; however:
:  Package libstdc++2.9-sparc-cross is not installed.
:dpkg: error processing dpkg-sparc-cross (--install):
: dependency problems - leaving unconfigured
:Setting up ldso-sparc-cross (1.9.10-1) ...
:Errors were encountered while processing:
: sysvinit-sparc-cross
: libc6-sparc-cross
: dpkg-sparc-cross
:dpkg -i failed.

All the Sparc packages were moved using dpkg-move running on the Sparc.
I am doing this the right way?

-- Ferret no baka



Reply to: