difficulty building a cross-compiler with a fresh install

Wyatt Neal wyattnealster at gmail.com
Wed Jul 30 16:45:03 UTC 2008


the cross compiler i'm looking to build is one to produce  i386
compatable system v elf executables for freebsd.  the default gcc
installed with freebsd 6.1 produces i386 compatible freebsd elf
executables, not system v.

i've also found that i'm apparently building gcc improperly and with
the wrong version of binutils; however, changing the binutils to the
correct version hasn't helped and i'm still waiting on gcc's build to
get to/past the point where it's been crashing out.

On 7/30/08, Roland Smith <rsmith at xs4all.nl> wrote:
> On Tue, Jul 29, 2008 at 08:47:42PM -0400, Wyatt Neal wrote:
> > greetings,
> >
> > i've been running with a freebsd 6.1 system for a few days and i'm
> > having some oddities when trying to build a cross compiler on the
> > system.
>
> You don't say _what_ kind of cross-compiler you want.
>
> Use the available cross-compilers from ports. There is a good chance
> someone else has already sorted it out.
>
> You can find a complete list of cross-compilers with
> 'ls /usr/ports/devel/*-gcc/Makefile':
>
> /usr/ports/devel/arm-rtems-gcc/Makefile
> /usr/ports/devel/avr-gcc/Makefile
> /usr/ports/devel/cross-gcc/Makefile
> /usr/ports/devel/djgpp-gcc/Makefile
> /usr/ports/devel/i386-rtems-gcc/Makefile
> /usr/ports/devel/i960-rtems-gcc/Makefile
> /usr/ports/devel/m68k-rtems-gcc/Makefile
> /usr/ports/devel/mingw32-gcc/Makefile
> /usr/ports/devel/mips-rtems-gcc/Makefile
> /usr/ports/devel/msp430-gcc/Makefile
> /usr/ports/devel/powerpc-gcc/Makefile
> /usr/ports/devel/powerpc-rtems-gcc/Makefile
> /usr/ports/devel/sh-rtems-gcc/Makefile
> /usr/ports/devel/sparc-rtems-gcc/Makefile
>
> Note that cross-gcc is a master port for most of the others except
> mingw32-gcc. If you want to cross-compile for win32, use mingw32-gcc.
>
> Roland
> --
> R.F.Smith                                   http://www.xs4all.nl/~rsmith/
> [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
> pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
>
>


More information about the freebsd-questions mailing list