Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 242776 - Building emul chroot fails: sys-apps/texinfo-4.11-r1 fails to compile
Summary: Building emul chroot fails: sys-apps/texinfo-4.11-r1 fails to compile
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: AMD64 Project
URL: http://www.gentoo.org/proj/en/base/am...
Whiteboard:
Keywords:
: 220937 (view as bug list)
Depends on:
Blocks: emul-tracker
  Show dependency tree
 
Reported: 2008-10-19 14:51 UTC by Maciej Blizinski
Modified: 2010-08-13 14:16 UTC (History)
3 users (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 Maciej Blizinski 2008-10-19 14:51:20 UTC
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 Maciej Blizinski 2008-10-20 07:22:21 UTC
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 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-10-21 17:03:10 UTC
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 Maciej Blizinski 2008-10-24 08:15:06 UTC
Has anyone been able to create an emul chroot recently? How?
Comment 4 Pacho Ramos gentoo-dev 2009-12-27 14:06:20 UTC
The guide is deprecated
Comment 5 Pacho Ramos gentoo-dev 2010-04-26 11:26:23 UTC
*** Bug 220937 has been marked as a duplicate of this bug. ***