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

Bug 560388

Summary: app-doc/doxygen-1.8.10-r1 fails to configure with -fpermissive in CXXFLAGS
Product: Gentoo Linux Reporter: Sebastian Pipping <sping>
Component: Current packagesAssignee: Development Tools Team <dev-tools>
Status: RESOLVED INVALID    
Severity: normal CC: zsojka
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log

Description Sebastian Pipping gentoo-dev 2015-09-13 23:40:40 UTC
Created attachment 411862 [details]
Build log

[..]
-- One (and only one) of the ICONV_ACCEPTS_... tests must pass
-- Performing Test ICONV_ACCEPTS_NONCONST_INPUT
-- Performing Test ICONV_ACCEPTS_NONCONST_INPUT - Success
-- Performing Test ICONV_ACCEPTS_CONST_INPUT
-- Performing Test ICONV_ACCEPTS_CONST_INPUT - Success
CMake Error at cmake/FindIconv.cmake:123 (MESSAGE):
  Unable to determine iconv() signature - both test cases passed!
Call Stack (most recent call first):
  CMakeLists.txt:64 (find_package)
[..]
Comment 1 Sebastian Pipping gentoo-dev 2015-09-14 14:19:11 UTC
Through debugging I found that:

  leftover -fpermissive in CXXFLAGS is causing configure to fail.

CMake is trying to compile

  #include <iconv.h>
  int main() {
      char const *p = 0;
      iconv(iconv_t(-1), &p, 0, 0, 0);
  }

and expects it to fail with an error.  With -fpermissive it passes (with a warning) which is where the "both test cases passed!" error is originating from.

Fixes could be:

 * Filtering -fpermissive

 * Asking upstream to remove the test (as the results do not seem to be
   used for real) and there are other tests covering iconv, see ICONV_COMPILES.

 * Ignoring as a rare case

What do you think?
Comment 2 SpanKY gentoo-dev 2015-10-21 18:32:45 UTC
i can't see any reason you'd ever want to put -fpermissive into CXXFLAGS.  i'd just reject such configurations as invalid and pointless.
Comment 3 Matthias Maier gentoo-dev 2015-10-21 18:44:14 UTC
I fail to see the purpose of special (per package) support for -fpermissive too.

I suggest that you disable -fpermissive for app-doc/doxygen via package.env.
Comment 4 Matthias Maier gentoo-dev 2015-11-23 13:28:14 UTC
*** Bug 566108 has been marked as a duplicate of this bug. ***