acxz / flightgear-arch

A collection of Arch Linux PKGBUILDS for the Flightgear Simulator
3 stars 2 forks source link

[flightgear-git] no matching function error #4

Closed Hacker1245 closed 10 months ago

Hacker1245 commented 2 years ago
[  3%] Building C object CMakeFiles/fgfsObjects.dir/3rdparty/mongoose/mongoose.c.o
/home/kacper/.cache/yay/flightgear-git/src/flightgear/3rdparty/mongoose/mongoose.c: In function ‘start_process’:
/home/kacper/.cache/yay/flightgear-git/src/flightgear/3rdparty/mongoose/mongoose.c:2011:12: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2011 |     (void) chdir(dir);
      |            ^~~~~~~~~~
[  3%] Building C object CMakeFiles/fgfsObjects.dir/3rdparty/cjson/cJSON.c.o
[  4%] Building CXX object CMakeFiles/fgfsObjects.dir/src/Add-ons/Addon.cxx.o
/home/kacper/.cache/yay/flightgear-git/src/flightgear/src/Add-ons/Addon.cxx: In member function ‘SGPath flightgear::addons::Addon::createStorageDir() const’:
/home/kacper/.cache/yay/flightgear-git/src/flightgear/src/Add-ons/Addon.cxx:202:64: error: no matching function for call to ‘SGPath::validate(bool)’
  202 |     const SGPath authorizedPath = SGPath(_storagePath).validate(/* write */
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
  203 |                                                                 true);
      |                                                                 ~~~~~
In file included from /usr/include/simgear/misc/sg_dir.hxx:32,
                 from /home/kacper/.cache/yay/flightgear-git/src/flightgear/src/Add-ons/Addon.cxx:27:
/usr/include/simgear/misc/sg_path.hxx:348:10: note: candidate: ‘void SGPath::validate() const’
  348 |     void validate() const;
      |          ^~~~~~~~
/usr/include/simgear/misc/sg_path.hxx:348:10: note:   candidate expects 0 arguments, 1 provided
make[2]: *** [CMakeFiles/fgfsObjects.dir/build.make:104: CMakeFiles/fgfsObjects.dir/src/Add-ons/Addon.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2541: CMakeFiles/fgfsObjects.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
acxz commented 2 years ago

My build fails before this step. I'm currently running into #3.

Hacker1245 commented 2 years ago

My build fails before this step. I'm currently running into #3.

For me that error does not happen, it goes past that fine.

acxz commented 2 years ago

Maybe we can get some more help if we send this issue report to upstream as well? Here are links to further support pages: https://sourceforge.net/projects/flightgear/support

And here is the forum board for compiling: https://forum.flightgear.org/viewforum.php?f=45&sid=8263de58be77a58accefc8db70124c64

Do you mind posting the issue there and putting the link here. Maybe we can get more eyes on this and resolve it.

Does the regular flightgear package at least build for you?

Hacker1245 commented 2 years ago

Does the regular flightgear package at least build for you?

just decided to build it, it also fails.

[ 10%] Building CXX object utils/fgelev/CMakeFiles/fgelev.dir/fgelev.cxx.o
In file included from /home/kacper/.cache/yay/flightgear/src/flightgear-2020.3.13/utils/fgelev/fgelev.cxx:30:
/usr/include/simgear/props/props.hxx:1397:18: error: ‘shared_mutex’ in namespace ‘std’ does not name a type
 1397 |     mutable std::shared_mutex _mutex;
      |                  ^~~~~~~~~~~~
/usr/include/simgear/props/props.hxx:1397:13: note: ‘std::shared_mutex’ is only available from C++17 onwards
 1397 |     mutable std::shared_mutex _mutex;
      |             ^~~
make[2]: *** [utils/fgelev/CMakeFiles/fgelev.dir/build.make:76: utils/fgelev/CMakeFiles/fgelev.dir/fgelev.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1899: utils/fgelev/CMakeFiles/fgelev.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: flightgear
acxz commented 2 years ago

Since it looks to be a different error, can you open another issue about it? Prefixed with [flightgear] ...

acxz commented 10 months ago

Even after the resolution of #3, I'm not able to reproduce this error. [flightgear] has also updated since then, I urge you to try again. As for now I'll close this error as stale.