pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

mkvtoolnix requires C++14 instead of C++11



The Makefile of mkvtoolnix has

USE_LANGUAGES=          c c++11

but this is apparently incorrect:

checking for support for the "-std=c++14" flag... -std=gnu++11
checking for support for C++11 feature "initializer lists"... yes
checking for support for C++11 feature "range-based 'for'"... yes
checking for support for C++11 feature "right angle brackets"... yes
checking for support for C++11 feature "'auto' keyword"... yes
checking for support for C++11 feature "lambda functions"... yes
checking for support for C++11 feature "nullptr"... yes
checking for support for C++11 feature "tuples"... yes
checking for support for C++11 feature "alias declarations"... yes
checking for support for C++14 feature "std::make_unique"... no
checking for support for C++14 feature "digit separators"... no
checking for support for C++14 feature "binary literals"... no
checking for support for C++14 feature "generic lambdas"... no
The following features of the C++11/C++14 standards are not supported by c++:
  * std::make_unique function (C++14)
  * digit separators (C++14)
  * binary literals (C++14)
  * generic lambdas (C++14)
If you are using the GNU C compiler collection (gcc) then you need
at least v4.9.x.
configure: error: support for required C++11/C++14 features incomplete
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/multimedia/mkvtoolnix

If I change it to

USE_LANGUAGES=          c c++14

then configure fails even earlier:

checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/pkg_comp/obj/pkgsrc/multimedia/mkvtoolnix/default/mkvtoolnix-15.0.0':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/multimedia/mkvtoolnix
*** Error code 1

Stop.

I was expecting a dependency on gcc49 to be created, but apparently not.
So I built and installed lang/gcc49 myself, and that didn't help. In
fact it told me that it was already installed (I should have checked):

pkg_add: package `gcc49-4.9.4nb4' was already installed as dependency,
now marked as installed manually

and it didn't help...

So, how do I proceed from here, given that I have already compiled most
of my packages on NetBSD 7, with its native C++ compiler (gcc version
4.8.4 (nb2 20150115)). I was under the impression that the installed
compiler would be used, given USE_LANGUAGES+= c++14.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- Wayland: Those who don't understand X
\X/ rhialto/at/falu.nl      -- are condemned to reinvent it. Poorly.

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index