Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 390195 - Bootstrap fails with "/usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory "
Summary: Bootstrap fails with "/usr/include/linux/errno.h:4:23: error: asm/errno.h: No...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-11 16:20 UTC by Nicolas Pinto
Modified: 2017-11-14 15:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Pinto 2011-11-11 16:20:49 UTC
I'm trying to bootstrap a Gentoo Prefix on Ubuntu Natty 11.04 (i386) w/o linux-headers installed and I'm getting the error: "asm/errno.h: No such file or directory "

Reproducible: Always

Steps to Reproduce:
1. Follow bootstrap tutorial until:
2. emerge --oneshot --nodeps "=gcc-4.2*"
Actual Results:  
/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/./gcc/xgcc -B/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/./gcc/ -B/home/pinto/gentoo/usr/i686-pc-linux-gnu/bin/ -B/home/pinto/gentoo/usr/i686-pc-linux-gnu/lib/ -isystem /home/pinto/gentoo/usr/i686-pc-linux-gnu/include -isystem /home/pinto/gentoo/usr/i686-pc-linux-gnu/sys-include -O2 -O2 -O2 -march=i686 -pipe  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/gcc-4.2.4/gcc -I/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/gcc-4.2.4/gcc/. -I/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/gcc-4.2.4/gcc/../include -I/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/gcc-4.2.4/gcc/../libcpp/include  -I/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/gcc-4.2.4/gcc/../libdecnumber -I../libdecnumber  -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder   -fno-omit-frame-pointer -fno-asynchronous-unwind-tables -fPIC \
          -c /home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/gcc-4.2.4/gcc/crtstuff.c -DCRT_BEGIN -DCRTSTUFFS_O \
          -o crtbeginS.o
