> On 10/02/2018, at 12:07, Justin C. Walker <jus...@mac.com> wrote: > >> >> On Feb 9, 2018, at 00:25 , Volker Braun <vbraun.n...@gmail.com> wrote: >> >> As always, you can get the latest beta version from the "develop" git >> branch. Alternatively, the self-contained source tarball is at >> http://www.sagemath.org/download-latest.html > > Yay for using clang! > > Built from a fresh clone/checkout of the develop tree. > > The build (macOS 10.11.6, MBP Quad-core Core i7) blows chunks on sqlite: > > ========================== > libtool: compile: gcc -DPACKAGE_NAME=\"sqlite\" -DPACKAGE_TARNAME=\"sqlite\" > -DPACKAGE_VERSION=\"3.17.0\" "-DPACKAGE_STRING=\"sqlite 3.17.0\ > \"" -DPACKAGE_BUGREPORT=\"http://www.sqlite.org\" -DPACKAGE_URL=\"\" > -DPACKAGE=\"sqlite\" -DVERSION=\"3.17.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_T\ > YPES_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 -DLT_OBJDIR=\".libs/\" -DHAVE_FDATASYNC=1 > -DHAVE_USLEEP=1 -DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DHAVE_D\ > ECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DHAVE_EDITLINE_READLINE_H=1 > -DHAVE_EDITLINE=1 -I. -I/Users/Sage/sage-8.2.beta5/local/include -D_REENTR\ > ANT=1 -DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -g -O2 > -MT sqlite3.lo -MD -MP -MF .deps/sqlite3.Tpo -c sqlite3.c -fn\ > o-common -DPIC -o .libs/sqlite3.o > sqlite3.c:28836:10: error: use of unknown builtin '__builtin_add_overflow' > [-Wimplicit-function-declaration] > return __builtin_add_overflow(*pA, iB, pA); > ^ > ========================== > > sqlite log attached.
Ok figured how that one occurred. Xcode version clang differently from linux. sqlite macro evaluate the version with #if defined(__clang__) && !defined(_WIN32) && !defined(SQLITE_DISABLE_INTRINSIC) # define CLANG_VERSION \ (__clang_major__*1000000+__clang_minor__*1000+__clang_patchlevel__) with clang 3.8 on linux __clang_major__ is 3 but in Xcode 3.8 it is 8. You can imagine that a test designed to figure that you use clang 4 on linux will pass with that version of Xcode. Anyway it is all the wrong way to figure out if you should use the builtin. Using https://www.gnu.org/software/autoconf-archive/ax_gcc_builtin.html#ax_gcc_builtin is a way better idea but that means touching quite a bit of sqlite3.c François -- You received this message because you are subscribed to the Google Groups "sage-release" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-release+unsubscr...@googlegroups.com. To post to this group, send email to sage-release@googlegroups.com. Visit this group at https://groups.google.com/group/sage-release. For more options, visit https://groups.google.com/d/optout.