Notifications
Clear all

Buil dof current master branch on Centos 5.6


dwe
 dwe
(@dwe)
Crewman Registered
Joined: 13 years ago
Posts: 1
Topic starter  

Hi,

I`m hitting a roadblock here:

Code:
./StringF.h warning: ‘class FormatArgT’ has virtual functions but non-virtual destructor
if g++ -DPACKAGE_NAME=\"pioneer\" -DPACKAGE_TARNAME=\"pioneer\" -DPACKAGE_VERSION=\"alpha-15-dev\" -DPACKAGE_STRING=\"pioneer\ alpha-15-dev\" -DPACKAGE_BUGREPORT=\"pioneer-dev@pioneerspacesim.net\" -DPACKAGE=\"pioneer\" -DVERSION=\"alpha-15-dev\" -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DHAVE_LIBSDL_IMAGE=1 -I. -I. -I../contrib -I../contrib/lua -DPIONEER_DATA_DIR=\"data\" -I/usr/include/freetype2 -I/usr/include/GL -DLUA_USE_POSIX -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -Wall -Wformat -Wformat-security -Wstrict-aliasing=2 -Wmissing-format-attribute -Wmissing-noreturn -Wdisabled-optimization -Wfloat-equal -Wshadow -Wcast-qual -Wcast-align -Wstrict-null-sentinel -Wold-style-cast -Wsign-promo -g -O2 -MT mtrand.o -MD -MP -MF ".deps/mtrand.Tpo" -c -o mtrand.o mtrand.cpp; \
then mv -f ".deps/mtrand.Tpo" ".deps/mtrand.Po"; else rm -f ".deps/mtrand.Tpo"; exit 1; fi
if g++ -DPACKAGE_NAME=\"pioneer\" -DPACKAGE_TARNAME=\"pioneer\" -DPACKAGE_VERSION=\"alpha-15-dev\" -DPACKAGE_STRING=\"pioneer\ alpha-15-dev\" -DPACKAGE_BUGREPORT=\"pioneer-dev@pioneerspacesim.net\" -DPACKAGE=\"pioneer\" -DVERSION=\"alpha-15-dev\" -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DHAVE_LIBSDL_IMAGE=1 -I. -I. -I../contrib -I../contrib/lua -DPIONEER_DATA_DIR=\"data\" -I/usr/include/freetype2 -I/usr/include/GL -DLUA_USE_POSIX -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -Wall -Wformat -Wformat-security -Wstrict-aliasing=2 -Wmissing-format-attribute -Wmissing-noreturn -Wdisabled-optimization -Wfloat-equal -Wshadow -Wcast-qual -Wcast-align -Wstrict-null-sentinel -Wold-style-cast -Wsign-promo -g -O2 -MT perlin.o -MD -MP -MF ".deps/perlin.Tpo" -c -o perlin.o perlin.cpp; \
then mv -f ".deps/perlin.Tpo" ".deps/perlin.Po"; else rm -f ".deps/perlin.Tpo"; exit 1; fi
if g++ -DPACKAGE_NAME=\"pioneer\" -DPACKAGE_TARNAME=\"pioneer\" -DPACKAGE_VERSION=\"alpha-15-dev\" -DPACKAGE_STRING=\"pioneer\ alpha-15-dev\" -DPACKAGE_BUGREPORT=\"pioneer-dev@pioneerspacesim.net\" -DPACKAGE=\"pioneer\" -DVERSION=\"alpha-15-dev\" -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DHAVE_LIBSDL_IMAGE=1 -I. -I. -I../contrib -I../contrib/lua -DPIONEER_DATA_DIR=\"data\" -I/usr/include/freetype2 -I/usr/include/GL -DLUA_USE_POSIX -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -Wall -Wformat -Wformat-security -Wstrict-aliasing=2 -Wmissing-format-attribute -Wmissing-noreturn -Wdisabled-optimization -Wfloat-equal -Wshadow -Wcast-qual -Wcast-align -Wstrict-null-sentinel -Wold-style-cast -Wsign-promo -g -O2 -MT utils.o -MD -MP -MF ".deps/utils.Tpo" -c -o utils.o utils.cpp; \
then mv -f ".deps/utils.Tpo" ".deps/utils.Po"; else rm -f ".deps/utils.Tpo"; exit 1; fi
In file included from vector3.h:6,
from libs.h:75,
from utils.cpp
FloatComparison.h warning: ignoring #pragma GCC diagnostic
FloatComparison.h warning: ignoring #pragma GCC diagnostic
FloatComparison.h: In function ‘bool float_equal_exact(float, float)’:
FloatComparison.h warning: comparing floating point with == or != is unsafe
FloatComparison.h: In function ‘bool float_equal_exact(double, double)’:
FloatComparison.h warning: comparing floating point with == or != is unsafe
FloatComparison.h: In function ‘bool float_is_zero_exact(float)’:
FloatComparison.h warning: comparing floating point with == or != is unsafe
FloatComparison.h: In function ‘bool float_is_zero_exact(double)’:
FloatComparison.h warning: comparing floating point with == or != is unsafe
StringF.h: At global scope:
StringF.h warning: ‘class FormatArg’ has virtual functions but non-virtual destructor
StringF.h: In instantiation of ‘FormatArgT’:
StringF.h instantiated from here
StringF.h warning: ‘class FormatArgT’ has virtual functions but non-virtual destructor
gui/GuiISelectable.h warning: ‘class Gui::ISelectable’ has virtual functions but non-virtual destructor
/usr/include/pngconf.h error: expected constructor, destructor, or type conversion before ‘.’ token
/usr/include/pngconf.h error: ‘__dont__’ does not name a type
StringF.h: In instantiation of ‘FormatArgT’:
StringF.h instantiated from ‘std::string stringf(const char*, const T0&) [with T0 = int]’
./IniConfig.h instantiated from here
StringF.h warning: ‘class FormatArgT’ has virtual functions but non-virtual destructor
StringF.h: In instantiation of ‘FormatArgT’:
StringF.h instantiated from ‘std::string stringf(const char*, const T0&) [with T0 = float]’
./IniConfig.h instantiated from here
StringF.h warning: ‘class FormatArgT’ has virtual functions but non-virtual destructor
StringF.h: In instantiation of ‘FormatArgT’:
StringF.h instantiated from ‘std::string stringf(const char*, const T0&) [with T0 = double]’
utils.cpp instantiated from here
StringF.h warning: ‘class FormatArgT’ has virtual functions but non-virtual destructor
make[2]: [utils.o] Error 1
make[2]: Leaving directory `/usr/src/redhat/DEVEL/pioneer/pioneer/src'
make[1]:
[all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/DEVEL/pioneer/pioneer/src'
make: *** [all-recursive] Error 1

Could somebody shed some light on what`s wrong?

many thanks and best regards,

dwe


Quote
robn
 robn
(@robn)
Captain Registered
Joined: 13 years ago
Posts: 1035
 

What version of gcc do you have there? I personally know it builds fine on 4.5 and 4.6, and I think people are building with success on 4.4. This looks like some kind of language support thing.


ReplyQuote
durandal
(@durandal)
Petty Officer Registered
Joined: 13 years ago
Posts: 44
 

It also builds fine with gcc 4.2.2 and FreeBSD clang version 3.0 (trunk 135360) 20110717


ReplyQuote