[C++-sig] Build Errors Making the "quickstart" Demo Project

Niall Douglas s_sourceforge at nedprod.com
Thu Sep 8 14:12:50 CEST 2011


If you're building stock using bjam, and it's failing, it's a bug :)

See if there's anything similar at 
https://svn.boost.org/trac/boost/search?q=python&noquickjump=1&ticket=
on and if not, report it.

Sorry can't help much more personally. I haven't used BPL, or Boost 
for that matter, in over four years. Oddly most of my apps 
development is outside C++ nowadays in various interpreted languages, 
or plain old C weirdly.

Niall


On 7 Sep 2011 at 12:11, Paul Kroitor wrote:

> Hi, thanks for your reply.
> 
>  
> 
> Yes, you are correct that "our attempts to build and/or use stock BPL is
> failing when building the quickstart demo". The boost build completes
> normally (but doesn't show any messages about running any tests) and
> specifies strings to add to the LIB and INCLUDE paths. At that point we
> simply CD to the quickstart sample directory and run "B2". This second
> build fails with a compiler error about an ambiguous call to an
> overloaded function.
> 
>  
> 
> Is there something else that needs to be set? My understanding was that
> the earlier instructions for setting up the environment (bootstrap,
> user-config.jam) set up the environment for building both boost (which
> worked) and quickstart (which didn't).
> 
>  
> 
> Here is the complete sequence:
> 
> ............................................
> 
> C:\Boost\boost_1_47_0>.\b2
> 
>  
> 
> Building the Boost C++ Libraries.
> 
>  
> 
>  
> 
> Performing configuration checks
> 
>  
> 
>     - has_icu builds           : no
> 
> warning: Graph library does not contain MPI-based parallel components.
> 
> note: to enable them, add "using mpi ;" to your user-config.jam
> 
>     - ../config//has_gcc_visibility builds : no
> 
>     - ../config//has_long_double_support builds : yes
> 
> warning: skipping optional Message Passing Interface (MPI) library.
> 
> note: to enable MPI support, add "using mpi ;" to user-config.jam.
> 
> note: to suppress this message, pass "--without-mpi" to bjam.
> 
> note: otherwise, you can safely ignore this message.
> 
>  
> 
> Component configuration:
> 
>  
> 
>     - chrono                   : building
> 
>     - date_time                : building
> 
>     - exception                : building
> 
>     - filesystem               : building
> 
>     - graph                    : building
> 
>     - graph_parallel           : building
> 
>     - iostreams                : building
> 
>     - math                     : building
> 
>     - mpi                      : building
> 
>     - program_options          : building
> 
>     - python                   : building
> 
>     - random                   : building
> 
>     - regex                    : building
> 
>     - serialization            : building
> 
>     - signals                  : building
> 
>     - system                   : building
> 
>     - test                     : building
> 
>     - thread                   : building
> 
>     - wave                     : building
> 
>  
> 
> ...patience...
> 
> ...patience...
> 
> ...patience...
> 
> ...patience...
> 
> ...found 7688 targets...
> 
>  
> 
>  
> 
> The Boost C++ Libraries were successfully built!
> 
>  
> 
> The following directory should be added to compiler include paths:
> 
>  
> 
>     C:/Boost/boost_1_47_0
> 
>  
> 
> The following directory should be added to linker library paths:
> 
>  
> 
>     C:\Boost\boost_1_47_0\stage\lib
> 
>  
> 
>  
> 
> C:\Boost\boost_1_47_0>set include
> 
> Environment variable include not defined
> 
>  
> 
> C:\Boost\boost_1_47_0>set include=C:\Boost\Boost_1_47_0
> 
>  
> 
> C:\Boost\boost_1_47_0>set lib
> 
> Environment variable lib not defined
> 
>  
> 
> C:\Boost\boost_1_47_0>set lib=C:\Boost\boost_1_47_0\stage\lib
> 
>  
> 
> C:\Boost\boost_1_47_0>cd libs\python\example\quickstart
> 
>  
> 
> C:\Boost\boost_1_47_0\libs\python\example\quickstart>path
> %path%;c:\boost\boost_
> 
> 1_47_0
> 
>  
> 
> C:\Boost\boost_1_47_0\libs\python\example\quickstart>b2
> 
> ...patience...
> 
> ...patience...
> 
> ...found 1603 targets...
> 
> ...updating 3 targets...
> 
> compile-c-c++ bin\msvc-10.0\debug\threading-multi\embedding.obj
> 
> embedding.cpp
> 
> embedding.cpp(39) : error C2668:
> 'std::basic_string<_Elem,_Traits,_Ax>::basic_st
> 
> ring' : ambiguous call to overloaded function
> 
>         with
> 
>         [
> 
>             _Elem=char,
> 
>             _Traits=std::char_traits<char>,
> 
>             _Ax=std::allocator<char>
> 
>         ]
> 
>         c:\Program Files\Microsoft Visual Studio
> 10.0\VC\INCLUDE\xstring(700): c
> 
> ould be
> 'std::basic_string<_Elem,_Traits,_Ax>::basic_string(std::basic_string<_E
> 
> lem,_Traits,_Ax> &&)'
> 
>         with
> 
>         [
> 
>             _Elem=char,
> 
>             _Traits=std::char_traits<char>,
> 
>             _Ax=std::allocator<char>
> 
>         ]
> 
>         c:\Program Files\Microsoft Visual Studio
> 10.0\VC\INCLUDE\xstring(590): o
> 
> r       'std::basic_string<_Elem,_Traits,_Ax>::basic_string(const _Elem
> *)'
> 
>         with
> 
>         [
> 
>             _Elem=char,
> 
>             _Traits=std::char_traits<char>,
> 
>             _Ax=std::allocator<char>
> 
>         ]
> 
>         while trying to match the argument list
> '(boost::python::detail::method_
> 
> result)'
> 
> embedding.cpp(56) : error C2065: 'initembedded_hello' : undeclared
> identifier
> 
>  
> 
>     call "c:\Program Files\Microsoft Visual Studio
> 10.0\VC\vcvarsall.bat" x86 >n
> 
> ul
> 
> cl /Zm800 -nologo
> @"bin\msvc-10.0\debug\threading-multi\embedding.obj.rsp"
> 
>  
> 
> ...failed compile-c-c++
> bin\msvc-10.0\debug\threading-multi\embedding.obj...
> 
> ...skipped <pbin\msvc-10.0\debug\threading-multi>embedding.exe for lack
> of <pbin
> 
> \msvc-10.0\debug\threading-multi>embedding.obj...
> 
> ...skipped <pbin\msvc-10.0\debug\threading-multi>embedding.pdb for lack
> of <pbin
> 
> \msvc-10.0\debug\threading-multi>embedding.obj...
> 
> ...failed updating 1 target...
> 
> ...skipped 2 targets...
> 
> ......................................
> 
>  
> 
>  
> 
>  
> 
>  
> 
> Am I missing something?
> 
>  
> 
>  
> 
>  
> 
> _____________________________________________________
> 
>  
> 
> If I am understanding you correctly, your attempts to build and/or use
> stock BPL is failing when building the quickstart demo?
> 
>  
> 
> If so, there is surely some issue with your build environment as Boost
> runs a series of automated regression tests which catch build failures.
> 
>  
> 
> If I'm not right in understanding you correctly, please do explain
> further.
> 
>  
> 
> Niall
> 
>  
> 
>  
> 
> On 6 Sep 2011 at 14:01, Paul Kroitor wrote:
> 
>  
> 
> > Hello all,
> 
> > 
> 
> >  
> 
> > 
> 
> > We are adding a python scripting layer on top of an existing largish 
> 
> > C++ app, and are hoping to use Boost.Python to accomplish this. So 
> 
> > far, it's hasn't been going very smoothly, but I think we are nearly 
> 
> > to the point of getting the demo program to compile.
> 
> > 
> 
> >  
> 
> > 
> 
> > For the most part, we are following the instructions here:
> 
> > 
> 
> > http://www.boost.org/doc/libs/1_47_0/libs/python/doc/building.html
> 
> > 
> 
> >  
> 
> > 
> 
> > but have also had to use hints from here
> 
> > 
> 
> > http://stackoverflow.com/questions/2629421/how-to-use-boost-in-visual-
> 
> > st
> 
> > udio-2010
> 
> > 
> 
> > and several other forums to get as far as we have (who / where should 
> 
> > we report manual errors to?).
> 
> > 
> 
> >  
> 
> > 
> 
> > I don't think we are doing anything non-standard - we certainly aren't
> 
> 
> > trying to - but perhaps some of the issues we are seeing come from 
> 
> > using Python 3.2. To complete the list, we are also using MSVC 10.0 
> 
> > SP1 and Boost 1.47 on Windows 7 32-bit platform.
> 
> > 
> 
> >  
> 
> > 
> 
> > Currently, we are trying to get the "quickstart" example working and 
> 
> > are stuck on an error in the build of  "embedding.cpp":
> 
> > 
> 
> >  
> 
> > 
> 
> > (note that for clarity I've rerun the build a second time so that it 
> 
> > is only trying to build the failed modules)
> 
> > 
> 
> >  
> 
> > 
> 
> >
> ........................................................................
> 
> > ...............
> 
> > 
> 
> >  
> 
> > 
> 
> > C:\Boost\boost_1_47_0\libs\python\example\quickstart>b2
> 
> > 
> 
> > ...patience...
> 
> > 
> 
> > ...patience...
> 
> > 
> 
> > ...found 1603 targets...
> 
> > 
> 
> > ...updating 3 targets...
> 
> > 
> 
> > compile-c-c++ bin\msvc-10.0\debug\threading-multi\embedding.obj
> 
> > 
> 
> > embedding.cpp
> 
> > 
> 
> > embedding.cpp(39) : error C2668:
> 
> > 'std::basic_string<_Elem,_Traits,_Ax>::basic_st
> 
> > 
> 
> > ring' : ambiguous call to overloaded function
> 
> > 
> 
> >         with
> 
> > 
> 
> >         [
> 
> > 
> 
> >             _Elem=char,
> 
> > 
> 
> >             _Traits=std::char_traits<char>,
> 
> > 
> 
> >             _Ax=std::allocator<char>
> 
> > 
> 
> >         ]
> 
> > 
> 
> >         c:\Program Files\Microsoft Visual Studio
> 
> > 10.0\VC\INCLUDE\xstring(700): c
> 
> > 
> 
> > ould be
> 
> > 'std::basic_string<_Elem,_Traits,_Ax>::basic_string(std::basic_string<
> 
> > _E
> 
> > 
> 
> > lem,_Traits,_Ax> &&)'
> 
> > 
> 
> >         with
> 
> > 
> 
> >         [
> 
> > 
> 
> >             _Elem=char,
> 
> > 
> 
> >             _Traits=std::char_traits<char>,
> 
> > 
> 
> >             _Ax=std::allocator<char>
> 
> > 
> 
> >         ]
> 
> > 
> 
> >         c:\Program Files\Microsoft Visual Studio
> 
> > 10.0\VC\INCLUDE\xstring(590): o
> 
> > 
> 
> > r       'std::basic_string<_Elem,_Traits,_Ax>::basic_string(const
> _Elem
> 
> > *)'
> 
> > 
> 
> >         with
> 
> > 
> 
> >         [
> 
> > 
> 
> >             _Elem=char,
> 
> > 
> 
> >             _Traits=std::char_traits<char>,
> 
> > 
> 
> >             _Ax=std::allocator<char>
> 
> > 
> 
> >         ]
> 
> > 
> 
> >         while trying to match the argument list 
> 
> > '(boost::python::detail::method_
> 
> > 
> 
> > result)'
> 
> > 
> 
> > embedding.cpp(56) : error C2065: 'initembedded_hello' : undeclared 
> 
> > identifier
> 
> > 
> 
> >  
> 
> > 
> 
> >     call "c:\Program Files\Microsoft Visual Studio 
> 
> > 10.0\VC\vcvarsall.bat" x86 >n
> 
> > 
> 
> > ul
> 
> > 
> 
> > cl /Zm800 -nologo
> 
> > @"bin\msvc-10.0\debug\threading-multi\embedding.obj.rsp"
> 
> > 
> 
> >  
> 
> > 
> 
> > ...failed compile-c-c++
> 
> > bin\msvc-10.0\debug\threading-multi\embedding.obj...
> 
> > 
> 
> > ...skipped <pbin\msvc-10.0\debug\threading-multi>embedding.exe for 
> 
> > lack of <pbin
> 
> > 
> 
> > \msvc-10.0\debug\threading-multi>embedding.obj...
> 
> > 
> 
> > ...skipped <pbin\msvc-10.0\debug\threading-multi>embedding.pdb for 
> 
> > lack of <pbin
> 
> > 
> 
> > \msvc-10.0\debug\threading-multi>embedding.obj...
> 
> > 
> 
> > ...failed updating 1 target...
> 
> > 
> 
> > ...skipped 2 targets...
> 
> > 
> 
> >  
> 
> > 
> 
> >
> ........................................................................
> 
> > ...............
> 
> > 
> 
> >  
> 
> > 
> 
> > With all the templates and overloads, this is getting too technical 
> 
> > for to solve here. I am hoping someone here will recognize this error 
> 
> > or understand what's causing it.
> 
> > 
> 
> >  
> 
> > 
> 
> > Thanks in advance for any help or guidance anyone is able to give.
> 
> > 
> 
> > Paul Kroitor
> 
> > 
> 
> > 
> 
>  
> 
>  
> 
> 


-- 
Technology & Consulting Services - ned Productions Limited.
http://www.nedproductions.biz/. VAT reg: IE 9708311Q. Company no: 
472909.





More information about the Cplusplus-sig mailing list