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

Bug 391357

Summary: toolchain.eclass calls internal function gcc-lang-supported() before emerge does unpack()
Product: Gentoo Linux Reporter: Bill Prendergast <dek.devel>
Component: EclassesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED DUPLICATE    
Severity: trivial CC: phmagic
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Bill Prendergast 2011-11-22 08:35:05 UTC
this grep is performed in gcc-lang-supported() (line 574 for svn-1.481 toolchain.eclass)
grep ^language=\"${1}\" "${S}"/gcc/*/config-lang.in > /dev/null || return 1

however the workdir has not yet been created at the first invocation (as it is run before unpack)

>>> Emerging (1 of 1) sys-devel/gcc-4.5.3-r1
 * gcc-4.5.3.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...			[ ok ]
 * gcc-4.5.3-uclibc-patches-1.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...	[ ok ]
 * gcc-4.5.3-patches-1.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...	[ ok ]
 * gcc-4.5.3-piepatches-v0.4.5.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...	[ ok ]
 * gcc-4.4.3-specs-0.2.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...	[ ok ]
 * ecj-4.5.jar RMD160 SHA1 SHA256 size ;-) ...				[ ok ]
grep: /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/*/config-lang.in: No such file or directory
 * Obj-C++ requires a C++ compiler, disabled due to USE="-cxx"
 * GCJ requires a C++ compiler, disabled due to USE="-cxx"
>>> Unpacking source...

Reproducible: Always

Steps to Reproduce:
1. emerge -v1 sys-devel/gcc

Actual Results:  
warnings emitted:-
 * Obj-C++ requires a C++ compiler, disabled due to USE="-cxx"
 * GCJ requires a C++ compiler, disabled due to USE="-cxx"

c++, gcj and obj-c++ appear to built regardless

Expected Results:  
the warnings not to be emitted

while the erroneous warning may be harmless, it did resulted in me rebuilding sys-devel/gcc twice as I had thought that c++ was not built.
Comment 1 SpanKY gentoo-dev 2011-11-22 21:56:26 UTC

*** This bug has been marked as a duplicate of bug 391369 ***
Comment 2 SpanKY gentoo-dev 2011-11-22 21:57:08 UTC
*** Bug 391405 has been marked as a duplicate of this bug. ***