FS#54222 - [vlc] building package fails due to missing support for ISO C++ 2011
Attached to Project:
Arch Linux
Opened by Stefan (steinwanderer) - Monday, 29 May 2017, 14:20 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 04 June 2017, 16:28 GMT
Opened by Stefan (steinwanderer) - Monday, 29 May 2017, 14:20 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 04 June 2017, 16:28 GMT
|
Details
Description:
A straightforward build of "vlc" fails due to missing support for iso c++11 Additional info: I patched my local pkgbuild file to get it working: diff -u repos/extra-x86_64/PKGBUILD trunk/PKGBUILD --- repos/extra-x86_64/PKGBUILD 2017-05-28 23:32:04.479059810 +0200 +++ trunk/PKGBUILD 2017-05-29 13:02:31.814635055 +0200 @@ -76,7 +76,7 @@ export PKG_CONFIG_PATH="/usr/lib/ffmpeg2.8/pkgconfig" export CFLAGS+=" -I/usr/include/samba-4.0" export CPPFLAGS+=" -I/usr/include/samba-4.0" - export CXXFLAGS+=" -std=gnu++98" + export CXXFLAGS+=" -std=gnu++11" export LUAC=/usr/bin/luac export LUA_LIBS="`pkg-config --libs lua`" export RCC=/usr/bin/rcc-qt4 * package version(s) gcc 7.1.1-2 gcc-libs 7.1.1-2 vlc 2.2.6-1 * config and/or log files etc. In file included from /usr/include/c++/7.1.1/type_traits:35:0, from /usr/include/qt/QtCore/qglobal.h:45, from /usr/include/qt/QtCore/QtGlobal:1, from qt4.hpp:32, from menus.cpp:37: /usr/include/c++/7.1.1/bits/c++0x_warning.h:32:2: Fehler: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^~~~~ Steps to reproduce: $ asp checkout vlc # cd ./vlc/trunk $ makepkg --cleanbuild --syncdeps --rmdeps |
This task depends upon
Confirming that the patch above did fix it:
- export CXXFLAGS+=" -std=gnu++98"
+ export CXXFLAGS+=" -std=gnu++11"