Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 167166 - cross-mingw32/gcc-4.1.2 fails to compile: Unable to determine what USE flags cross-mingw32/mingw-runtime-3.9 was built with
Summary: cross-mingw32/gcc-4.1.2 fails to compile: Unable to determine what USE flags ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 167756 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-16 08:57 UTC by Bolek Tekielski
Modified: 2007-02-20 16:23 UTC (History)
2 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 Bolek Tekielski 2007-02-16 08:57:45 UTC
crossdev fails to compile mingw32-gcc-4.2.1 with error
"!!! Unable to determine what USE flags cross-mingw32/mingw-runtime-3.9 was built with"



Reproducible: Always

Steps to Reproduce:
1.emerge -uD world (portage tries to update cross-mingw32/gcc)
2.crossdev mingw32
3.




emerge --info
Portage 2.1.2-r9 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 16 Feb 2007 06:20:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 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.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="-O2 -march=pentium4 -pipe"
Comment 1 xeb 2007-02-16 20:37:08 UTC
I have the same problem.
The probleam have started 16.02.2007 after emerge --sync.
Comment 2 xeb 2007-02-16 21:02:06 UTC
It seems, that this causes trouble:
diff -u eutils.eclass.old eutils.eclass
--- eutils.eclass.old   2007-01-31 08:05:53.000000000 +0300
+++ eutils.eclass       2007-02-14 20:05:52.000000000 +0300
@@ -1,6 +1,6 @@
 # Copyright 1999-2006 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.272 2007/01/31 04:40:31 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.273 2007/02/14 16:49:46 cardoe Exp $
 #
 # This eclass is for general purpose functions that most ebuilds
 # have to implement themselves.
@@ -1654,6 +1654,16 @@
        # injected or package.provided
        [[ ! -e ${USEFILE} ]] && die "Unable to determine what USE flags $PKG was built with"

+       # if the IUSE file doesn't exist, the read will error out, we need to handle
+       # this gracefully
+       if [[ ! -e ${IUSEFILE} ]] ; then
+               case ${missing_action} in
+                       true)   return 0;;
+                       false)  return 1;;
+                       die)    die "Unable to determine what USE flags $PKG was built with";;
+               esac
+       fi
+
        local IUSE_BUILT=$(<${IUSEFILE})
        # Don't check USE_EXPAND #147237
        local expand
Comment 3 SpanKY gentoo-dev 2007-02-17 00:13:09 UTC
fixed in cvs
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-02-20 16:23:57 UTC
*** Bug 167756 has been marked as a duplicate of this bug. ***