Code: Select all
WARNING: attempt to use environment CFLAGS has been ignored.
WARNING: attempt to use environment CXXFLAGS has been ignored.
Moderator: Moderators
Code: Select all
WARNING: attempt to use environment CFLAGS has been ignored.
WARNING: attempt to use environment CXXFLAGS has been ignored.
The bold ones will desync you, need the ones from SConstruct (-mfpmath=x87 + some more). The others are safe, I think, though I don't recall what -fno-ident does atm.HAARP wrote:That's what I wanted to hear, thanks.
Which are these particular flags that are known to desync?
I would've used these:
CFLAGS="-march=athlon-xp -O2 -pipe -fno-ident -fomit-frame-pointer -mfpmath=sse -ffast-math"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
I am going to generally get rid of -mfpmath=sse, because I since heard this breaks stuff and does NOT improve performance on my march.Tobi wrote:The bold ones will desync you, need the ones from SConstruct (-mfpmath=x87 + some more). The others are safe, I think, though I don't recall what -fno-ident does atm.HAARP wrote:That's what I wanted to hear, thanks.
Which are these particular flags that are known to desync?
I would've used these:
CFLAGS="-march=athlon-xp -O2 -pipe -fno-ident -fomit-frame-pointer -mfpmath=sse -ffast-math"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
Code: Select all
g++ -o blah.o -c -fsingle-precision-constant -frounding-math -fsignaling-nans -mieee-fp....
Code: Select all
g++ -o build/rts/System/TdfParser.o -c -fsingle-precision-constant -frounding-math -fsignaling-nans -mieee-fp -O2 -pipe -fno-strict-aliasing -mfpmath=387 -pthread -ffast-math -fno-ident -march=athlon-xp -fvisibility-inlines-hidden -fvisibility=hidden -D_SZ_ONE_DIRECTORY -D_GNU_SOURCE=1 -D_REENTRANT -DSTREFLOP_X87 -DSYNCCHECK -DNO_AVI -DDIRECT_CONTROL_ALLOWED -Irts -Irts/System -Irts/lib/luabind -Irts/lib/lua/include -I/usr/include -I/usr/include/GL -I/usr/include/freetype2 -I/usr/include/SDL -I/usr/include/ogg -I/usr/include/vorbis -I/usr/include/python2.5 -I/usr/include/python2.4 rts/System/TdfParser.cpp
/usr/include/bits/mathinline.h: In function 'double asinh(double)':
/usr/include/bits/mathinline.h:608: error: call of overloaded 'log1pl(long double)' is ambiguous
/usr/include/bits/mathcalls.h:132: note: candidates are: long double log1pl(long double)
rts/lib/streflop/SMath.h:672: note: streflop::Extended streflop::log1pl(streflop::Extended)
/usr/include/bits/mathinline.h: In function 'float asinhf(float)':
/usr/include/bits/mathinline.h:608: error: call of overloaded 'log1pl(long double)' is ambiguous
/usr/include/bits/mathcalls.h:132: note: candidates are: long double log1pl(long double)
rts/lib/streflop/SMath.h:672: note: streflop::Extended streflop::log1pl(streflop::Extended)
/usr/include/bits/mathinline.h: In function 'long double asinhl(long double)':
/usr/include/bits/mathinline.h:608: error: call of overloaded 'log1pl(long double)' is ambiguous
/usr/include/bits/mathcalls.h:132: note: candidates are: long double log1pl(long double)
rts/lib/streflop/SMath.h:672: note: streflop::Extended streflop::log1pl(streflop::Extended)
/usr/include/bits/mathinline.h: In function 'double acosh(double)':
/usr/include/bits/mathinline.h:613: error: call of overloaded 'logl(long double)' is ambiguous
/usr/include/bits/mathcalls.h:110: note: candidates are: long double logl(long double)
rts/lib/streflop/SMath.h:627: note: streflop::Extended streflop::logl(streflop::Extended)
/usr/include/bits/mathinline.h: In function 'float acoshf(float)':
/usr/include/bits/mathinline.h:613: error: call of overloaded 'logl(long double)' is ambiguous
/usr/include/bits/mathcalls.h:110: note: candidates are: long double logl(long double)
rts/lib/streflop/SMath.h:627: note: streflop::Extended streflop::logl(streflop::Extended)
/usr/include/bits/mathinline.h: In function 'long double acoshl(long double)':
/usr/include/bits/mathinline.h:613: error: call of overloaded 'logl(long double)' is ambiguous
/usr/include/bits/mathcalls.h:110: note: candidates are: long double logl(long double)
rts/lib/streflop/SMath.h:627: note: streflop::Extended streflop::logl(streflop::Extended)
/usr/include/bits/mathinline.h: In function 'double atanh(double)':
/usr/include/bits/mathinline.h:616: error: call of overloaded 'log1pl(long double)' is ambiguous
/usr/include/bits/mathcalls.h:132: note: candidates are: long double log1pl(long double)
rts/lib/streflop/SMath.h:672: note: streflop::Extended streflop::log1pl(streflop::Extended)
/usr/include/bits/mathinline.h: In function 'float atanhf(float)':
/usr/include/bits/mathinline.h:616: error: call of overloaded 'log1pl(long double)' is ambiguous
/usr/include/bits/mathcalls.h:132: note: candidates are: long double log1pl(long double)
rts/lib/streflop/SMath.h:672: note: streflop::Extended streflop::log1pl(streflop::Extended)
/usr/include/bits/mathinline.h: In function 'long double atanhl(long double)':
/usr/include/bits/mathinline.h:616: error: call of overloaded 'log1pl(long double)' is ambiguous
/usr/include/bits/mathcalls.h:132: note: candidates are: long double log1pl(long double)
rts/lib/streflop/SMath.h:672: note: streflop::Extended streflop::log1pl(streflop::Extended)
/usr/include/bits/mathinline.h: In function 'double __acosh1p(double)':
/usr/include/bits/mathinline.h:741: error: call of overloaded 'log1pl(long double)' is ambiguous
/usr/include/bits/mathcalls.h:132: note: candidates are: long double log1pl(long double)
rts/lib/streflop/SMath.h:672: note: streflop::Extended streflop::log1pl(streflop::Extended)
/usr/include/bits/mathinline.h: In function 'float __acosh1pf(float)':
/usr/include/bits/mathinline.h:741: error: call of overloaded 'log1pl(long double)' is ambiguous
/usr/include/bits/mathcalls.h:132: note: candidates are: long double log1pl(long double)
rts/lib/streflop/SMath.h:672: note: streflop::Extended streflop::log1pl(streflop::Extended)
/usr/include/bits/mathinline.h: In function 'long double __acosh1pl(long double)':
/usr/include/bits/mathinline.h:741: error: call of overloaded 'log1pl(long double)' is ambiguous
/usr/include/bits/mathcalls.h:132: note: candidates are: long double log1pl(long double)
rts/lib/streflop/SMath.h:672: note: streflop::Extended streflop::log1pl(streflop::Extended)
scons: *** [build/rts/System/TdfParser.o] Error 1
scons: building terminated because of errors.
Code: Select all
No response from 1N4148 for frame 21017 etc.
Function inlining is switched on with -O3, but not -O2 optimization (you can do it manually with -finline-functions), so if you have an athlon(-xp), it's probably worth the additional compiling time (and the increased size).As an interesting aside, AMD recommends using function inlining with their processors (Athlon and up).