Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151587 - sys-apps/texinfo-4.8-r2 fails to build when cross-compiling (crossdev)
Summary: sys-apps/texinfo-4.8-r2 fails to build when cross-compiling (crossdev)
Status: RESOLVED DUPLICATE of bug 133429
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-16 07:13 UTC by Gerry
Modified: 2006-10-16 07:41 UTC (History)
0 users

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 Gerry 2006-10-16 07:13:51 UTC
I set up a cross-compiler from x86_64 to i686 following these instructions:  http://www.gentoo.org/proj/en/base/embedded/cross-development.xml

Using the xmerge tool listed on that page, texinfo fails to build:

--- 8< ---
(...)
make: Entering directory `/var/tmp/portage/texinfo-4.8-r2/work/texinfo-4.8/info'rm -f doc.c key.c funs.h
../tools/info/makedoc ./session.c ./echo-area.c ./infodoc.c ./m-x.c ./indices.c ./nodemenu.c ./footnotes.c ./variables.c
make: ../tools/info/makedoc: Command not found
make: *** [funs.h] Error 127
make: Leaving directory `/var/tmp/portage/texinfo-4.8-r2/work/texinfo-4.8/info'

!!! ERROR: sys-apps/texinfo-4.8-r2 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  texinfo-4.8-r2.ebuild, line 47:   Called die

!!! emake doc.c
!!! If you need support, post the topmost build error, and the call stack if relevant.
--- 8< ---

The makedoc utility exists elsewhere, but after copying it over and trying to build again the build fails again complaining about missing libraries and such.  The problem seems to be that texinfo messes up the host/build systems, so it builds tools that it needs to run on the build system for the host system.

Workaround:  Compile texinfo as if the build system was i686 (ie trick configure into thinking it's not a cross-compile).  This obviously works on amd64, but wouldn't work on something that can't run x86 code.
Comment 1 Gerry 2006-10-16 07:14:14 UTC
emerge --info (build):
# emerge --info
Portage 2.1.1-r1 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r8 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System version 1.12.5
Last Sync: Mon, 16 Oct 2006 00:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ http://mirror.gentoo.no/"
LANG="nb_NO.UTF-8"
LC_ALL="nb_NO.UTF-8"
LINGUAS="no nb no_NO nb_NO"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/initng-portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 16bit 7zip S3TC X Xaw3d a52 aac aalib acl acpi alsa ao aotuv apache2 applet arts artworkextra asf audiofile bash-completion berkdb bitmap-fonts browserplugin bzip2 cairo capslib ccache cdparanoia cdr cli crypt css ctype cups curl cvs dbus dlloader dri dvd dvdr dvdread eds elf elibc_glibc emboss emul-linux-x86 encode esd exif expat fam fame fat ffmpeg firefox flac flash fortran gcj gd gdb gdbm gif gimp glitz glut glx gmp gnome gpm graphviz gstreamer gtk gtk2 gtkhtml guile gzip h323 hal i8x0 icecast idn ieee1394 imagemagick imap imlib imlib2 initng_plugins_also initng_plugins_bash_launcher initng_plugins_chdir initng_plugins_chroot initng_plugins_conflict initng_plugins_cpout initng_plugins_critical initng_plugins_cron initng_plugins_daemon initng_plugins_dev initng_plugins_dllaunch initng_plugins_envparser initng_plugins_find initng_plugins_fstat initng_plugins_history initng_plugins_idleprobe initng_plugins_initctl initng_plugins_interactive initng_plugins_iparser initng_plugins_last initng_plugins_limit initng_plugins_logfile initng_plugins_netprobe initng_plugins_ngc4 initng_plugins_pause initng_plugins_pidfile initng_plugins_provide initng_plugins_reload initng_plugins_renice initng_plugins_rlparser initng_plugins_simple_launcher initng_plugins_stcmd initng_plugins_stdout initng_plugins_suid initng_plugins_syncron initng_plugins_syslog initng_plugins_unneeded input_devices_joystick input_devices_keyboard input_devices_mouse intl ipv6 jabber jack jack-tmpfs java javascript joystick jpeg kde kdeenablefinal kdehiddenvisibility kernel_linux kqemu lame lcms ldap libcaca libg++ linguas_nb linguas_nb_NO linguas_no linguas_no_NO linuxthreads-tls logitech-mouse lua lzo mad matroska md5sum mhash mikmod ming mjpeg mmap mng mod modplug mono mozilla moznocompose moznoirc moznomail moznoroaming mp3 mp4 mp4live mpeg mpeg2 mplayer mpm-prefork musepack music musicbrainz ncurses nforce2 nls no nptl nptlonly nsplugin ntfs nvidia nvram objc ocaml ogg oggvorbis openal opengl openssh openssl oss pam paste64 pcre pdf perl php physfs png pnp povray ppds pppd python qemu-fast qt3 qt4 quicktime rar readline reflection samba scanner sdk sdl sdl-sound session sharedext sharedmem sid slang smp sms speex spell spl sse-filters ssl startup-notification stencil-buffer subtitles subversion svg sysfs tcpd tga theora thesaurus threads tiff timidity transcode truetype truetype-fonts type1 type1-fonts udev unicode usb userland_GNU vcd video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa videos vorbis wma wma123 wxwindows x264 xanim xine xml xml2 xmms xorg xpm xrandr xscreensaver xv xvid yv12 zip zlib"Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

xmerge --info (host):
# xmerge --info
Portage 2.1.1-r1 (default-linux/x86/no-nptl/2.4, gcc-4.1.1, unavailable, 2.6.17-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r8 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System version 1.12.5
Last Sync: Mon, 16 Oct 2006 00:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ http://mirror.gentoo.no/"
LANG="nb_NO.UTF-8"
LC_ALL="nb_NO.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa aotuv apm arts berkdb bitmap-fonts cli crypt cups dlloader dri eds elibc_glibc emboss encode esd fbcon foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib input_devices_joystick input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kdeenablefinal kernel_linux libg++ libwww mad mikmod minimal motif mp3 mpeg ncurses nls ogg opengl oss pam pcre perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts unicode userland_GNU video_cards_none vorbis x86 xml xmms xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-10-16 07:41:21 UTC

*** This bug has been marked as a duplicate of 133429 ***