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

Bill Deegan bill at baddogconsulting.com
Tue Jul 29 23:54:17 EDT 2014


Brian,

As suggested to other users trying to build Mongo via scons, please bring
up your issue on their developer mailing list and they'll help you along.

http://four.pairlist.net/pipermail/scons-users/2014-July/002820.html

Note Andrew Morrow is involved with the MongoDB project (If I remember
correctly).

Generally if someone downloads a project which uses SCons to build it
you'll get faster resolution of your issues by contacting that project than
going to the scons project as each project may implement their SCons based
build system a little differently and the projects will understand those
details. Where SCons folks would have to learn them first to be able to
help you.

Hope that helps!
Bill


On Tue, Jul 29, 2014 at 6:43 PM, William Blevins <wblevins001 at gmail.com>
wrote:

> Scratch that; it's late and I'm embarrassing myself.  That obviously isn't
> your issue.
>
>
> On Tue, Jul 29, 2014 at 9:41 PM, William Blevins <wblevins001 at gmail.com>
> wrote:
>
>> Brian,
>>
>> SCons starts with a minimally configured environment.  Make sure that
>> your compiler can be located.
>>
>> The man-page description section describes how SCons default environment
>> looks: http://www.scons.org/doc/HTML/scons-man.html
>>
>> Let us know if you need more information.
>>
>> V/R,
>> William
>>
>>
>>
>>
>> On Tue, Jul 29, 2014 at 9:14 PM, Brian Dentino <brian.dentino at gmail.com>
>> wrote:
>>
>>> 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
>>>
>>>
>>> _______________________________________________
>>> Scons-users mailing list
>>> Scons-users at scons.org
>>> http://four.pairlist.net/mailman/listinfo/scons-users
>>>
>>>
>>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> http://four.pairlist.net/mailman/listinfo/scons-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140729/224128a4/attachment-0001.html>


More information about the Scons-users mailing list