libretro / libretro-meta

The Unlicense
4 stars 3 forks source link

Stone Soup build failing #105

Open sergiobenrocha2 opened 7 years ago

sergiobenrocha2 commented 7 years ago

Build failing on Ubuntu 17.10, GCC 7.2.0

In file included from source/map_knowledge.h:5:0,
                 from source/env.h:6,
                 from source/behold.cc:13:
source/mon-info.h:356:9: error: ‘function’ does not name a type; did you mean ‘union’?
 typedef function<vector<string> (const monster_info& mi)> (desc_filter);
         ^~~~~~~~
         union
In file included from source/monster.h:6:0,
                 from source/env.h:7,
                 from source/behold.cc:13:
source/spl-util.h:130:23: error: ‘desc_filter’ has not been declared
                       desc_filter get_desc_func = nullptr);
                       ^~~~~~~~~~~
source/spl-util.h:130:58: error: could not convert ‘nullptr’ from ‘std::nullptr_t’ to ‘int’
                       desc_filter get_desc_func = nullptr);
                                                          ^
In file included from source/env.h:7:0,
                 from source/behold.cc:13:
source/monster.h:594:23: error: ‘function’ has not been declared
     bool search_slots(function<bool (const mon_spell_slot &)> func) const;
                       ^~~~~~~~
source/monster.h:594:31: error: expected ‘,’ or ‘...’ before ‘<’ token
     bool search_slots(function<bool (const mon_spell_slot &)> func) const;
                               ^
source/monster.h:595:24: error: ‘function’ has not been declared
     bool search_spells(function<bool (spell_type)> func) const;
                        ^~~~~~~~
source/monster.h:595:32: error: expected ‘,’ or ‘...’ before ‘<’ token
     bool search_spells(function<bool (spell_type)> func) const;
                                ^
<builtin>: recipe for target 'source/behold.o' failed

https://launchpadlibrarian.net/341894573/buildlog_ubuntu-artful-amd64.libretro-stonesoup_0.15.2-r201710210205-3bc8e2b-5~ubuntu17.10.1_BUILDING.txt.gz

sergiobenrocha2 commented 6 years ago

Same issue on Ubuntu 18.04 as well, GCC 7.3.0

https://launchpadlibrarian.net/363618386/buildlog_ubuntu-bionic-amd64.libretro-stonesoup_0.15.2-r201804070216-f8d6bca-5~ubuntu18.04.1_BUILDING.txt.gz

wafflesinmybauble commented 5 years ago

I have been getting a similar error. Here is the first error that popped up. source/mon-info.h:356:9: error: 'function' does not name a type; did you mean 'union'? The first warning looking something like this.

source/externs.h:404:53: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  404 |     static level_id parse_level_id(const string &s) throw (string);
      |                                                     ^~~~~
In file included from source/beam.h:9,
                 from source/ouch.h:11,
                 from source/actor.h:6,
                 from source/player.h:13,
                 from source/mon-util.h:11,
                 from source/describe.h:13,
                 from source/traps.cc:21: