Dungeon Crawl Stone Soup Tracker - DCSS
Viewing Issue Advanced Details
8960 Bug Report minor always 2014-09-15 20:04 2015-01-24 04:00
geekosaur Local  
neil MacOSX  
normal Both  
closed 0.16 ancient branch  
0.16-a0-464-g9f12922 done  
none    
none 0.16 ancient branch  
0008960: 10.9 SDK causes build failures with clang
It works if I have MACOSX_DEPLOYMENT_TARGET=10.8 in the environment, but with native I get errors, see http://lpaste.net/326477253196120064http://lpaste.net/326477253196120064 [^]

Zaba on IRC reports that the build succeeds if -std=c++11 is added to the build flags; apparently the 10.9 SDK uses C++11 features and requires c++11 mode to be turned on.
Issue History
2014-09-15 20:04 geekosaur New Issue
2014-09-15 20:07 Zaba Note Added: 0027275
2014-09-20 16:08 neil Note Added: 0027320
2014-09-20 16:09 neil Note Edited: 0027320
2014-09-29 22:42 neil Note Added: 0027385
2014-09-29 22:42 neil Status new => resolved
2014-09-29 22:42 neil Fixed in Branch => 0.16 development branch
2014-09-29 22:42 neil Resolution open => done
2014-09-29 22:42 neil Assigned To => neil
2015-01-24 04:00 geekosaur Status resolved => closed

Notes
(0027275)
Zaba   
2014-09-15 20:07   
More precisely, the clang in the 10.9 SDK exposes C++11 features regardless of the -std flag, but only sets __cplusplus to 201103L if -std=c++11 is given (hence the conflicts with things defined in AppHdr.h)
(0027320)
neil   
2014-09-20 16:08   
(edited on: 2014-09-20 16:09)
Does clang provide a way to tell whether those features are present?

In the case of nullptr it looks like it uses a macro so we can do #ifndef. But that doesn't help with the auto_ptr/unique_ptr thing.

(0027385)
neil   
2014-09-29 22:42   
These should be fixed in trunk (0.16-a0-918-g66a6cb6 for the nullptr warning, 0.16-a0-917-g1d717b6 for the unique_ptr error). I don't have OS X to test, so please reopen the bug if the problem still exists or if there are further compilation errors.

Thanks!