Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560388 - app-doc/doxygen-1.8.10-r1 fails to configure with -fpermissive in CXXFLAGS
Summary: app-doc/doxygen-1.8.10-r1 fails to configure with -fpermissive in CXXFLAGS
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Development Tools Team
URL:
Whiteboard:
Keywords:
: 566108 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-09-13 23:40 UTC by Sebastian Pipping
Modified: 2015-11-23 13:28 UTC (History)
1 user (show)

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


Attachments
Build log (app-doc:doxygen-1.8.10-r1:20150913-220931.log,4.96 KB, text/plain)
2015-09-13 23:40 UTC, Sebastian Pipping
Details

Note You need to log in before you can comment on or make changes to this bug.
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. ***