[Scons-users] Fwd: Problems with SCons building MongoDB C++ Driver

Brian Dentino brian.dentino at gmail.com
Tue Jul 29 21:14:49 EDT 2014


Hi,

I'm having an impossible time trying to build the c++ driver for mongodb,
which uses the SCons build system. Based on the fact that I can't even get
through the SCons configuration stage, I think the issue might be with my
SCons installation. When using the SCons Configuration module to check the
'C' compiler, it complains that it can't find the .c file it's trying to
compile, but I have verified that this file does indeed exist. In fact, if
I copy and paste the failing 'cl' call from the config log file to the
command line and run it finishes just fine.

I've successfully running a 'minimal' SCons build that simply does the
configuration checks on the C/C++ compiler and that works perfectly fine.

I'm trying to debug this but I have absolutely no experience with SCons.
Any help would be very much appreciated. Has anyone run into this issue
before? Any idea what might be causing it?

-Brian



Host Info:
 - Windows 7, 64-bit x86

Compiler Info:
 - MSVC 2013, x64 cl.exe

SCons Version:
 - 2.3.2 (installed using binary package from SCons download page)

Scons Invocation (run from a VS2013 x64 Native Tools Command Prompt):
  scons --prefix=C:\mongodb-driver --full --use-system-boost
--cpppath=C:\Boost\1.55.0 --libpath=C:\Boost\1.55.0\lib64-msvc-12.0 --ssl

Scons Output:

scons: Reading SConscript files ...
Mkdir(".scons\nohost")scons version: 2.3.2
python version: 2 7 8 'final' 0
Checking whether the C++ compiler works... yes
Checking whether the C compiler works... no
C compiler cl does not work


Config.log Contents:

 file C:\Users\de069146\Documents\OpenSourceProjects\mongo-cxx-driver\
SConstruct,line 965:
 Configure(confdir = .scons\nohost\sconf_temp)
scons: Configure: Checking whether the C++ compiler works...
.scons\nohost\sconf_temp\conftest_0.cpp <-
  |
  |int main()
  |{
  |    return 0;
  |}
  |
cl /Fo.scons\nohost\sconf_temp\conftest_0.obj /c .scons\nohost\sconf_temp\
conftest_0.cpp /TP /nologo /EHsc /W3 /wd4355 /wd4800 /wd4267 /wd4244 /
wd4290 /we4099/Z7 /errorReport:none /MT /O2 /Oy- /D_SCONS /
DMONGO_EXPOSE_MACROS /DSUPPORT_UTF8/DMONGO_OPTIMIZED_BUILD /D_UNICODE /
DUNICODE /D_CONSOLE /D_CRT_SECURE_NO_WARNINGS/DMONGO_SSL /Ibuild\win32\ssl\
use-system-boost\third_party\gtest-1.7.0\include/Ibuild\win32\ssl\use-system
-boost\third_party\snappy /Ibuild\win32\ssl\use-system-boost\third_party\
libstemmer_c\include /Ibuild\win32\ssl\use-system-boost\third_party\s2 /
Ibuild\win32\ssl\use-system-boost\third_party\pcre-8.30/Ibuild\win32\ssl\use
-system-boost /Ibuild\win32\ssl\use-system-boost\mongo/IC:\Boost\1.55.0 /IC
:\Users\de069146\Documents\OpenSourceProjects\winpcap\Include
conftest_0.cpp
scons: Configure: yes


scons: Configure: Checking whether the C compiler works...
.scons\nohost\sconf_temp\conftest_1.c <-
  |
  |int main()
  |{
  |    return 0;
  |}
  |
cl /Fo.scons\nohost\sconf_temp\conftest_1.obj /c .scons\nohost\sconf_temp\
conftest_1.c /nologo /EHsc /W3 /wd4355 /wd4800 /wd4267 /wd4244 /wd4290 /
we4099 /Z7/errorReport:none /MT /O2 /Oy- /D_SCONS /DMONGO_EXPOSE_MACROS /
DSUPPORT_UTF8/DMONGO_OPTIMIZED_BUILD /D_UNICODE /DUNICODE /D_CONSOLE /
D_CRT_SECURE_NO_WARNINGS/DMONGO_SSL /Ibuild\win32\ssl\use-system-boost\
third_party\gtest-1.7.0\include/Ibuild\win32\ssl\use-system-boost\
third_party\snappy /Ibuild\win32\ssl\use-system-boost\third_party\
libstemmer_c\include /Ibuild\win32\ssl\use-system-boost\third_party\s2 /
Ibuild\win32\ssl\use-system-boost\third_party\pcre-8.30/Ibuild\win32\ssl\use
-system-boost /Ibuild\win32\ssl\use-system-boost\mongo/IC:\Boost\1.55.0 /IC
:\Users\de069146\Documents\OpenSourceProjects\winpcap\Include
conftest_1.c
c1 : fatal error C1083: Cannot open source file:
'.scons\nohost\sconf_temp\conftest_1.c': No such file or directory
scons: Configure: no
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140729/dbbaa353/attachment-0001.html>


More information about the Scons-users mailing list