Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Sep 2007 15:47:52 -0700 (PDT)
From:      Brooks Talley <brooks@illuminati.org>
To:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: Building a 32 bit chroot on amd64?
Message-ID:  <29536115.52741189723672473.JavaMail.root@zmail.illuminati.org>
In-Reply-To: <20070914001247.C484@fw.reifenberger.com>

next in thread | previous in thread | raw e-mail | index | archive | help
----- "Michael Reifenberger" <mike@Reifenberger.com> wrote:
> On Thu, 13 Sep 2007, Brooks Talley wrote:
>
> > Date: Thu, 13 Sep 2007 14:02:04 -0700 (PDT)
> > From: Brooks Talley <brooks@illuminati.org>
> > To: freebsd-current <freebsd-current@freebsd.org>
> > Subject: Building a 32 bit chroot on amd64?
> >
> > Hi, everyone.  I'm trying to build a 32 bit chroot on a 7.0-CURRENT
> amd64 installation.  The sources are up to date.
> >
> > "make TARGET_ARCH=i386 buildworld" fails partway through with the
> message:
> >
>
> Could you try:
> make TARGET_ARCH=i386 TARGET_CPUTYPE=i386 buildworld

Well, that's different at least.  This time it breaks libgcc, with the clearly wrong but not surprising message that i386 doesn't support the x86_64 instruction set :)

Cheers
-b

===> gnu/lib/libgcc (obj,depend,all,install)
make -f /usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile MFILE=/usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile GCCDIR=/usr/src/gnu/lib/libgcc/../../../contrib/gcc tm.h
TARGET_CPU_DEFAULT=""  HEADERS="options.h i386/i386.h i386/unix.h i386/att.h dbxelf.h elfos.h freebsd-native.h freebsd-spec.h freebsd.h i386/freebsd.h defaults.h"  DEFINES=""  /bin/sh /usr/src/gnu/lib/libgcc/../../../contrib/gcc/mkconfig.sh tm.h
echo '#define EXTRA_MODES_FILE "i386/i386-modes.def"' >> tm.h
make -f /usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile MFILE=/usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile GCCDIR=/usr/src/gnu/lib/libgcc/../../../contrib/gcc tconfig.h
TARGET_CPU_DEFAULT=""  HEADERS="auto-host.h ansidecl.h"  DEFINES="USED_FOR_TARGET"  /bin/sh /usr/src/gnu/lib/libgcc/../../../contrib/gcc/mkconfig.sh tconfig.h
make -f /usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile MFILE=/usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile GCCDIR=/usr/src/gnu/lib/libgcc/../../../contrib/gcc options.h
awk -f /usr/src/gnu/lib/libgcc/../../../contrib/gcc/opt-gather.awk /usr/src/gnu/lib/libgcc/../../../contrib/gcc/c.opt /usr/src/gnu/lib/libgcc/../../../contrib/gcc/common.opt /usr/src/gnu/lib/libgcc/../../../contrib/gcc/config/i386/i386.opt > optionlist
awk -f /usr/src/gnu/lib/libgcc/../../../contrib/gcc/opt-functions.awk  -f /usr/src/gnu/lib/libgcc/../../../contrib/gcc/opth-gen.awk  < optionlist > options.h
make -f /usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile MFILE=/usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile GCCDIR=/usr/src/gnu/lib/libgcc/../../../contrib/gcc unwind.h
ln -sf /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-generic.h unwind.h
make -f /usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile MFILE=/usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile GCCDIR=/usr/src/gnu/lib/libgcc/../../../contrib/gcc gthr-default.h
ln -sf /usr/src/gnu/lib/libgcc/../../../contrib/gcc/gthr-posix.h gthr-default.h
/usr/bin/cc -c -O2 -fno-strict-aliasing -pipe -march=i386 -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -DHAVE_GTHR_DEFAULT  -I/usr/src/gnu/lib/libgcc/../../../contrib/gcclibs/include  -I/usr/src/gnu/lib/libgcc/../../../contrib/gcc/config -I/usr/src/gnu/lib/libgcc/../../../contrib/gcc -I.  -I/usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools  -fvisibility=hidden -DHIDE_EXPORTS -fPIC -fexceptions -D__GLIBC__=3 -DElfW=__ElfN -o unwind-dw2.o /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c
/usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:1: error: CPU you selected does not support x86-64 instruction set
/usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:1: error: CPU you selected does not support x86-64 instruction set




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?29536115.52741189723672473.JavaMail.root>