This rather surprised me, as the sqlite team takes testing very seriously (more
so than Sage),
http://www.sqlite.org/testing.html
with 647 times as much test code as actual source code for the database!
I'm begginging to wonder if building with delays to gcc is either a very good
way to find bugs, or is a totally stupid way. I've built Singular 500 times
without a build error now.
Dave
sqlite-3.6.22/.hgignore
Finished extraction
****************************************************
Host system
uname -a:
SunOS hawk 5.11 snv_134 i86pc i386 i86pc
****************************************************
****************************************************
CC Version
gcc -v
Using built-in specs.
COLLECT_GCC=/usr/local/gcc-4.5.0/bin/gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc-4.5.0/libexec/gcc/i386-pc-solaris2.10/4.5.0/lto-wrapper
Target: i386-pc-solaris2.10
Configured with: ../gcc-4.5.0/configure --prefix=/usr/local/gcc-4.5.0
--build=i386-pc-solaris2.10 --enable-languages=c,c++,fortran
--with-gmp=/usr/local/gcc-4.5.0 --with-mpfr=/usr/local/gcc-4.5.0 --disable-nls
--enable-checking=release --enable-werror=no --enable-multilib -with-system-zlib
--enable-bootstrap --with-gnu-as --with-as=/usr/local/binutils-2.20/bin/as
--without-gnu-ld --with-ld=/usr/ccs/bin/ld
Thread model: posix
gcc version 4.5.0 (GCC)
****************************************************
Code will be built with debugging information present. Set 'SAGE_DEBUG' to '0'
if you don't want that.
Building sqlite using CC=gcc
CCX=g++
SAGE_FORTRAN=/usr/local/gcc-4.5.0-delayed/bin/gfortran
F77=/usr/local/gcc-4.5.0-delayed/bin/gfortran
FC=/usr/local/gcc-4.5.0-delayed/bin/gfortran
CFLAGS= -g -O2
CXXFLAGS= -g -O2
FFLAGS= -g
CPPFLAGS= -I
/export/home/drkirkby/slow/sage-4.6.alpha1/local/include
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make -j12 sets $(MAKE)... yes
checking for style of include used by make -j12... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for ranlib... ranlib
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
checking for a sed that does not truncate output... /usr/bin/gsed
checking for grep that handles long lines and -e... /usr/bin/ggrep
checking for egrep... /usr/bin/ggrep -E
checking for ld used by gcc... ld
checking if the linker (ld) is GNU ld... no
checking for ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether /usr/local/gcc-4.5.0-delayed/bin/gfortran accepts -g... yes
checking the maximum length of command line arguments... 262144
checking command to parse /usr/bin/nm -p output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... (cached) ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... ld
checking if the linker (ld) is GNU ld... no
checking whether the g++ linker (ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (ld) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for /usr/local/gcc-4.5.0-delayed/bin/gfortran option to produce PIC...
-fPIC
checking if /usr/local/gcc-4.5.0-delayed/bin/gfortran PIC flag -fPIC works... yes
checking if /usr/local/gcc-4.5.0-delayed/bin/gfortran static flag -static
works... no
checking if /usr/local/gcc-4.5.0-delayed/bin/gfortran supports -c -o file.o... yes
checking whether the /usr/local/gcc-4.5.0-delayed/bin/gfortran linker (ld)
supports shared libraries... yes
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
checking for fdatasync... yes
checking for usleep... yes
checking for fullfsync... no
checking for localtime_r... yes
checking for gmtime_r... yes
checking for library containing tgetent... -lcurses
checking for library containing readline... -lreadline
checking for readline... yes
checking for library containing dlopen... none required
checking for whether to support dynamic extensions... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating sqlite3.pc
config.status: executing depfiles commands
make[2]: Entering directory
`/export/home/drkirkby/slow/sage-4.6.alpha1/spkg/build/sqlite-3.6.22/src'
make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"sqlite\"
-DPACKAGE_TARNAME=\"sqlite\" -DPACKAGE_VERSION=\"3.6.22\"
-DPACKAGE_STRING=\"sqlite\ 3.6.22\"
-DPACKAGE_BUGREPORT=\"http://www.sqlite.org\" -DPACKAGE=\"sqlite\"
-DVERSION=\"3.6.22\" -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_FDATASYNC=1 -DHAVE_USLEEP=1
-DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DHAVE_READLINE=1 -I. -I. -I
/export/home/drkirkby/slow/sage-4.6.alpha1/local/include -DSQLITE_THREADSAFE=0
-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -g -O2 -MT sqlite3.lo -MD -MP -MF
".deps/sqlite3.Tpo" -c -o sqlite3.lo sqlite3.c; \
then mv -f ".deps/sqlite3.Tpo" ".deps/sqlite3.Plo"; else rm -f
".deps/sqlite3.Tpo"; exit 1; fi
mkdir .libs
gcc "-DPACKAGE_NAME=\"sqlite\"" "-DPACKAGE_TARNAME=\"sqlite\""
"-DPACKAGE_VERSION=\"3.6.22\"" "-DPACKAGE_STRING=\"sqlite 3.6.22\""
"-DPACKAGE_BUGREPORT=\"http://www.sqlite.org\"" "-DPACKAGE=\"sqlite\""
"-DVERSION=\"3.6.22\"" -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_FDATASYNC=1 -DHAVE_USLEEP=1
-DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DHAVE_READLINE=1 -I. -I. -I
/export/home/drkirkby/slow/sage-4.6.alpha1/local/include -DSQLITE_THREADSAFE=0
-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -g -O2 -MT sqlite3.lo -MD -MP -MF
.deps/sqlite3.Tpo -c sqlite3.c -fPIC -DPIC -o .libs/sqlite3.o
gcc: 3.6.22": No such file or directory
<command-line>:0:16: warning: missing terminating " character
make[2]: *** [sqlite3.lo] Error 1
make[2]: Leaving directory
`/export/home/drkirkby/slow/sage-4.6.alpha1/spkg/build/sqlite-3.6.22/src'
Error making sqlite
real 8m24.300s
user 0m15.718s
sys 0m3.036s
> Something is wrong with escaping the quotation marks in the gcc call.
> How are you implementing the delay? Are you sure it preserves shell
> escapes? If anything it seems to be a bug in the shell or make, but
> not sqlite.
>
> Cheers,
> Volker
Yes, I realised the problem. I will correct it.
Dave