Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jsbsim compilation fails on MacOS X Mavericks #40

Open
esden opened this issue Oct 23, 2013 · 4 comments
Open

jsbsim compilation fails on MacOS X Mavericks #40

esden opened this issue Oct 23, 2013 · 4 comments
Labels

Comments

@esden
Copy link
Member

esden commented Oct 23, 2013

jsbsim compilation error on MacOS X Mavericks

:info:build   CXX      libPropulsion_la-FGEngine.lo
:info:build FGEngine.cpp:86:41: error: call to 'to_string' is ambiguous
:info:build   Load(engine_element, PropertyManager, to_string(EngineNumber)); // Call ModelFunctions loader
:info:build                                         ^~~~~~~~~
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:3999:8: note: candidate function
:info:build string to_string(int __val);
:info:build        ^
:info:build ../../../src/input_output/string_utilities.h:73:22: note: candidate function
:info:build   extern std::string to_string(int);
:info:build                      ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4000:8: note: candidate function
:info:build string to_string(unsigned __val);
:info:build        ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4001:8: note: candidate function
:info:build string to_string(long __val);
:info:build        ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4002:8: note: candidate function
:info:build string to_string(unsigned long __val);
:info:build        ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4003:8: note: candidate function
:info:build string to_string(long long __val);
:info:build        ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4004:8: note: candidate function
:info:build string to_string(unsigned long long __val);
:info:build        ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4005:8: note: candidate function
:info:build string to_string(float __val);
:info:build        ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4006:8: note: candidate function
:info:build string to_string(double __val);
:info:build        ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4007:8: note: candidate function
:info:build string to_string(long double __val);
:info:build        ^
:info:build FGEngine.cpp:135:45: error: call to 'to_string' is ambiguous
:info:build   PostLoad(engine_element, PropertyManager, to_string(EngineNumber));
:info:build                                             ^~~~~~~~~
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:3999:8: note: candidate function
:info:build string to_string(int __val);
:info:build        ^
:info:build ../../../src/input_output/string_utilities.h:73:22: note: candidate function
:info:build   extern std::string to_string(int);
:info:build                      ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4000:8: note: candidate function
:info:build string to_string(unsigned __val);
:info:build        ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4001:8: note: candidate function
:info:build string to_string(long __val);
:info:build        ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4002:8: note: candidate function
:info:build string to_string(unsigned long __val);
:info:build        ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4003:8: note: candidate function
:info:build string to_string(long long __val);
:info:build        ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4004:8: note: candidate function
:info:build string to_string(unsigned long long __val);
:info:build        ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4005:8: note: candidate function
:info:build string to_string(float __val);
:info:build        ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4006:8: note: candidate function
:info:build string to_string(double __val);
:info:build        ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:4007:8: note: candidate function
:info:build string to_string(long double __val);
:info:build        ^
:info:build FGEngine.cpp:177:9: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
:info:build   if (i >= 0 && i < SourceTanks.size()) {
:info:build       ~ ^  ~
:info:build 1 warning and 2 errors generated.
:info:build make[3]: *** [libPropulsion_la-FGEngine.lo] Error 1
:info:build make[3]: *** Waiting for unfinished jobs....
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.paparazziuav.org_macports_ports_devel_jsbsim/jsbsim/work/JSBSim/src/models/propulsion'
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.paparazziuav.org_macports_ports_devel_jsbsim/jsbsim/work/JSBSim/src/models'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.paparazziuav.org_macports_ports_devel_jsbsim/jsbsim/work/JSBSim/src'
:info:build make: *** [all-recursive] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.paparazziuav.org_macports_ports_devel_jsbsim/jsbsim/work/JSBSim'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.paparazziuav.org_macports_ports_devel_jsbsim/jsbsim/work/JSBSim" && /usr/bin/make -j2 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port jsbsim returned: command execution failed
:debug:build Error code: CHILDSTATUS 62607 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for jsbsim: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install jsbsim
:debug:build could not read "/opt/local/share/man/mann/zlib.n.gz": no such file or directory
    while executing
"::file type $file"
:notice:build Please see the log file for port jsbsim for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.paparazziuav.org_macports_ports_devel_jsbsim/jsbsim/main.log
@flixr
Copy link
Member

flixr commented Oct 24, 2013

maybe try with a recent jsbsim version?

@scdwyer
Copy link
Contributor

scdwyer commented Nov 7, 2013

Definitely try a recent jsbsim version. Also maybe a different compiler?

@esden
Copy link
Member Author

esden commented Nov 7, 2013

I already did that. I updated to the newest version of jsbsim on my machine. It does the job. The problem is that the the api of jsbsim changed, so paparazzi needs to be updated. I talked to flixr about that. This raised the question if we should make jsbsim a submodule of paparazzi, because if we do this change I bet people will be complaining that "paparazzi broke". :)

@flixr
Copy link
Member

flixr commented Mar 16, 2015

Is this still an issue in paparazzi master after merging paparazzi/paparazzi#1118 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants