Re: [sqlite] SQLite compile errors with gcc

2009-02-03 Thread xianzhang

Thank you!



Roger Binns wrote:
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> xianzhang wrote:
>> sqlite/sqlite3.c:18848:3: #error SQLite will not work correctly with the
>> -ffast-math option of GCC
> [...]
>> Any ideas how I can fix this? Thanks!
> 
> Exactly as it says.  Don't supply the -ffast-math option.  Something in
> your build environment selected that flag so stop it :-)  In case you
> are wondering the -ffast-math option allows gcc to take various
> non-standards compliant shortcuts when doing floating point arithmetic.
>  Those shortcuts end up causing SQLite to give very wrong floating point
> results.
> 
> Roger
> 
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (GNU/Linux)
> 
> iEYEARECAAYFAkmHdU4ACgkQmOOfHg372QRCegCgx1kOhK9LYduvS4LjY8JPTiC/
> twUAoM7El900s59WGdHtm/ViFhAtt4WA
> =Pejd
> -END PGP SIGNATURE-
> ___
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/SQLite-compile-errors-with-gcc-tp21787175p21809056.html
Sent from the SQLite mailing list archive at Nabble.com.

___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] SQLite compile errors with gcc

2009-02-02 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

xianzhang wrote:
> sqlite/sqlite3.c:18848:3: #error SQLite will not work correctly with the
> -ffast-math option of GCC
[...]
> Any ideas how I can fix this? Thanks!

Exactly as it says.  Don't supply the -ffast-math option.  Something in
your build environment selected that flag so stop it :-)  In case you
are wondering the -ffast-math option allows gcc to take various
non-standards compliant shortcuts when doing floating point arithmetic.
 Those shortcuts end up causing SQLite to give very wrong floating point
results.

Roger

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkmHdU4ACgkQmOOfHg372QRCegCgx1kOhK9LYduvS4LjY8JPTiC/
twUAoM7El900s59WGdHtm/ViFhAtt4WA
=Pejd
-END PGP SIGNATURE-
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] SQLite compile errors with gcc

2009-02-02 Thread xianzhang

Hello.

I am trying to install the SQLite package for R. When I was compiling the
source  RSQLite_0.7-1.tar.gz, I got the following error message:

sqlite/sqlite3.c:18848:3: #error SQLite will not work correctly with the
-ffast-math option of GCC
 
The compiler was gcc version 3.4.6 20060404 (Red Hat 3.4.6-8). 

Any ideas how I can fix this? Thanks!

-- 
View this message in context: 
http://www.nabble.com/SQLite-compile-errors-with-gcc-tp21787175p21787175.html
Sent from the SQLite mailing list archive at Nabble.com.

___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users