Compile error: Spring's LuaParser.cpp on Mac OS X 10.5.8
Posted: 06 Jan 2011, 06:50
OS:
10.5.8 (fully updated)
uname -a output:
Darwin box.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
Hardware:
MacBookAir2,1 Core 2 Duo 1.86Ghz
MacPorts version:
1.9.2 (most recent, sync'd, works fine for other projects)
Symptoms: Build error. seems to be on LuaParser.cpp
Here the end of the log file:
<snip>
:info:build [ 20%] Building CXX object rts/CMakeFiles/spring.dir/Lua/LuaSyncedCtrl.cpp.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts && /usr/bin/g++-4.0 -DSYNCCHECK -DNO_AVI -DSPRING_DATADIR=\"/opt/local/share/games/spring\" -DSTREFLOP_SSE -pipe -O2 -arch i386 -march=i686 -msse -mfpmath=sse -fsingle-precision-constant -frounding-math -mieee-fp -pipe -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -pthread -O2 -DNDEBUG -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/lib/lua/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts -I/opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/System -I/System/Library/Frameworks/OpenAL.framework/Headers -I/opt/local/include/freetype2 -o CMakeFiles/spring.dir/Lua/LuaSyncedCtrl.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/Lua/LuaSyncedCtrl.cpp
:info:build /opt/local/include/boost/functional/hash/detail/float_functions.hpp: In member function 'float boost::hash_detail::call_cpp_frexpf<true>::operator()(float, T) const [with T = int*]':
:info:build /opt/local/include/boost/functional/hash/detail/hash_float_generic.hpp:44: instantiated from 'size_t boost::hash_detail::float_hash_impl2(T) [with T = float]'
:info:build /opt/local/include/boost/functional/hash/detail/hash_float_generic.hpp:82: instantiated from 'size_t boost::hash_detail::float_hash_impl(T) [with T = float]'
:info:build /opt/local/include/boost/functional/hash/detail/hash_float.hpp:92: instantiated from 'size_t boost::hash_detail::float_hash_value(T) [with T = float]'
:info:build /opt/local/include/boost/functional/hash/hash.hpp:321: instantiated from here
:info:build /opt/local/include/boost/functional/hash/detail/float_functions.hpp:200: error: call of overloaded 'frexp(float&, int*&)' is ambiguous
:info:build /Developer/SDKs/MacOSX10.5.sdk/usr/include/architecture/i386/math.h:331: note: candidates are: double frexp(double, int*)
:info:build /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/cmath:269: note: long double std::frexp(long double, int*)
:info:build /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/cmath:265: note: float std::frexp(float, int*)
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/lib/streflop/SMath.h:466: note: streflop::Double streflop::frexp(streflop::Double, int*)
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/lib/streflop/SMath.h:258: note: streflop::Simple streflop::frexp(streflop::Simple, int*)
:info:build /opt/local/include/boost/functional/hash/detail/float_functions.hpp: In member function 'float boost::hash_detail::call_cpp_ldexpf<true>::operator()(float, T) const [with T = int]':
:info:build /opt/local/include/boost/functional/hash/detail/hash_float_generic.hpp:54: instantiated from 'size_t boost::hash_detail::float_hash_impl2(T) [with T = float]'
:info:build /opt/local/include/boost/functional/hash/detail/hash_float_generic.hpp:82: instantiated from 'size_t boost::hash_detail::float_hash_impl(T) [with T = float]'
:info:build /opt/local/include/boost/functional/hash/detail/hash_float.hpp:92: instantiated from 'size_t boost::hash_detail::float_hash_value(T) [with T = float]'
:info:build /opt/local/include/boost/functional/hash/hash.hpp:321: instantiated from here
:info:build /opt/local/include/boost/functional/hash/detail/float_functions.hpp:188: error: call of overloaded 'ldexp(float&, int&)' is ambiguous
:info:build /Developer/SDKs/MacOSX10.5.sdk/usr/include/architecture/i386/math.h:328: note: candidates are: double ldexp(double, int)
:info:build /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/cmath:284: note: long double std::ldexp(long double, int)
:info:build /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/cmath:280: note: float std::ldexp(float, int)
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/lib/streflop/SMath.h:467: note: streflop::Double streflop::ldexp(streflop::Double, int)
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/lib/streflop/SMath.h:259: note: streflop::Simple streflop::ldexp(streflop::Simple, int)
:info:build make[3]: *** [rts/CMakeFiles/spring.dir/Lua/LuaParser.cpp.o] Error 1
:info:build make[3]: *** Waiting for unfinished jobs....
:info:build make[2]: *** [rts/CMakeFiles/spring.dir/all] Error 2
:info:build make[1]: *** [rts/CMakeFiles/spring.dir/rule] Error 2
:info:build make: *** [spring] Error 2
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1" && /usr/bin/make -j2 spring " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for springrts): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for springrts is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/main.log
bash-3.2#
#######
### Manually building this dir with "make -d" (output too large to attach)
#######
bash-3.2# make -d -j2 spring > ~/springrts_manualmake.log
/opt/local/include/boost/functional/hash/detail/float_functions.hpp: In member function ÔÇÿfloat boost::hash_detail::call_cpp_frexpf<true>::operator()(float, T) const [with T = int*]ÔÇÖ:
/opt/local/include/boost/functional/hash/detail/hash_float_generic.hpp:44: instantiated from ÔÇÿsize_t boost::hash_detail::float_hash_impl2(T) [with T = float]ÔÇÖ
/opt/local/include/boost/functional/hash/detail/hash_float_generic.hpp:82: instantiated from ÔÇÿsize_t boost::hash_detail::float_hash_impl(T) [with T = float]ÔÇÖ
/opt/local/include/boost/functional/hash/detail/hash_float.hpp:92: instantiated from ÔÇÿsize_t boost::hash_detail::float_hash_value(T) [with T = float]ÔÇÖ
/opt/local/include/boost/functional/hash/hash.hpp:321: instantiated from here
/opt/local/include/boost/functional/hash/detail/float_functions.hpp:200: error: call of overloaded ÔÇÿfrexp(float&, int*&)ÔÇÖ is ambiguous
/Developer/SDKs/MacOSX10.5.sdk/usr/include/architecture/i386/math.h:331: note: candidates are: double frexp(double, int*)
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/cmath:269: note: long double std::frexp(long double, int*)
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/cmath:265: note: float std::frexp(float, int*)
/opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/lib/streflop/SMath.h:466: note: streflop::Double streflop::frexp(streflop::Double, int*)
/opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/lib/streflop/SMath.h:258: note: streflop::Simple streflop::frexp(streflop::Simple, int*)
/opt/local/include/boost/functional/hash/detail/float_functions.hpp: In member function ÔÇÿfloat boost::hash_detail::call_cpp_ldexpf<true>::operator()(float, T) const [with T = int]ÔÇÖ:
/opt/local/include/boost/functional/hash/detail/hash_float_generic.hpp:54: instantiated from ÔÇÿsize_t boost::hash_detail::float_hash_impl2(T) [with T = float]ÔÇÖ
/opt/local/include/boost/functional/hash/detail/hash_float_generic.hpp:82: instantiated from ÔÇÿsize_t boost::hash_detail::float_hash_impl(T) [with T = float]ÔÇÖ
/opt/local/include/boost/functional/hash/detail/hash_float.hpp:92: instantiated from ÔÇÿsize_t boost::hash_detail::float_hash_value(T) [with T = float]ÔÇÖ
/opt/local/include/boost/functional/hash/hash.hpp:321: instantiated from here
/opt/local/include/boost/functional/hash/detail/float_functions.hpp:188: error: call of overloaded ÔÇÿldexp(float&, int&)ÔÇÖ is ambiguous
/Developer/SDKs/MacOSX10.5.sdk/usr/include/architecture/i386/math.h:328: note: candidates are: double ldexp(double, int)
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/cmath:284: note: long double std::ldexp(long double, int)
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/cmath:280: note: float std::ldexp(float, int)
/opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/lib/streflop/SMath.h:467: note: streflop::Double streflop::ldexp(streflop::Double, int)
/opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/lib/streflop/SMath.h:259: note: streflop::Simple streflop::ldexp(streflop::Simple, int)
make[3]: *** [rts/CMakeFiles/spring.dir/Lua/LuaParser.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [rts/CMakeFiles/spring.dir/all] Error 2
make[1]: *** [rts/CMakeFiles/spring.dir/rule] Error 2
make: *** [spring] Error 2
10.5.8 (fully updated)
uname -a output:
Darwin box.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
Hardware:
MacBookAir2,1 Core 2 Duo 1.86Ghz
MacPorts version:
1.9.2 (most recent, sync'd, works fine for other projects)
Symptoms: Build error. seems to be on LuaParser.cpp
Here the end of the log file:
<snip>
:info:build [ 20%] Building CXX object rts/CMakeFiles/spring.dir/Lua/LuaSyncedCtrl.cpp.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts && /usr/bin/g++-4.0 -DSYNCCHECK -DNO_AVI -DSPRING_DATADIR=\"/opt/local/share/games/spring\" -DSTREFLOP_SSE -pipe -O2 -arch i386 -march=i686 -msse -mfpmath=sse -fsingle-precision-constant -frounding-math -mieee-fp -pipe -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -pthread -O2 -DNDEBUG -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/lib/lua/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts -I/opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/System -I/System/Library/Frameworks/OpenAL.framework/Headers -I/opt/local/include/freetype2 -o CMakeFiles/spring.dir/Lua/LuaSyncedCtrl.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/Lua/LuaSyncedCtrl.cpp
:info:build /opt/local/include/boost/functional/hash/detail/float_functions.hpp: In member function 'float boost::hash_detail::call_cpp_frexpf<true>::operator()(float, T) const [with T = int*]':
:info:build /opt/local/include/boost/functional/hash/detail/hash_float_generic.hpp:44: instantiated from 'size_t boost::hash_detail::float_hash_impl2(T) [with T = float]'
:info:build /opt/local/include/boost/functional/hash/detail/hash_float_generic.hpp:82: instantiated from 'size_t boost::hash_detail::float_hash_impl(T) [with T = float]'
:info:build /opt/local/include/boost/functional/hash/detail/hash_float.hpp:92: instantiated from 'size_t boost::hash_detail::float_hash_value(T) [with T = float]'
:info:build /opt/local/include/boost/functional/hash/hash.hpp:321: instantiated from here
:info:build /opt/local/include/boost/functional/hash/detail/float_functions.hpp:200: error: call of overloaded 'frexp(float&, int*&)' is ambiguous
:info:build /Developer/SDKs/MacOSX10.5.sdk/usr/include/architecture/i386/math.h:331: note: candidates are: double frexp(double, int*)
:info:build /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/cmath:269: note: long double std::frexp(long double, int*)
:info:build /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/cmath:265: note: float std::frexp(float, int*)
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/lib/streflop/SMath.h:466: note: streflop::Double streflop::frexp(streflop::Double, int*)
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/lib/streflop/SMath.h:258: note: streflop::Simple streflop::frexp(streflop::Simple, int*)
:info:build /opt/local/include/boost/functional/hash/detail/float_functions.hpp: In member function 'float boost::hash_detail::call_cpp_ldexpf<true>::operator()(float, T) const [with T = int]':
:info:build /opt/local/include/boost/functional/hash/detail/hash_float_generic.hpp:54: instantiated from 'size_t boost::hash_detail::float_hash_impl2(T) [with T = float]'
:info:build /opt/local/include/boost/functional/hash/detail/hash_float_generic.hpp:82: instantiated from 'size_t boost::hash_detail::float_hash_impl(T) [with T = float]'
:info:build /opt/local/include/boost/functional/hash/detail/hash_float.hpp:92: instantiated from 'size_t boost::hash_detail::float_hash_value(T) [with T = float]'
:info:build /opt/local/include/boost/functional/hash/hash.hpp:321: instantiated from here
:info:build /opt/local/include/boost/functional/hash/detail/float_functions.hpp:188: error: call of overloaded 'ldexp(float&, int&)' is ambiguous
:info:build /Developer/SDKs/MacOSX10.5.sdk/usr/include/architecture/i386/math.h:328: note: candidates are: double ldexp(double, int)
:info:build /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/cmath:284: note: long double std::ldexp(long double, int)
:info:build /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/cmath:280: note: float std::ldexp(float, int)
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/lib/streflop/SMath.h:467: note: streflop::Double streflop::ldexp(streflop::Double, int)
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/lib/streflop/SMath.h:259: note: streflop::Simple streflop::ldexp(streflop::Simple, int)
:info:build make[3]: *** [rts/CMakeFiles/spring.dir/Lua/LuaParser.cpp.o] Error 1
:info:build make[3]: *** Waiting for unfinished jobs....
:info:build make[2]: *** [rts/CMakeFiles/spring.dir/all] Error 2
:info:build make[1]: *** [rts/CMakeFiles/spring.dir/rule] Error 2
:info:build make: *** [spring] Error 2
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1" && /usr/bin/make -j2 spring " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for springrts): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for springrts is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/main.log
bash-3.2#
#######
### Manually building this dir with "make -d" (output too large to attach)
#######
bash-3.2# make -d -j2 spring > ~/springrts_manualmake.log
/opt/local/include/boost/functional/hash/detail/float_functions.hpp: In member function ÔÇÿfloat boost::hash_detail::call_cpp_frexpf<true>::operator()(float, T) const [with T = int*]ÔÇÖ:
/opt/local/include/boost/functional/hash/detail/hash_float_generic.hpp:44: instantiated from ÔÇÿsize_t boost::hash_detail::float_hash_impl2(T) [with T = float]ÔÇÖ
/opt/local/include/boost/functional/hash/detail/hash_float_generic.hpp:82: instantiated from ÔÇÿsize_t boost::hash_detail::float_hash_impl(T) [with T = float]ÔÇÖ
/opt/local/include/boost/functional/hash/detail/hash_float.hpp:92: instantiated from ÔÇÿsize_t boost::hash_detail::float_hash_value(T) [with T = float]ÔÇÖ
/opt/local/include/boost/functional/hash/hash.hpp:321: instantiated from here
/opt/local/include/boost/functional/hash/detail/float_functions.hpp:200: error: call of overloaded ÔÇÿfrexp(float&, int*&)ÔÇÖ is ambiguous
/Developer/SDKs/MacOSX10.5.sdk/usr/include/architecture/i386/math.h:331: note: candidates are: double frexp(double, int*)
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/cmath:269: note: long double std::frexp(long double, int*)
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/cmath:265: note: float std::frexp(float, int*)
/opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/lib/streflop/SMath.h:466: note: streflop::Double streflop::frexp(streflop::Double, int*)
/opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/lib/streflop/SMath.h:258: note: streflop::Simple streflop::frexp(streflop::Simple, int*)
/opt/local/include/boost/functional/hash/detail/float_functions.hpp: In member function ÔÇÿfloat boost::hash_detail::call_cpp_ldexpf<true>::operator()(float, T) const [with T = int]ÔÇÖ:
/opt/local/include/boost/functional/hash/detail/hash_float_generic.hpp:54: instantiated from ÔÇÿsize_t boost::hash_detail::float_hash_impl2(T) [with T = float]ÔÇÖ
/opt/local/include/boost/functional/hash/detail/hash_float_generic.hpp:82: instantiated from ÔÇÿsize_t boost::hash_detail::float_hash_impl(T) [with T = float]ÔÇÖ
/opt/local/include/boost/functional/hash/detail/hash_float.hpp:92: instantiated from ÔÇÿsize_t boost::hash_detail::float_hash_value(T) [with T = float]ÔÇÖ
/opt/local/include/boost/functional/hash/hash.hpp:321: instantiated from here
/opt/local/include/boost/functional/hash/detail/float_functions.hpp:188: error: call of overloaded ÔÇÿldexp(float&, int&)ÔÇÖ is ambiguous
/Developer/SDKs/MacOSX10.5.sdk/usr/include/architecture/i386/math.h:328: note: candidates are: double ldexp(double, int)
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/cmath:284: note: long double std::ldexp(long double, int)
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/cmath:280: note: float std::ldexp(float, int)
/opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/lib/streflop/SMath.h:467: note: streflop::Double streflop::ldexp(streflop::Double, int)
/opt/local/var/macports/build/_opt_local_var_macports_sources_daftserver.dyndns.org_macports_games_springrts/work/spring_0.81.2.1/rts/lib/streflop/SMath.h:259: note: streflop::Simple streflop::ldexp(streflop::Simple, int)
make[3]: *** [rts/CMakeFiles/spring.dir/Lua/LuaParser.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [rts/CMakeFiles/spring.dir/all] Error 2
make[1]: *** [rts/CMakeFiles/spring.dir/rule] Error 2
make: *** [spring] Error 2