Build error on windows current master

12 views
Skip to first unread message

Justin Dearing

unread,
Sep 23, 2010, 7:25:43 AM9/23/10
to mongodb-dev
Regards,

Justin Dearing

cl /Fos\shardkey.obj /c s\shardkey.cpp /TP /nologo /EHsc /W3 /wd4355 /wd4800 /wd4267 /wd4244 /O2 /MT /Gy /Zi /TP /errorR
eport:none /GL /D_SCONS /DMONGO_EXPOSE_MACROS /DOLDJS /D_UNICODE /DUNICODE /DWIN32 /D_CONSOLE /D_CRT_SECURE_NO_WARNINGS
/DHAVE_CONFIG_H /DPCRE_STATIC /DSUPPORT_UCP /DSUPPORT_UTF8,PSAPI_VERSION=1 /DNDEBUG /DNOEXECINFO /DXP_WIN /DOLDJS /I. /I
js\src /IC:\src\js\src "/IC:\Program Files\Boost\boost_1_42" /Ipcre-7.4 "/IC:\Program Files\Microsoft SDKs\Windows\v7.0\
Include" /IC:\src\winpcap\Include
shardkey.cpp
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\utility(163) : error C2440: 'initializing' : cannot conve
rt from 'int' to 'const char *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
        C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\utility(247) : see reference to function template
 instantiation 'std::_Pair_base<_Ty1,_Ty2>::_Pair_base<_Ty,_Ty>(_Other1 &&,_Other2 &&)' being compiled
        with
        [
            _Ty1=const char *,
            _Ty2=size_t,
            _Ty=int,
            _Other1=int,
            _Other2=int
        ]
        s\shardkey.cpp(98) : see reference to function template instantiation 'std::pair<_Ty1,_Ty2>::pair<int,int>(_Othe
r1 &&,_Other2 &&)' being compiled
        with
        [
            _Ty1=const char *,
            _Ty2=size_t,
            _Other1=int,
            _Other2=int
        ]
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\utility(163) : error C2439: 'std::_Pair_base<_Ty1,_Ty2>::
first' : member could not be initialized
        with
        [
            _Ty1=const char *,
            _Ty2=size_t
        ]
        C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\utility(166) : see declaration of 'std::_Pair_bas
e<_Ty1,_Ty2>::first'
        with
        [
            _Ty1=const char *,
            _Ty2=size_t
        ]
scons: *** [s\shardkey.obj] Error 2
scons: building terminated because of errors.

C:\src\mongo>

Eliot Horowitz

unread,
Sep 23, 2010, 10:23:56 AM9/23/10
to mongo...@googlegroups.com
What version of visual studio?
It passes all the tests in buildbot.

> --
> You received this message because you are subscribed to the Google Groups
> "mongodb-dev" group.
> To post to this group, send email to mongo...@googlegroups.com.
> To unsubscribe from this group, send email to
> mongodb-dev...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mongodb-dev?hl=en.
>

Justin Dearing

unread,
Sep 23, 2010, 10:26:44 AM9/23/10
to mongo...@googlegroups.com
Visual Studio 2k10 32 bit, clean build.

Was doing my master. I'll try the 10gen master when I get home. However I never touched that file.

Justin

Eliot Horowitz

unread,
Sep 23, 2010, 2:54:54 PM9/23/10
to mongo...@googlegroups.com
Reproduced on our side - fix should be coming soon

Justin Dearing

unread,
Sep 24, 2010, 8:25:47 AM9/24/10
to mongodb-dev
Ok pulled this morning and it works now.
Reply all
Reply to author
Forward
0 new messages