Subject: Re:cross compiling procedure
To: None <port-hpcmips@netbsd.org>
From: Steven Sartorius <ssartor@bellatlantic.net>
List: port-hpcmips
Date: 08/06/2000 10:27:02
jun ebihara wrote:
> Date: Sat, 05 Aug 2000 00:35:17 +0900
> From: Jun Ebihara <jun@soum.co.jp>
> To: port-hpcmips@netbsd.org
> Subject: Re: cross compling procedure
>
> From: Warner Losh <imp@village.org>
> Subject: Re: cross compling procedure
> Date: Wed, 02 Aug 2000 10:12:17 -0600
>
> > In message <Pine.NEB.4.21.0008021614200.297-100000@odysseus.mono.org> David Brownlee writes:
> > : pkgsrc contains a number of cross compilers which should help -
> > : including cross/mipsel-netbsd.
> > Thanks for the pointer. I'll look at the netbsd binaries and see if I
> > can run them on FreeBSD or if I need to install NetBSD on a vmware
> > partition...
>
> See /pub/NetBSD/arch/hpcmips/cross/i386-hpcmips directory.
> 1. pkg_add mipsel-netbsd.tgz
> 2. hpcmips-make
>
>
I tried the above on my i386 1.5_ALPHA setup with no luck. The
mipsel-netbsd package installs into /usr/pkg/mipsel-netbsd so I adjusted
the hpcmips-make script accordingly. Trying to build fetchmail (or
anything else for that matter) from pkgsrc produces the following:
--=> Checksum OK for fetchmail-5.4.4.tar.gz.
===> Extracting for fetchmail-5.4.4
===> fetchmail-5.4.4 depends on file: /usr/pkg/bin/autoconf - found
===> Patching for fetchmail-5.4.4
===> Applying NetBSD patches for fetchmail-5.4.4
===> Configuring for fetchmail-5.4.4
(cd /usr/pkgsrc/mail/fetchmail/work/fetchmail-5.4.4; autoreconf)
creating cache ./config.cache
checking host system type... mipsel--netbsd
checking for gcc... /usr/pkg/mipsel-netbsd/bin/mipsel-netbsd-gcc
checking whether the C compiler
(/usr/pkg/mipsel-netbsd/bin/mipsel-netbsd-gcc -O2 -Wl,-R/usr/pkg/lib
-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.
*** Error code 1
I must be missing something in the toolchain setup but I'm not familiar
with cross compilers so I'm not sure what. Any help appreciated....
Thanks,
Steve