FTBFS with r6967: src/replay_game_controller.h:60:2: error: ‘unique_ptr’ in namespace ‘std’ does not name a type
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Medium
|
Hans Joachim Desserud |
Bug Description
Revision 6967 fails to build for me with the following output:
[ 5%] Building CXX object src/CMakeFiles/
In file included from /home/wizard/
/home/wizard/
std::
^
/home/wizard/
/home/wizard/
m_replayreade
^
/home/wizard/
/home/wizard/
if (m_replayreader) {
^
make[2]: *** [src/CMakeFiles
make[1]: *** [src/CMakeFiles
make: *** [all] Error 2
I have also verified this happens out of the box [1]. This happens on Ubuntu with GCC 4.7, 4.8 (and probably later).
I've tried to investigate a bit, but I am not sure why this would fail now, since the line itself didn't change. (We also have a healthy amount of unique_ptr elsewhere in the code base which haven't caused any problems up until now, so presumably the compiler supports it). It might be the ReplayReader which isn't considered a type anymore, though I don't really see how that would be the case either.
The daily build just built r6966 without problems [2], so it has to be this revision somehow.
[1] https:/
[2] https:/
Changed in widelands: | |
status: | New → Triaged |
summary: |
- FTBFS: src/replay_game_controller.h:60:2: error: ‘unique_ptr’ in - namespace ‘std’ does not name a type + FTBFS with r6967: src/replay_game_controller.h:60:2: error: ‘unique_ptr’ + in namespace ‘std’ does not name a type |
Changed in widelands: | |
assignee: | nobody → Hans Joachim Desserud (hjd) |
Changed in widelands: | |
status: | Fix Committed → Fix Released |
#include <memory> should fix this.
> Am 11.05.2014 um 12:22 schrieb Hans Joachim Desserud <email address hidden>: widelands_ all.dir/ replay_ game_controller .cc.o widelands/ src/replay_ game_controller .cc:20: 0: widelands/ src/replay_ game_controller .h:60:2: error: ‘unique_ptr’ in namespace ‘std’ does not name a type ptr<Widelands: :ReplayReader> m_replayreader; widelands/ src/replay_ game_controller .cc: In constructor ‘ReplayGameCont roller: :ReplayGameCont roller( Widelands: :Game&, const string&)’: widelands/ src/replay_ game_controller .cc:40: 2: error: ‘m_replayreader’ was not declared in this scope reset(new Widelands: :ReplayReader( m_game, filename)); widelands/ src/replay_ game_controller .cc: In member function ‘virtual void ReplayGameContr oller:: think() ’: widelands/ src/replay_ game_controller .cc:58: 6: error: ‘m_replayreader’ was not declared in this scope /widelands_ all.dir/ replay_ game_controller .cc.o] Error 1 /widelands_ all.dir/ all] Error 2 /code.launchpad .net/~hjd/ +archive/ widelands- test/+build/ 5998940 /code.launchpad .net/~widelands -dev/+recipe/ widelands- daily game_controller .h:60:2: error: ‘unique_ptr’ in namespace ‘std’ does not name a type game_controller .h:60:2: error: ‘unique_ptr’ in namespace ‘std’ does not name a type /bugs.launchpad .net/bugs/ 1318315 game_controller .h:60:2: error: widelands_ all.dir/ replay_ game_controller .cc.o widelands/ src/replay_ game_controller .cc:20: 0: widelands/ src/replay_ game_controller .h:60:2: error: ...
>
> Public bug reported:
>
> Revision 6967 fails to build for me with the following output:
> [ 5%] Building CXX object src/CMakeFiles/
> In file included from /home/wizard/
> /home/wizard/
> std::unique_
> ^
> /home/wizard/
> /home/wizard/
> m_replayreader.
> ^
> /home/wizard/
> /home/wizard/
> if (m_replayreader) {
> ^
> make[2]: *** [src/CMakeFiles
> make[1]: *** [src/CMakeFiles
> make: *** [all] Error 2
>
> I have also verified this happens out of the box [1]. This happens on
> Ubuntu with GCC 4.7, 4.8 (and probably later).
>
> I've tried to investigate a bit, but I am not sure why this would fail
> now, since the line itself didn't change. (We also have a healthy amount
> of unique_ptr elsewhere in the code base which haven't caused any
> problems up until now, so presumably the compiler supports it). It might
> be the ReplayReader which isn't considered a type anymore, though I
> don't really see how that would be the case either.
>
> The daily build just built r6966 without problems [2], so it has to be
> this revision somehow.
>
> [1] https:/
> [2] https:/
>
> ** Affects: widelands
> Importance: Medium
> Status: Triaged
>
>
> ** Tags: ftbfs
>
> ** Changed in: widelands
> Status: New => Triaged
>
> ** Summary changed:
>
> - FTBFS: src/replay_
> + FTBFS with r6967: src/replay_
>
> --
> You received this bug notification because you are subscribed to
> widelands.
> https:/
>
> Title:
> FTBFS with r6967: src/replay_
> ‘unique_ptr’ in namespace ‘std’ does not name a type
>
> Status in Widelands:
> Triaged
>
> Bug description:
> Revision 6967 fails to build for me with the following output:
> [ 5%] Building CXX object src/CMakeFiles/
> In file included from /home/wizard/
> /home/wizard/