Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 644860 - dev-util/cmake-3.10.1 fails to configure with distcc: The C++ compiler does not support C++11 (e.g. std::unique_ptr).
Summary: dev-util/cmake-3.10.1 fails to configure with distcc: The C++ compiler does n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on: 668020
Blocks:
  Show dependency tree
 
Reported: 2018-01-17 15:31 UTC by Alexey Korepanov
Modified: 2019-06-14 20:42 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,4.38 KB, text/x-log)
2018-01-17 15:31 UTC, Alexey Korepanov
Details
emerge --info (emerge.info,5.11 KB, text/plain)
2018-01-17 15:31 UTC, Alexey Korepanov
Details
emerge -pqv (emerge.pqv,115 bytes, text/plain)
2018-01-17 15:31 UTC, Alexey Korepanov
Details
CMakeOutput.log (CMakeOutput.log,54.59 KB, text/x-log)
2018-01-25 17:00 UTC, Alexey Korepanov
Details
build.log (build.log,5.50 KB, text/x-log)
2018-02-05 17:47 UTC, Alexey Korepanov
Details
CMakeOutput.log (CMakeOutput.log,54.67 KB, text/x-log)
2018-02-05 17:48 UTC, Alexey Korepanov
Details
emerge --info (emerge.info,5.38 KB, text/plain)
2018-02-05 17:48 UTC, Alexey Korepanov
Details
emerge -pqv (emerge.pqv,107 bytes, text/plain)
2018-02-05 17:48 UTC, Alexey Korepanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Korepanov 2018-01-17 15:31:01 UTC
Created attachment 515162 [details]
build.log

Configure  fails with

The C++ compiler does not support C++11 (e.g.  std::unique_ptr).

I am on arm64, the compiler is gcc-7.2.0.
Comment 1 Alexey Korepanov 2018-01-17 15:31:29 UTC
Created attachment 515164 [details]
emerge --info
Comment 2 Alexey Korepanov 2018-01-17 15:31:50 UTC
Created attachment 515166 [details]
emerge -pqv
Comment 3 Alexey Korepanov 2018-01-19 13:37:55 UTC
this also affects 3.10.0, while 3.9.6 installs without errors
Comment 4 Nikolay Kichukov 2018-01-20 10:00:07 UTC
I can confirm the same for ARM (32bit arm OS).
compiler where it fails is 6.4.0.

cmake-3.9.x compiles OK
cmake-3.10.x fails to compile

Thank you.
-Nikolay
Comment 5 Jeremy Murphy 2018-01-21 06:03:02 UTC
CMake 3.10 added the requirement of being compiled using C++11 (or better). I realize that GCC 6 and newer should compile C++14 by default, but maybe that is disabled in the old 13.0 profile (which you are using).

I'm not sure if maintainers will 'fix' this in the ebuild, since everyone should move to a new 17.0 profile, which compiles C++14 by default for every compatible compiler.

I can confirm that it configures for me using 17.0 profile with GCC 6.
Cheers.
Comment 6 Nikolay Kichukov 2018-01-22 08:28:15 UTC
Indeed, I am still using the 13.0 profile for 32bit ARM, as the 17.0 has not yet been marked 'stable'.
Cheers,
-N
Comment 7 nobody 2018-01-23 00:43:12 UTC
https://www.gentoo.org/support/news-items/2015-10-22-gcc-5-new-c++11-abi.html
So since gcc 5 c++11 is use.

I can confirm it build fine with:
gcc (Gentoo 5.4.0-r3 p1.3, pie-0.6.5) 5.4.0
  [1]   default/linux/amd64/13.0 *

You should provide /var/tmp/portage/dev-util/cmake-3.10.1/work/cmake-3.10.1_build/CMakeFiles/CMakeOutput.log
Comment 8 William 2018-01-24 12:52:11 UTC
I get the same configure error with default/linux/amd64/17.0/desktop/plasma/systemd, gcc 7.2.0 and distcc. 

It emerges correctly without distcc.
Comment 9 Alexey Korepanov 2018-01-25 17:00:05 UTC
Created attachment 516688 [details]
CMakeOutput.log

Attached my CMakeOutput.log
Comment 10 Alexey Korepanov 2018-01-25 19:58:28 UTC
It builds fine without distcc.
Comment 11 Andreas Sturmlechner gentoo-dev 2018-01-31 22:26:50 UTC
Please switch to a supported profile. Make sure your distcc toolchains are consistent.
Comment 12 Alexey Korepanov 2018-02-05 17:47:38 UTC
Created attachment 517882 [details]
build.log
Comment 13 Alexey Korepanov 2018-02-05 17:48:03 UTC
Created attachment 517884 [details]
CMakeOutput.log
Comment 14 Alexey Korepanov 2018-02-05 17:48:23 UTC
Created attachment 517886 [details]
emerge --info
Comment 15 Alexey Korepanov 2018-02-05 17:48:41 UTC
Created attachment 517888 [details]
emerge -pqv
Comment 16 Alexey Korepanov 2018-02-05 17:52:06 UTC
I updated to the 17.0 profile. It took aaaaggggggeeeessss to rebuild everything.

I see the same problem. The distcc host also has the 17.0 profile, the toolchains seem consistent. And in the whole emptytree @world rebuild, only cmake failed.

I replaced the attachments with the new ones.
Comment 17 Andreas Sturmlechner gentoo-dev 2019-05-12 19:51:26 UTC
Please test with cmake-3.14.3.
Comment 18 Alexey Korepanov 2019-05-12 21:07:20 UTC
With cmake-3.14.3 (and gcc-9) I did not reproduce the problem.
Comment 19 Andreas Sturmlechner gentoo-dev 2019-05-12 21:31:06 UTC
Thanks.
Comment 20 Larry the Git Cow gentoo-dev 2019-06-14 20:42:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7229821dd914786b4307a0eeb4b40feb4e521917

commit 7229821dd914786b4307a0eeb4b40feb4e521917
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2019-06-14 17:51:45 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-06-14 20:42:20 +0000

    dev-util/cmake: Drop old
    
    Closes: https://bugs.gentoo.org/644860
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
    Package-Manager: Portage-2.3.66, Repoman-2.3.11

 dev-util/cmake/Manifest                            |   5 -
 dev-util/cmake/cmake-3.11.4-r1.ebuild              | 221 --------------------
 dev-util/cmake/cmake-3.12.3.ebuild                 | 223 --------------------
 dev-util/cmake/cmake-3.13.4.ebuild                 | 228 ---------------------
 dev-util/cmake/cmake-3.14.4.ebuild                 | 224 --------------------
 dev-util/cmake/cmake-3.9.6.ebuild                  | 214 -------------------
 dev-util/cmake/files/cmake-3.0.0-FindBLAS.patch    |  43 ----
 dev-util/cmake/files/cmake-3.0.2-FindLAPACK.patch  |  43 ----
 .../cmake/files/cmake-3.11.0_rc2-FindBLAS.patch    |  23 ---
 .../files/cmake-3.11.4-fix-boost-detection.patch   |  13 --
 dev-util/cmake/files/cmake-3.11.4-libuv-1.21.patch |  28 ---
 .../cmake/files/cmake-3.13.4-prefix-dirs.patch     | 127 ------------
 .../files/cmake-3.8.0_rc2-FindBoost-python.patch   |  95 ---------
 .../files/cmake-3.9.0_rc2-FindImageMagick.patch    |  47 -----
 .../cmake/files/cmake-3.9.0_rc2-prefix-dirs.patch  | 126 ------------
 dev-util/cmake/metadata.xml                        |   1 -
 16 files changed, 1661 deletions(-)