make[4]: *** [crtbegin.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from /usr/include/bits/errno.h:25,
                 from /usr/include/errno.h:36,
                 from /home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/gcc-4.2.4/gcc/tsystem.h:96,
                 from /home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/gcc-4.2.4/gcc/crtstuff.c:68:
/usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory
make[4]: *** [crtbeginS.o] Error 1
make[4]: Leaving directory `/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/gcc'
make[3]: *** [all-stage1-gcc] Error 2
make[3]: Leaving directory `/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build'
make[2]: *** [stage1-bubble] Error 2
make[2]: Leaving directory `/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build'
make[1]: *** [bootstrap-lean] Error 2
make[1]: Leaving directory `/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build'
emake failed
 * ERROR: sys-devel/gcc-4.2.4-r01.4 failed (compile phase):
 *   emake failed with bootstrap-lean
 *
 * Call stack:
 *     ebuild.sh, line   98:  Called src_compile
 *   environment, line 4655:  Called gcc_src_compile
 *   environment, line 2904:  Called toolchain_src_compile
 *   environment, line 5482:  Called gcc_do_make
 *   environment, line 2742:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${EPREFIX}${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 *
 * If you need support, post the output of 'emerge --info =sys-devel/gcc-4.2.4-r01.4',
 * the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.2.4-r01.4'.
 * The complete build log is located at '/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/build.log'.
 * The ebuild environment file is located at '/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/environment'.
 * S: '/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build'

 * Messages for package sys-devel/gcc-4.2.4-r01.4:

 * Can't read /config.sub, skipping..
 * Can't read /config.guess, skipping..
 * ERROR: sys-devel/gcc-4.2.4-r01.4 failed (compile phase):
 *   emake failed with bootstrap-lean
 * 
 * Call stack:
 *     ebuild.sh, line   98:  Called src_compile
 *   environment, line 4655:  Called gcc_src_compile
 *   environment, line 2904:  Called toolchain_src_compile
 *   environment, line 5482:  Called gcc_do_make
 *   environment, line 2742:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${EPREFIX}${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 * 
 * If you need support, post the output of 'emerge --info =sys-devel/gcc-4.2.4-r01.4',
 * the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.2.4-r01.4'.
 * The complete build log is located at '/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/build.log'.
 * The ebuild environment file is located at '/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/environment'.
 * S: '/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build'

 * Messages for package sys-devel/gcc-4.2.4-r01.4:   

 * Can't read /config.sub, skipping..
 * Can't read /config.guess, skipping..
 * ERROR: sys-devel/gcc-4.2.4-r01.4 failed (compile phase):
 *   emake failed with bootstrap-lean
 * 
 * Call stack:
 *     ebuild.sh, line   98:  Called src_compile
 *   environment, line 4655:  Called gcc_src_compile 
 *   environment, line 2904:  Called toolchain_src_compile
 *   environment, line 5482:  Called gcc_do_make
 *   environment, line 2742:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${EPREFIX}${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 * 
 * If you need support, post the output of 'emerge --info =sys-devel/gcc-4.2.4-r01.4',
 * the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.2.4-r01.4'.
 * The complete build log is located at '/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/build.log'.
 * The ebuild environment file is located at '/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/environment'.
 * S: '/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build'


Expected Results:  
gcc successfully emerged

$ emerge --info =sys-devel/gcc-4.2.4-r01.4
Portage 2.2.01.19572-prefix (prefix/linux/x86, gcc-4.5.2, unavailable, 2.6.38-12-generic i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.38-12-generic-i686-with-debian-squeeze-sid
Timestamp of tree: Thu, 10 Nov 2011 22:40:02 +0000
app-shells/bash:      4.2_p10
sys-devel/binutils:   2.21.53.0.2
sys-devel/gcc-config: 1.4.1-r00.2
Repositories: gentoo_prefix
Installed sets: 
ACCEPT_KEYWORDS="~x86-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -m32"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf"
CPPFLAGS="-I/home/pinto/gentoo/usr/include"
CXXFLAGS="-O2 -march=i686 -pipe -m32"
DISTDIR="/home/pinto/gentoo/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-L/home/pinto/gentoo/usr/lib -Wl,-rpath=/home/pinto/gentoo/usr/lib -L/home/pinto/gentoo/lib -Wl,-rpath=/home/pinto/gentoo/lib"
MAKEOPTS="-j 3"
PKGDIR="/home/pinto/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/home/pinto/gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/pinto/gentoo/var/tmp"
PORTDIR="/home/pinto/gentoo/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="bootstrap bzip2 cli cracklib crypt cxx dri iconv ipv6 modules mudflap ncurses nptl nptlonly openmp pppd prefix readline session sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


$ emerge -pqv =sys-devel/gcc-4.2.4-r01.4
[ebuild  N    ] dev-libs/gmp-5.0.2  USE="-nocxx" 
[ebuild  N    ] sys-libs/ncurses-5.7-r6  USE="cxx unicode -ada -debug -doc (-gpm) -minimal -profile -static-libs -trace" 
[ebuild  N    ] sys-libs/zlib-1.2.5-r2 
[ebuild  N    ] sys-devel/gnuconfig-20110814 
[ebuild  N    ] virtual/libiconv-0 
[ebuild  N    ] sys-apps/texinfo-4.13-r1  USE="-nls -static" 
[ebuild  N    ] dev-libs/mpfr-3.0.1 
[ebuild  N    ] sys-devel/gcc-4.2.4-r01.4  USE="bootstrap mudflap nptl openmp (-altivec) -build -doc -fortran -gcj -gtk (-hardened) (-libffi) (-multilib) -multislot -nls -nocxx -objc -objc++ -objc-gc -test -vanilla"
Comment 1 Nicolas Pinto 2011-11-11 16:30:20 UTC
Running "emerge --oneshot --nodeps '=linux-headers-2.6.38'" fixes the "asm/errno.h: No such file or directory" error but produce this new issue:


/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/./gcc/xgcc -B/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/.
/gcc/ -B/home/pinto/gentoo/usr/i686-pc-linux-gnu/bin/ -B/home/pinto/gentoo/usr/i686-pc-linux-gnu/lib/ -isystem /home/pinto/gentoo/usr/i686-pc-linux-gnu/includ
e -isystem /home/pinto/gentoo/usr/i686-pc-linux-gnu/sys-include -O2  -O2 -O2 -march=i686 -pipe  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmis
sing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -shared -nodefaultlibs -Wl,--s
oname=libgcc_s.so.1 -Wl,--version-script=libgcc/./libgcc.map -o ./libgcc_s.so.1.tmp  libgcc/./_muldi3_s.o libgcc/./_negdi2_s.o libgcc/./_lshrdi3_s.o libgcc/./
_ashldi3_s.o libgcc/./_ashrdi3_s.o libgcc/./_cmpdi2_s.o libgcc/./_ucmpdi2_s.o libgcc/./_clear_cache_s.o libgcc/./_enable_execute_stack_s.o libgcc/./_trampolin
e_s.o libgcc/./__main_s.o libgcc/./_absvsi2_s.o libgcc/./_absvdi2_s.o libgcc/./_addvsi3_s.o libgcc/./_addvdi3_s.o libgcc/./_subvsi3_s.o libgcc/./_subvdi3_s.o 
libgcc/./_mulvsi3_s.o libgcc/./_mulvdi3_s.o libgcc/./_negvsi2_s.o libgcc/./_negvdi2_s.o libgcc/./_ctors_s.o libgcc/./_ffssi2_s.o libgcc/./_ffsdi2_s.o libgcc/.
/_clz_s.o libgcc/./_clzsi2_s.o libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o libgcc/./_ctzdi2_s.o libgcc/./_popcount_tab_s.o libgcc/./_popcountsi2_s.o libgcc/./_p
opcountdi2_s.o libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o libgcc/./_powisf2_s.o libgcc/./_powidf2_s.o libgcc/./_powixf2_s.o libgcc/./_powitf2_s.o libgcc/
./_mulsc3_s.o libgcc/./_muldc3_s.o libgcc/./_mulxc3_s.o libgcc/./_multc3_s.o libgcc/./_divsc3_s.o libgcc/./_divdc3_s.o libgcc/./_divxc3_s.o libgcc/./_divtc3_s
.o libgcc/./_fixunssfsi_s.o libgcc/./_fixunsdfsi_s.o libgcc/./_fixunsxfsi_s.o libgcc/./_fixsfdi_s.o libgcc/./_fixunssfdi_s.o libgcc/./_floatdisf_s.o libgcc/./
_floatundisf_s.o libgcc/./_fixdfdi_s.o libgcc/./_fixunsdfdi_s.o libgcc/./_floatdidf_s.o libgcc/./_floatundidf_s.o libgcc/./_fixxfdi_s.o libgcc/./_fixunsxfdi_s
.o libgcc/./_floatdixf_s.o libgcc/./_floatundixf_s.o libgcc/./_fixtfdi_s.o libgcc/./_fixunstfdi_s.o libgcc/./_floatditf_s.o libgcc/./_floatunditf_s.o libgcc/.
/_divdi3_s.o libgcc/./_moddi3_s.o libgcc/./_udivdi3_s.o libgcc/./_umoddi3_s.o libgcc/./_udiv_w_sdiv_s.o libgcc/./_udivmoddi4_s.o libgcc/./unwind-dw2_s.o libgc
c/./unwind-dw2-fde-glibc_s.o libgcc/./unwind-sjlj_s.o libgcc/./gthr-gnat_s.o libgcc/./unwind-c_s.o -lc && rm -f ./libgcc_s.so && if [ -f ./libgcc_s.so.1 ]; th
en mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi && mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so
/home/pinto/gentoo/usr/i686-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[4]: *** [libgcc_s.so] Error 1
make[4]: Leaving directory `/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/gcc'
make[3]: *** [libgcc.a] Error 2
make[3]: Leaving directory `/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/pinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build'
make: *** [bootstrap-lean] Error 2
emake failed
 * ERROR: sys-devel/gcc-4.2.4-r01.4 failed (compile phase):
 *   emake failed with bootstrap-lean
 * 
 * Call stack:
 *     ebuild.sh, line   98:  Called src_compile
 *   environment, line 4655:  Called gcc_src_compile
 *   environment, line 2904:  Called toolchain_src_compile
 *   environment, line 5482:  Called gcc_do_make
 *   environment, line 2742:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${EPREFIX}${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 * 
 * If you need support, post the output of 'emerge --info =sys-devel/gcc-4.2.4-r01.4',
 * the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.2.4-r01.4'.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-11-16 16:15:08 UTC
Is this still an issue?
Comment 3 Nicolas Pinto 2011-11-16 21:28:49 UTC
Yes, installing "linux-headers" helped but I'm still stock at the "cannot find -lc" error. I haven't been able to install Gentoo Prefix on *any* Ubuntu >=11.04 because of these issues. What am I missing?
Comment 4 Fabian Groffen gentoo-dev 2011-11-29 19:34:26 UTC
do you have a /lib/libc.so or /lib64/libc.so or /lib32/libc.so ?
Comment 5 Nicolas Pinto 2011-11-30 03:24:37 UTC
I don't, only "/usr/lib/i386-linux-gnu/libc.so".
Comment 6 Fabian Groffen gentoo-dev 2011-11-30 07:40:53 UTC
ohhh K.

I see.  But you had to install linux-headers?  Are you sure you installed development tools?

If Ubuntu sticks to this location for libc, likely all host libraries won't be found.  That probably means they use a patch on gcc/ld/(ld.so perhaps).
Comment 7 Michael Haubenwallner (RETIRED) gentoo-dev 2011-11-30 08:11:35 UTC
(In reply to comment #0)
> I'm trying to bootstrap a Gentoo Prefix on Ubuntu Natty 11.04 (i386) w/o

Sorry to say, but here in my company I refuse to support the multi-arch thingy used in Ubuntu 11 for now (mainly due to lack of manpower), especially as long as there are chances it won't evolve as some standard used by multiple distributions.

Surprisingly I've got more success bootstrapping an i386 prefix on an x86_64 ubuntu, however didn't get to finalize.
Comment 8 Nicolas Pinto 2011-11-30 12:17:51 UTC
> I see.  But you had to install linux-headers?  

Yes.

> Are you sure you installed
> development tools?

Which package(s) do you refer to?
Comment 9 Nicolas Pinto 2011-11-30 12:22:12 UTC
> Surprisingly I've got more success bootstrapping an i386 prefix on an x86_64
> ubuntu, however didn't get to finalize.

May I ask for the commands you used on x84_64 ? I also have a 11.04 64bit and can't get it to bootstrap...
Comment 10 Michael Haubenwallner (RETIRED) gentoo-dev 2011-11-30 16:26:20 UTC
(In reply to comment #9)
> May I ask for the commands you used on x84_64 ? I also have a 11.04 64bit and
> can't get it to bootstrap...

Well, I'm always using prefix-launcher here:
https://sourceforge.net/apps/mediawiki/prefix-launcher/index.php?title=Main_Page

Unfortunately, prefix-launcher doesn't provide a recent enough portage supporting EAPI 4 yet, so all /my/ prefix bootstraps are broken ATM - on any platform here, for quite some time now.
I hope to be able to fix that situation somewhere in near future...

Anyway - retrying to install the in-company prefix-fork (we do stable prefix keywords here)...

The first thing I see necessary is to install prefix-launcher itself (version 2.2.2 now) with this additional setting:
$ make install zlib_SUPPLY=INSTALL

And I remember to have installed a few 32bit development packages in ubuntu, which interestingly do not install multi-arch libs but traditional ones, which is the reason for a little more success with 32bit prefix on 64bit ubuntu11 than on 32bit ubuntu11.
However, I don't remember which packages I've added.

The next failure here is when building python: modules crypt and nis missing - but this might be fixed in upstream prefix already...
Comment 11 Fabian Groffen gentoo-dev 2011-11-30 16:31:09 UTC
(In reply to comment #10)
> The next failure here is when building python: modules crypt and nis missing -
> but this might be fixed in upstream prefix already...

Yes, see the append-ldflag trickery in the ebuild, it needs to be told some more directories (and in the right way, there was an error in there previously).
Comment 12 Nicolas Pinto 2012-07-09 04:41:08 UTC
Patching binutils as in https://bugs.gentoo.org/show_bug.cgi?id=400839 fixed it. Closing the bug.
Comment 13 Fabian Groffen gentoo-dev 2012-07-09 06:47:12 UTC
we didn't patch anything yet in the prefix overlay
Comment 14 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-08-10 18:57:39 UTC
(In reply to comment #12)
> Patching binutils as in https://bugs.gentoo.org/show_bug.cgi?id=400839 fixed
> it. Closing the bug.

I also have a (hacky?) patch for binutils that helps with multiarch distros (e.g. Ubuntu 11.04+)

--- ld/genscripts.sh.orig       2012-07-08 12:13:31.405770577 -0400
+++ ld/genscripts.sh    2012-07-07 19:57:39.285777628 -0400
@@ -241,7 +241,8 @@
   fi
 fi
 
-LIB_SEARCH_DIRS=`echo ${LIB_PATH} | sed -e 's/:/ /g' -e 's/\([^ ][^ ]*\)/SEARCH_DIR(\\"\1\\");SEARCH_DIR(\\"\1\\/'${TOOL_LIB}'");/g'`
+SYSTEM_SEARCH_DIRS=`/usr/bin/ld -verbose | grep SEARCH_DIR`
+LIB_SEARCH_DIRS=`echo ${LIB_PATH} | sed -e 's/:/ /g' -e 's/\([^ ][^ ]*\)/SEARCH_DIR(\\"\1\\");SEARCH_DIR(\\"\1\\/'${TOOL_LIB}'");/g'`${SYSTEM_SEARCH_DIRS}
 
 # We need it for testsuite.
 set $EMULATION_LIBPATH

So now Prefix works seamlessly there too!
Comment 15 Fabian Groffen gentoo-dev 2017-11-14 15:01:55 UTC
Bootstraps of Ubuntu go through RAP these days to avoid problems like these.