Hello I need access to a version of sqlite with the rtree extension from python, so I'm trying to build APSW.
I'm running into a problem building APSW on Mac OS X using the instructions at recommended <http://apidoc.apsw.googlecode.com/hg/build.html#recommended>. Everything seems to go OK until I get an error from GCC reporting an unrecognized command line option. Macintosh:apsw-3.7.4-r1 dennis$ python setup.py fetch --all build --enable-all-extensions install test running fetch Getting download page to work out current SQLite version Fetching http://www.sqlite.org/download.html Version is 3.7.4 Getting the SQLite amalgamation Fetching http://www.sqlite.org/sqlite-autoconf-3070400.tar.gz Length: 1545086 SHA1: 43848641320cb60fb7f445bc295b9870cdc127be MD5: 8f0c690bfb33c3cbbc2471c3d9ba0158 Checksums verified Running configure to work out SQLite compilation flags rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory Getting the async vfs extension Fetching http://www.sqlite.org/sqlite-src-3070400.zip Length: 3997962 SHA1: c0d04178e5a18e1ce033e035a84dda9725ddd988 MD5: 2b5c53328505893599de6e2055996d7a Checksums verified running build running build_ext SQLite: Using amalgamation /Users/dennis/projects/apsw-3.7.4-r1/sqlite3/sqlite3.c ICU: Added includes, flags and libraries from icu-config AsyncVFS: /Users/dennis/projects/apsw-3.7.4-r1/sqlite3async.c building 'apsw' extension gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -DEXPERIMENTAL=1 -DNDEBUG=1 -DAPSW_FORK_CHECKER=1 -DAPSW_USE_SQLITE_AMALGAMATION="/Users/dennis/projects/apsw-3.7.4-r1/sqlite3/sqlite3.c" -DAPSW_USE_SQLITE_CONFIG="/Users/dennis/projects/apsw-3.7.4-r1/sqlite3/sqlite3config.h" -DSQLITE_ENABLE_FTS4=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_ICU=1 -DAPSW_USE_SQLITE_ASYNCVFS_C="/Users/dennis/projects/apsw-3.7.4-r1/sqlite3async.c" -DAPSW_USE_SQLITE_ASYNCVFS_H="/Users/dennis/projects/apsw-3.7.4-r1/sqlite3async.h" -Isrc -I/Users/dennis/projects/apsw-3.7.4-r1/sqlite3 -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/apsw.c -o build/temp.macosx-10.3-i386-2.5/src/apsw.o cc1: error: unrecognized command line option "-Wno-long-double" cc1: error: unrecognized command line option "-Wno-long-double" lipo: can't figure out the architecture type of: /var/folders/XO/XOQ0VW8KH5Cwu90OpzXxNk+++TI/-Tmp-//ccdAUc1z.out error: command 'gcc' failed with exit status 1 My version of gcc is provided by the latest Xcode (3.2.5) Macintosh:apsw-3.7.4-r1 dennis$ gcc --version i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Does anyone (in particular Roger Binns :-)) have an idea what might be going wrong and how to correct it? Alternatively, does anyone know how to get access to the rtree extension from python 2.5 included with Mac OS X? Thanks. Dennis Cote _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

