I created special directory. Chrooted to it. Configure /etc/make.conf so it should compile against -mcpu=i686 -O2. boostrap.sh was done, it broke on emerge system with error: Configured for linux-x86_64. * Compiling openssl-0.9.7e making all in crypto... make[1]: Entering directory `/var/tmp/portage/openssl-0.9.7e-r1/work/openssl-0.9 .7e/crypto' ( echo "#ifndef MK1MF_BUILD"; \ echo ' /* auto-generated by crypto/Makefile for crypto/cversion.c */'; \ echo ' #define CFLAGS "i686-pc-linux-gnu-gcc -fPIC -DOPENSSL_THREADS -D_REENTRA NT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -m64 -DL_ENDIAN -DTERMIO -Wall -DMD32_REG_T=int -mcpu=i686 -O2 -pipe -s -Wall -fomit-frame-pointer -Wa,--noexec stack"'; \ echo ' #define PLATFORM "linux-x86_64"'; \ echo " #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \ echo '#endif' ) >buildinf.h i686-pc-linux-gnu-gcc -I. -I.. -I../include -fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -m64 -DL_ENDIAN -DTERMIO -Wall -D MD32_REG_T=int -mcpu=i686 -O2 -pipe -s -Wall -fomit-frame-pointer -Wa,--noexecst ack -c -o cryptlib.o cryptlib.c cc1: sorry, unimplemented: 64-bit mode not compiled in make[1]: *** [cryptlib.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/openssl-0.9.7e-r1/work/openssl-0.9. 7e/crypto' make: *** [sub_all] Error 1 !!! ERROR: dev-libs/openssl-0.9.7e-r1 failed. !!! Function src_compile, Line 162, Exitcode 2 !!! make all failed !!! If you need support, post the topmost build error, NOT this status message. ------------------- emerge info: Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.200 41102-r1, 2.6.11-gentoo-r11 x86_64) ================================================================= System uname: 2.6.11-gentoo-r11 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.12 dev-lang/python: 2.3.4-r1 sys-apps/sandbox: 1.2.10 sys-devel/autoconf: [Not Present] sys-devel/automake: [Not Present] sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: [Not Present] virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-mcpu=i686 -O2 -pipe -s -Wall -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/co nfig /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/ shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=i686 -O2 -pipe -s -Wall -fexceptions" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/dis tributions/gentoo" LANG="pl" LC_ALL="pl" LINGUAS="POLI" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowex X aalib alsa apm arts avi berkdb bidi bitmap-fonts bounschecking bzip2 cdparanoia cdr crypt crypto cups divx4linux dlloader dvd dvdr emboss encode fb fb2 foomaticdb fortran gdbm ggi gif glut gnome gpm gtk gtk2 imlib ipv6 ithread j abber java java2 javascript jikes joystick jpeg jpg kde libg++ libwww mad mikmod mm x mmxex motif mp3 mpeg ncurses nls oggvorbis opengl oss pam pdflib perl plotutils p ng posix python qt quicktime readline sdl spell sse sse2 ssl svga tcpd threads tiff truetype truetype-fonts type1-fonts v4l win32codecs wmf x86 xine xml xml2 xmms xv zlib linguas_POLI userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY Reproducible: Always Steps to Reproduce: 1.make chroot to directory with stage1-x86-2005.0 unzipped 2.make /etc/make.conf so it should compile against x86 3.bootstrap.sh and then emerge system Expected Results: I would like to have the possibility to build an x86 system in the chroot from x86_64 system, wich is physically backward compatible. The same is with impossibility to emerge sources for x86 platform on x86_64. This prevented me of making some benchmarks in gaining the efficiency by "by compilation" optimising the code.
did you use linux32 chroot /chrootpath /bin/bash when entering the chroot?
No I'll try this now.
No, I will try it now. Ok it works. Sorry for my indolence.