Project

General

Profile

Actions

Emulator Issues #8636

closed

#error <regex> is broken in GCC < 4.9; please upgrade

Added by ears.box almost 9 years ago. Updated over 8 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

What's the problem? Describe what went wrong in few words.

What did you expect to happen instead?

Compiling 4.0-6592 from source broke...

What steps will reproduce the problem?
[Don't assume we have ever played the game and know any level names. Be as
specific as possible.]

  1. Tried to compiled 4.0-6592 from source but fails.

Does using an older version of Dolphin solve your issue? If yes, which
versions of Dolphin used to work?

The last version I compiled works fine; 4.0.6337

Slackware 14.1 x86_64
gcc 4.8.2

Is there any other relevant information? (e.g. logs, screenshots,
configuration files)
[Upload big files to a hosting service and post links here!]

Here is the output from the terminal;

Scanning dependencies of target common
[ 54%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/BreakPoints.cpp.o
[ 54%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/CDUtils.cpp.o
[ 54%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/ColorUtil.cpp.o
[ 54%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/ENetUtil.cpp.o
[ 54%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/FileSearch.cpp.o
/tmp/sar/dolphin-4.0.6592/Source/Core/Common/FileSearch.cpp:6:2: error: #error <regex> is broken in GCC < 4.9; please upgrade
#error <regex> is broken in GCC < 4.9; please upgrade
^
/tmp/sar/dolphin-4.0.6592/Source/Core/Common/FileSearch.cpp: In function 'std::vector<std::basic_string<char> > DoFileSearch(const std::vector<std::basic_string<char> >&, const std::vector<std::basic_string<char> >&, bool)':
/tmp/sar/dolphin-4.0.6592/Source/Core/Common/FileSearch.cpp:47:83: error: no matching function for call to 'regex_replace(const std::basic_string<char>&, std::regex, const char [3])'
regex_str += std::regex_replace(std::regex_replace(str, std::regex("\."), "\."), std::regex("\"), ".");
^
/tmp/sar/dolphin-4.0.6592/Source/Core/Common/FileSearch.cpp:47:83: note: candidates are:
In file included from /usr/include/c++/4.8.2/regex:62:0,
from /tmp/sar/dolphin-4.0.6592/Source/Core/Common/FileSearch.cpp:11:
/usr/include/c++/4.8.2/bits/regex.h:2162:5: note: template<class _Out_iter, class _Bi_iter, class _Rx_traits, class _Ch_type> _Out_iter std::regex_replace(_Out_iter, _Bi_iter, _Bi_iter, const std::basic_regex<_Ch_type, _Rx_traits>&, const std::basic_string<_Ch_type>&, std::regex_constants::match_flag_type)
regex_replace(_Out_iter __out, _Bi_iter __first, _Bi_iter __last,
^
/usr/include/c++/4.8.2/bits/regex.h:2162:5: note: template argument deduction/substitution failed:
/tmp/sar/dolphin-4.0.6592/Source/Core/Common/FileSearch.cpp:47:83: note: deduced conflicting types for parameter '_Bi_iter' ('std::basic_regex<char>' and 'const char*')
regex_str += std::regex_replace(std::regex_replace(str, std::regex("\."), "\."), std::regex("\"), ".");
^
In file included from /usr/include/c++/4.8.2/regex:62:0,
from /tmp/sar/dolphin-4.0.6592/Source/Core/Common/FileSearch.cpp:11:
/usr/include/c++/4.8.2/bits/regex.h:2182:5: note: template<class _Rx_traits, class _Ch_type> std::basic_string<_Ch_type> std::regex_replace(const std::basic_string<_Ch_type>&, const std::basic_regex<_Ch_type, _Rx_traits>&, const std::basic_string<_Ch_type>&, std::regex_constants::match_flag_type)
regex_replace(const basic_string<_Ch_type>& __s,
^
/usr/include/c++/4.8.2/bits/regex.h:2182:5: note: template argument deduction/substitution failed:
/tmp/sar/dolphin-4.0.6592/Source/Core/Common/FileSearch.cpp:47:83: note: mismatched types 'const std::basic_string<_Ch_type>' and 'const char [3]'
regex_str += std::regex_replace(std::regex_replace(str, std::regex("\."), "\."), std::regex("\"), ".");
^
make[2]: *** [Source/Core/Common/CMakeFiles/common.dir/FileSearch.cpp.o] Error 1
make[1]: *** [Source/Core/Common/CMakeFiles/common.dir/all] Error 2
make: *** [all] Error 2

PLEASE tell me I don't need GCC 4.9 now to compile dolphin?

Actions

Also available in: Atom PDF