gcc 6.1.1 failure

Support for running, installing or compiling OpenMW

Before you submit a bug report for the first time, please read: Bug reporting guidelines
Locked
darkbasic
Posts: 87
Joined: 18 Apr 2016, 15:45
Contact:

gcc 6.1.1 failure

Post by darkbasic » 10 May 2016, 17:57

Distro is Arch Linux, compiler is gcc 6.1.1. openmw git

[ 17%] Building CXX object components/CMakeFiles/components.dir/files/configurationmanager.cpp.o
In file included from /usr/include/c++/6.1.1/unordered_map:35:0,
from /home/niko/.cache/pacaur/openmw-git/src/openmw/components/files/configurationmanager.hpp:7,
from /home/niko/.cache/pacaur/openmw-git/src/openmw/components/files/configurationmanager.cpp:1:
/usr/include/c++/6.1.1/bits/c++0x_warning.h:32:2: error: #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 \
^~~~~
[ 17%] Building CXX object components/CMakeFiles/components.dir/files/lowlevelfile.cpp.o
[ 17%] Building CXX object components/CMakeFiles/components.dir/files/constrainedfilestream.cpp.o
[ 17%] Building CXX object components/CMakeFiles/components.dir/compiler/controlparser.cpp.o
[ 17%] Building CXX object components/CMakeFiles/components.dir/compiler/errorhandler.cpp.o
[ 17%] Building CXX object components/CMakeFiles/components.dir/compiler/exprparser.cpp.o
[ 17%] Building CXX object components/CMakeFiles/components.dir/compiler/extensions.cpp.o
In file included from /home/niko/.cache/pacaur/openmw-git/src/openmw/components/files/configurationmanager.cpp:1:0:
/home/niko/.cache/pacaur/openmw-git/src/openmw/components/files/configurationmanager.hpp:56:22: error: ‘unordered_map’ in namespace ‘std’ does not name a template type
typedef std::unordered_map<std::string, path_type_f> TokensMappingContainer;
^~~~~~~~~~~~~
/home/niko/.cache/pacaur/openmw-git/src/openmw/components/files/configurationmanager.hpp:71:9: error: ‘TokensMappingContainer’ does not name a type
TokensMappingContainer mTokensMapping;
^~~~~~~~~~~~~~~~~~~~~~
/home/niko/.cache/pacaur/openmw-git/src/openmw/components/files/configurationmanager.cpp: In member function ‘void Files::ConfigurationManager::setupTokensMapping()’:
/home/niko/.cache/pacaur/openmw-git/src/openmw/components/files/configurationmanager.cpp:47:5: error: ‘mTokensMapping’ was not declared in this scope
mTokensMapping.insert(std::make_pair(localToken, &FixedPath<>::getLocalPath));
^~~~~~~~~~~~~~
/home/niko/.cache/pacaur/openmw-git/src/openmw/components/files/configurationmanager.cpp: In member function ‘void Files::ConfigurationManager::processPaths(Files::PathContainer&, bool)’:
/home/niko/.cache/pacaur/openmw-git/src/openmw/components/files/configurationmanager.cpp:88:17: error: ‘TokensMappingContainer’ has not been declared
TokensMappingContainer::iterator tokenIt = mTokensMapping.find(path.substr(0, pos + 1));
^~~~~~~~~~~~~~~~~~~~~~
/home/niko/.cache/pacaur/openmw-git/src/openmw/components/files/configurationmanager.cpp:89:21: error: ‘tokenIt’ was not declared in this scope
if (tokenIt != mTokensMapping.end())
^~~~~~~
/home/niko/.cache/pacaur/openmw-git/src/openmw/components/files/configurationmanager.cpp:89:32: error: ‘mTokensMapping’ was not declared in this scope
if (tokenIt != mTokensMapping.end())
^~~~~~~~~~~~~~
components/CMakeFiles/components.dir/build.make:3470: set di istruzioni per l'obiettivo "components/CMakeFiles/components.dir/files/configurationmanager.cpp.o" non riuscito
make[2]: *** [components/CMakeFiles/components.dir/files/configurationmanager.cpp.o] Errore 1
make[2]: *** Attesa per i processi non terminati....
CMakeFiles/Makefile2:340: set di istruzioni per l'obiettivo "components/CMakeFiles/components.dir/all" non riuscito
make[1]: *** [components/CMakeFiles/components.dir/all] Errore 2
Makefile:127: set di istruzioni per l'obiettivo "all" non riuscito
make: *** [all] Errore 2

fdm
Posts: 2
Joined: 19 Feb 2015, 23:31

Re: gcc 6.1.1 failure

Post by fdm » 11 May 2016, 01:13

I hit the same issue and was able to get past it for now by downgrading gcc from my pacman cache.

Code: Select all

cd /var/cache/pacman/pkg/
sudo pacman -U gcc-5.3.0-5-x86_64.pkg.tar.xz gcc-libs-5.3.0-5-x86_64.pkg.tar.xz

User avatar
scrawl
Posts: 2152
Joined: 18 Feb 2012, 11:51

Re: gcc 6.1.1 failure

Post by scrawl » 11 May 2016, 01:36


darkbasic
Posts: 87
Joined: 18 Apr 2016, 15:45
Contact:

Re: gcc 6.1.1 failure

Post by darkbasic » 11 May 2016, 19:35

Thanks scrawl.

Locked