Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170038 - crossdev fails to check for dependencies
Summary: crossdev fails to check for dependencies
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Low minor (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-08 22:52 UTC by Daniel Santos
Modified: 2007-03-09 17:44 UTC (History)
0 users

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


Attachments
crossdev binutils log (cross-x86_64-pc-linux-gnu:binutils-2.17:20070308-160217.log.gz,2.47 KB, application/octet-stream)
2007-03-08 22:59 UTC, Daniel Santos
Details
crossdev binutils log #2 (cross-x86_64-pc-linux-gnu-binutils.log.gz,2.70 KB, application/octet-stream)
2007-03-08 23:00 UTC, Daniel Santos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Santos 2007-03-08 22:52:46 UTC
I ran crossdev but the binutils needed sys-libs/gpm so the build failed.  This is so minor, I just had to dig through logs, to discover it was configure that failed and read the /var/tmp/portage............/work/build/config.log to discover that the C compiler failed because gpm.h wasn't found.  emerge -s gpm told me what it was called and that it wasn't installed, emerge gpm, crossdev again and fixed.

Either way, dependency checking might be considered

Reproducible: Always

Steps to Reproduce:
1.on an x86 box, unmerge sys-libs/gpm it it's installed
2.crossdev to make a toolchain for x86_64
3.that should re-produce the problem

Specifically, I used the below crossdev command.  I presumed that I needed to have the same use flags as the target host I was building for, so I added those as well.
USE="-glibc-compat20 -glibc-omitfp -hardened -ip28 -ip32r10k -nocxx -objc
        -objc++ -objc-gc -test -vanilla doc fortran gcj gtk mudflap nls nptl
        nptlonly" \
        crossdev --b 2.17 --g gcc-4.1.2 --l 2.5-r0 --k 2.6.20-gentoo-r1 -t x86_64-pc-linux-gnu


Actual Results:  
will attach logs


Portage 2.1.2.1-r1 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r0, 2.6.20-gentoo-r1 i686)
=================================================================
System uname: 2.6.20-gentoo-r1 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 07 Mar 2007 09:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r4
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.15
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
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.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext apache2 bash-completion berkdb bitmap-fonts boundschecking bzip2 cgi cli cracklib crypt cups dbus dri ftp gcj gdbm glibc-omitfp gpm h323 iconv ipv6 isdnlog java kerberos ldap libg++ lm_sensors md5sum midi mmx mmxext mtrr mudflap multislot multitarget mysql ncurses nls nptl nptlonly pam pcre perl php ppds pppd python readline reflection session spl sqllite sse ssl tcpd truetype-fonts type1-fonts unicode vim x86 xinetd xml xorg xsl zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mga neomagic nsc nv rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Daniel Santos 2007-03-08 22:59:39 UTC
Created attachment 112646 [details]
crossdev binutils log
Comment 2 Daniel Santos 2007-03-08 23:00:19 UTC
Created attachment 112647 [details]
crossdev binutils log #2
Comment 3 Daniel Santos 2007-03-08 23:07:56 UTC
bumping priority to P4 (the form didn't let me specify this)
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-03-08 23:11:42 UTC
Please, don't tarball/gzip/whatever-else tiny attachements; it's extremely annoying.
Comment 5 SpanKY gentoo-dev 2007-03-08 23:57:33 UTC
binutils should not need gmp

the logs you posted simply tell me:
checking for unistd.h... checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

you'll have to post the config.log file for me to give more of an answer
Comment 6 Daniel Santos 2007-03-09 16:01:02 UTC
(In reply to comment #5)
> you'll have to post the config.log file for me to give more of an answer

Crap, you're right, I didn't include it.  I'll try to reproduce the error, the problem is that I did an emerge --sync since then and my 1st attempt to reproduce it failed :(
Comment 7 Daniel Santos 2007-03-09 17:44:37 UTC
Ok, this is where I made my mistake, I looked at the wrong config.log (I needed to look at the libiberty/config.log and I mistook the below failed check for gmp.h (which I just reproduced) for the actual error (gmp.h not being *required*).

configure:2317: checking for correct version of gmp.h
configure:2330: gcc -c  -march=athlon-xp -pipe -O2   conftest.c 1>&5
configure:2320:17: error: gmp.h: No such file or directory
configure: In function 'main':
configure:2324: error: 'choke' undeclared (first use in this function)
configure:2324: error: (Each undeclared identifier is reported only once
configure:2324: error: for each function it appears in.)
configure:2324: error: expected ';' before 'me'
configure: failed program was:
#line 2319 "configure"
#include "confdefs.h"
#include "gmp.h"
int main() {

#if __GNU_MP_VERSION < 3
choke me
#endif

; return 0; }


Since I can't reproduce, I'm leaving this as invalid.  It's possible that the underlying cause was resolved in a patch I received after the emerge --sync