Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 193904

Summary: app-misc/screen-4.0.3 fails to crosscompile with g-e armeb-softfloat-linux-uclibc due to configure error
Product: Gentoo Linux Reporter: Jason Cooper <jason+gentoobugs>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: ARM   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jason Cooper 2007-09-26 19:45:19 UTC
While building a rootfs for my nslu2 project (using crossdev/xmerge) I found a build failure in app-misc/screen-4.0.3.  The following built successfully using the armeb-... toolchain: uclibc ($SYSROOT != $ROOT), busybox, zlib, openssl, openssh, cracklib, shadow, openssh, db, ncurses.

### The error ###
...
checking how to run the C preprocessor... armeb-softfloat-linux-uclibc-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether armeb-softfloat-linux-uclibc-gcc needs -traditional... no
checking for library containing strerror... none required
configure: error: cannot run test program while cross compiling
See `config.log' for more details.

...
### End of error ###

Most of the results returned by google basically bypass the configure script by making a 'config.cache' file with the proper key=value pairs defined in it.  This doesn't seem like a proper solution.  I think the appropriate solution is to fix the configure scripts to detect a crosscompile build and bypass the tests.  

With that being said, I will work on a patch to screen's configure scripts.  In the mean time, does this mean no one has ever crosscompiled screen?  Am I missing something?

thx

Reproducible: Always

Steps to Reproduce:
1.xmerge --root /path/to/rootfs -av app-misc/screen
2.
3.




xmerge --info

Portage 2.1.3.9 (uclibc/arm/armeb, gcc-3.4.6, unavailable, 2.6.22-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r5 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
Timestamp of tree: Wed, 26 Sep 2007 13:00:01 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r5, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
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.16.1-r3, 2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="arm"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -pipe"
CHOST="armeb-softfloat-linux-uclibc"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer nodoc noinfo noman parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="arm bitmap-fonts cli cracklib dri midi minimal mudflap ncurses nptlonly openmp pcre readline reflection session spl static symlink truetype-fonts type1-fonts uclibc xorg zlib" 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="uclibc" INPUT_DEVICES="keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-26 19:46:09 UTC

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