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

Bug 590096

Summary: =dev-libs/icu-57.1 requires C++11 compiler but does not check for it in prepare phase
Product: Gentoo Linux Reporter: A. Wilcox (awilfox) <awilfox.gentoo>
Component: Current packagesAssignee: Gentoo Office Team <office>
Status: RESOLVED WONTFIX    
Severity: normal CC: floppym
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=580672
Whiteboard:
Package list:
Runtime testing required: ---

Description A. Wilcox (awilfox) 2016-07-30 23:39:18 UTC
I have a system running amd64 stable and using gcc 4.6.4 as the default compiler for compatibility with some older custom packages (still available in stable portage); it also has 4.9.3 installed for packages that require it.  On this system, dev-libs/icu-57.1 fails to configure:

checking if we have a C++ compiler... no
configure: error: C++ compiler x86_64-pc-linux-gnu-g++ does not work or no compiler found

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-libs/icu-57.1/work/icu/source-abi_x86_64.amd64/config.log
 * ERROR: dev-libs/icu-57.1::gentoo failed (configure phase):
 *   econf failed

Relevant bit from config.log:

configure:5868: checking if we have a C++ compiler
configure:5881: x86_64-pc-linux-gnu-g++ -c -O2 -pipe -march=native -mtune=native -mno-fma4 -mno-fma -std=c++11  conftest.cpp >&5
cc1plus: error: unrecognized command line option '-std=c++11'
configure:5881: $? = 1

I can obviously work around this by adding an env entry for this package, but normally packages will test for the presence of a C++11 compiler in the pretend phase.

If going forward, a C++11 compiler is required to be the system default, then I can probably work with that, but it should likely be documented somewhere (perhaps in a news item).
Comment 1 Mike Gilbert gentoo-dev 2016-07-31 06:03:24 UTC
It seems rather silly to add a pkg_pretend check to every package that needs c++11. This is becoming quite common.

If this were my package, this would be a WONTFIX.
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2016-11-19 21:43:32 UTC
(In reply to Mike Gilbert from comment #1)
> It seems rather silly to add a pkg_pretend check to every package that needs
> c++11. This is becoming quite common.
> 
> If this were my package, this would be a WONTFIX.

Ack. Especially since new boost also requires c++11.