Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 242776
Alias:
Product:
Component:
Status: NEW
Resolution:
Assigned To: AMD64 Project <amd64@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Maciej Blizinski <maciej.blizinski@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 242776 depends on: Show dependency tree
Bug 242776 blocks: 165270
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.








View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-10-19 14:51 0000
When following instructions at:
http://www.gentoo.org/proj/en/base/amd64/emul/index.xml




Reproducible: Always

Steps to Reproduce:
1. Script that reproduces the problem, meant to be ran on an amd64 system:

=============================================================================
#!/bin/bash
chroot_name="gentoo64-emul"
clean=yes
stage2="http://ftp.heanet.ie/pub/gentoo/releases/amd64/2008.0/stages/stage2-amd64-2008.0.tar.bz2"
sys_dirs="/dev /proc /sys /usr/portage"
for m in $sys_dirs
do
  umount ${chroot_name}${m}
done
wget -c "${stage2}"
if [[ "$(id -u)" != 0 ]]; then echo you need to be root; exit 1; fi
if [[ "${clean}" == yes ]]; then rm -rf "${chroot_name}"; fi
mkdir -p "${chroot_name}"
tar xfvjp stage2-amd64-2008.0.tar.bz2 -C ${chroot_name}
# Place files
cp /etc/resolv.conf ${chroot_name}/etc/resolv.conf
cat > ${chroot_name}/etc/make.conf <<EOF
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"
USE="bindist"
FEATURES="noman noinfo -unmerge-orphans"
MAKEOPTS="-j3"
EOF
cat > ${chroot_name}/set-up.sh <<EOF
find /usr/lib64 /lib64 -exec touch {} \;
rm /etc/make.profile
ln -s ../usr/portage/profiles/default-linux/amd64/dev/32bit-userland \
        /etc/make.profile
emerge --nodeps portage && rm -rf /usr/lib64/portage && source /etc/profile
emerge -e world
# Run bash interactively inside chroot
echo "You're inside chroot now."
bash
EOF

# Run chroot and execute script
mkdir ${chroot_name}/usr/portage
for m in /dev /proc /sys /usr/portage
do
  mount -o bind ${m} ${chroot_name}${m}
done
chroot ${chroot_name} /bin/bash -x /set-up.sh
=============================================================================


Actual Results:  
gcc  -O2 -pipe   -o ginfo dir.o display.o dribble.o echo-area.o filesys.o
footnotes.o gc.o indices.o info-utils.o info.o infodoc.o infomap.o m-x.o man.o
nodemenu.o nodes.o search.o session.o signals.o terminal.o tilde.o variables.o
window.o doc.o ../lib/libtxi.a ../gnulib/lib/libgnu.a   
terminal.o: In function `terminal_ring_bell':
terminal.c:(.text+0x3a): undefined reference to `tputs'
(...)
collect2: ld returned 1 exit status
make[3]: *** [ginfo] Error 1
make[3]: Leaving directory
`/var/tmp/portage/sys-apps/texinfo-4.11-r1/work/texinfo-4.11/info'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/var/tmp/portage/sys-apps/texinfo-4.11-r1/work/texinfo-4.11/info'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/sys-apps/texinfo-4.11-r1/work/texinfo-4.11'
make: *** [all] Error 2
 * 
 * ERROR: sys-apps/texinfo-4.11-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2407:  Called die
 * The specific snippet of code:
 *       emake || die "emake"
 *  The die message:
 *   emake
 * 
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/tmp/portage/sys-apps/texinfo-4.11-r1/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/sys-apps/texinfo-4.11-r1/temp/environment'.
 * 
 * 
 * ERROR: sys-apps/texinfo-4.11-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2407:  Called die
 * The specific snippet of code:
 *       emake || die "emake"
 *  The die message:
 *   emake
 * 
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/tmp/portage/sys-apps/texinfo-4.11-r1/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/sys-apps/texinfo-4.11-r1/temp/environment'.
 * 


Expected Results:  
'emerge -e world' should complete successfully


Portage 2.1.4.5 (default-linux/amd64/dev/32bit-userland, gcc-4.1.2,
glibc-2.6.1-r0, 2.6.27 x86_64)
=================================================================
System uname: 2.6.27 x86_64 Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz
Timestamp of tree: Fri, 17 Oct 2008 07:15:03 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r13
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r2
sys-devel/automake:  1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer multilib-strict noinfo noman sandbox
sfperms strict userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 berkdb bindist cli cracklib crypt cups dri fortran gdbm gpm iconv
ipv6 isdnlog midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl ppds
pppd python readline reflection session spl ssl tcpd unicode xorg zlib"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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" ELIBC="glibc"
INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga
neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb
tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL,
LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

------- Comment #1 From Maciej Blizinski 2008-10-20 07:22:21 0000 -------
Emerging ncurses fixes texinfo, but breaks sandbox

In other words, this works:

emerge ncurses
emerge texinfo

But then:

emerge -e world

fails at sandbox:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when seeking support:
!!!
/var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/work/build-amd64-i686-pc-linux-gnu/config.log
 * 
 * ERROR: sys-apps/sandbox-1.2.18.1-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2454:  Called econf 'src_compile'
'src_compile'
 *               ebuild.sh, line  519:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *  The die message:
 *   econf failed
 * 
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/temp/environment'.

Why isn't ncurses emerged before texinfo anyway? I can see that texinfo has
ncurses as a dependency:

RDEPEND="!=app-text/tetex-2*
    >=sys-libs/ncurses-5.2-r2
    nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
    nls? ( sys-devel/gettext )"

------- Comment #2 From Panagiotis Christopoulos 2008-10-21 17:03:10 0000 -------
This has to do with the old blubb's profile,
default-linux/amd64/dev/32bit-userland. README says:

ove the devel-profile 32bit-userland out of 2006.0

IMPORTANT
=========

Here's how to use this profile. Any other use will probably break your
installation, so you better follow it closely.

1. Download the latest amd64 stage2 tarball
2. Unpack it to your chroot location and do all the bind mounts
3. Chroot in
4. run `find /usr/lib64 /lib64 -exec touch {} \;'
5. remove the "CHOST=" line from /etc/make.conf
6. change the /etc/make.profile link to this profile
7. run `emerge -e world'

Dependencies might not always be quite correct. Don't use this profile for
anything else then creating emul-libs.

------- Comment #3 From Maciej Blizinski 2008-10-24 08:15:06 0000 -------
Has anyone been able to create an emul chroot recently? How?

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug