Hi Antony,
I hadn't taken note before, but the error is showing up during the compile of MongoDB client code. Here's the full command line and the error, according to the log:
/usr/bin/g++ -o build/linux2/cc__usr_bin_gcc/cxx__usr_bin_g++/mongo/bson/bsonobjbuilder.o -c -Wnon-virtual-dtor -Woverloaded-virtual -Wno-error=unused-variable -fPIC -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -pipe -Werror -O3 -Wno-unused-function -Wno-deprecated-declarations -Wno-missing-braces -DMONGO_EXPOSE_MACROS -D_FILE_OFFSET_BITS=64 -DMONGO_HAVE___THREAD -DBOOST_THREAD_USES_DATETIME -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_POSIX_MONOTONIC_CLOCK -DMONGO_HAVE_TIMEGM -DLIBMONGOCLIENT_BUILDING -DSTATIC_LIBMONGOCLIENT -Ibuild/linux2/cc__usr_bin_gcc/cxx__usr_bin_g++/third_party/gtest-1.7.0/include -Isrc/third_party/gtest-1.7.0/include -Ibuild/linux2/cc__usr_bin_gcc/cxx__usr_bin_g++ -Isrc -Ibuild/linux2/cc__usr_bin_gcc/cxx__usr_bin_g++/mongo -Isrc/mongo -I/home/shane.turner/Workbench/Boost-1.60.0/include/3rdParty src/mongo/bson/bsonobjbuilder.cpp
cc1plus: warnings being treated as errors
In file included from src/mongo/bson/bsonobjbuilder.cpp:20:
/home/shane.turner/Workbench/Boost-1.60.0/include/3rdParty/boost/lexical_cast.hpp: In function 'Target boost::lexical_cast(const Source&) [with Target = long long int, Source = std::basic_string