Re: Building a 32 bit chroot on amd64?

From: Brooks Talley <brooks_at_illuminati.org>
Date: Thu, 13 Sep 2007 15:47:52 -0700 (PDT)
----- "Michael Reifenberger" <mike_at_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_at_illuminati.org>
> > To: freebsd-current <freebsd-current_at_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
Received on Thu Sep 13 2007 - 20:47:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:17 UTC