Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199677 - sys-libs/ncurses-5.6-r1 crosscompile fails
Summary: sys-libs/ncurses-5.6-r1 crosscompile fails
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL: https://quidecco.de/mediawiki/index.p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-19 17:54 UTC by zeuner
Modified: 2007-11-20 05:02 UTC (History)
0 users

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


Attachments
build log (build.log,20.96 KB, text/plain)
2007-11-19 17:55 UTC, zeuner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zeuner 2007-11-19 17:54:26 UTC
I'm trying to cross-compile a working Gentoo environment to an AMD 64-bit architecture on 32-bit host. I set up the cross-compile environment using the steps on https://quidecco.de/mediawiki/index.php/Converting_Gentoo_to_64-bit, and then tried to emerge ncurses. It fails when invoking make_keys in the build process because it compiles the executable using the target compiler instead of the host compiler. From what I read, the ebuild should be invoking configure with the --with-build-cc to specify the native compiler, which it does not do. Is this a bug in the ncurses ebuild or is crossdev providing some other means for this which I'm missing?

Reproducible: Always

Steps to Reproduce:
1. Set up cross-compile environment
2. run "emerge ncurses"
3. fail

Actual Results:  
die message

Expected Results:  
no die message, installed package

# emerge --info
Portage 2.1.3.19 (default-linux/amd64, gcc-4.1.1, unavailable, 2.6.22-gentoo-r2 i686)
=================================================================
System uname: 2.6.22-gentoo-r2 i686 AMD Athlon(tm) 64 Processor 3500+
Timestamp of tree: Mon, 19 Nov 2007 17:30:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r6, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -mtune=athlon64"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf"
CXXFLAGS="-O2 -march=athlon64 -mtune=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.pacific.net.au/linux/Gentoo http://mirror.qubenet.net/mirror/gentoo/ http://mirror.etf.bg.ac.yu/gentoo"
MAKEOPTS="-j2"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 berkdb bitmap-fonts cli cracklib crypt dri fortran iconv ipv6 isdnlog midi mudflap ncurses nls openmp pam pcre perl pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard" 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, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 zeuner 2007-11-19 17:55:39 UTC
Created attachment 136420 [details]
build log
Comment 2 SpanKY gentoo-dev 2007-11-20 05:02:07 UTC
your setup is incorrect

you say you're converting from 32bit to 64bit, yet you set your CBUILD to x86_64-pc-linux-gnu which means anything x86_64-pc-linux-gnu produces has to be executable at build time