1.41.0 fails to compile on Windows 7 with Visual Studion 2008 tools
1> C:\Users\mjackson\Workspace\boost-1.41.0.cmake0\boost/test/impl/exception_safety.ipp(518) : see reference to class template instantiation 'boost::unit_test::callback0<>' being compiled 1>C:\Users\mjackson\Workspace\boost-1.41.0.cmake0\boost/smart_ptr/shared_ptr.hpp(231) : error C2872: 'detail' : ambiguous symbol 1> could be 'boost::detail' 1> or 'boost::unit_test::detail' 1>C:\Users\mjackson\Workspace\boost-1.41.0.cmake0\boost/smart_ptr/shared_ptr.hpp(231) : error C2872: 'detail' : ambiguous symbol 1> could be 'boost::detail' 1> or 'boost::unit_test::detail' 1>C:\Users\mjackson\Workspace\boost-1.41.0.cmake0\boost/smart_ptr/shared_ptr.hpp(231) : error C2872: 'detail' : ambiguous symbol 1> could be 'boost::detail' 1> or 'boost::unit_test::detail' 1>C:\Users\mjackson\Workspace\boost-1.41.0.cmake0\boost/smart_ptr/shared_ptr.hpp(451) : error C2872: 'detail' : ambiguous symbol 1> could be 'boost::detail' 1> or 'boost::unit_test::detail' I tried both the CMake versions of 1.41.0 and the normal bjam versions. Both gave the same error. _________________________________________________________ Mike Jackson mike.jackson@bluequartz.net BlueQuartz Software www.bluequartz.net Principal Software Engineer Dayton, Ohio
Mike Jackson wrote:
1> C:\Users\mjackson\Workspace\boost-1.41.0.cmake0\boost/test/impl/exception_safety.ipp(518)
see reference to class template instantiation 'boost::unit_test::callback0<>' being compiled 1>C:\Users\mjackson\Workspace\boost-1.41.0.cmake0\boost/smart_ptr/shared_ptr.hpp(231) error C2872: 'detail' : ambiguous symbol 1> could be 'boost::detail' 1> or 'boost::unit_test::detail' 1>C:\Users\mjackson\Workspace\boost-1.41.0.cmake0\boost/smart_ptr/shared_ptr.hpp(231) error C2872: 'detail' : ambiguous symbol 1> could be 'boost::detail' 1> or 'boost::unit_test::detail' 1>C:\Users\mjackson\Workspace\boost-1.41.0.cmake0\boost/smart_ptr/shared_ptr.hpp(231) error C2872: 'detail' : ambiguous symbol 1> could be 'boost::detail' 1> or 'boost::unit_test::detail' 1>C:\Users\mjackson\Workspace\boost-1.41.0.cmake0\boost/smart_ptr/shared_ptr.hpp(451) error C2872: 'detail' : ambiguous symbol 1> could be 'boost::detail' 1> or 'boost::unit_test::detail'
I tried both the CMake versions of 1.41.0 and the normal bjam versions. Both gave the same error.
What file was being compiled when the errors above occured?
I believe something down in the unit test framework was being
compiled. I am away from my work machine so I can not be more
specific. I don't think I did anything out of the ordinary when trying
to compile Boost. I downloaded the tar ball from boost.org, used bjam
to configure and build. Then I got the errors. Although I do find it
odd that this was not caught during the release preparations.
So I am thinking maybe a Windows 7 x64, VS2008 specific bug?
_________________________________________________________
Mike Jackson mike.jackson@bluequartz.net
On Fri, Dec 4, 2009 at 5:45 PM, Peter Dimov
Mike Jackson wrote:
1>
C:\Users\mjackson\Workspace\boost-1.41.0.cmake0\boost/test/impl/exception_safety.ipp(518)
see reference to class template instantiation
'boost::unit_test::callback0<>' being compiled
1>C:\Users\mjackson\Workspace\boost-1.41.0.cmake0\boost/smart_ptr/shared_ptr.hpp(231)
error C2872: 'detail' : ambiguous symbol
1> could be 'boost::detail' 1> or 'boost::unit_test::detail'
1>C:\Users\mjackson\Workspace\boost-1.41.0.cmake0\boost/smart_ptr/shared_ptr.hpp(231)
error C2872: 'detail' : ambiguous symbol
1> could be 'boost::detail' 1> or 'boost::unit_test::detail'
1>C:\Users\mjackson\Workspace\boost-1.41.0.cmake0\boost/smart_ptr/shared_ptr.hpp(231)
error C2872: 'detail' : ambiguous symbol
1> could be 'boost::detail' 1> or 'boost::unit_test::detail'
1>C:\Users\mjackson\Workspace\boost-1.41.0.cmake0\boost/smart_ptr/shared_ptr.hpp(451)
error C2872: 'detail' : ambiguous symbol
1> could be 'boost::detail' 1> or 'boost::unit_test::detail'
I tried both the CMake versions of 1.41.0 and the normal bjam versions. Both gave the same error.
What file was being compiled when the errors above occured? _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On Sat, Dec 5, 2009 at 8:12 AM, Mike Jackson
I believe something down in the unit test framework was being compiled. I am away from my work machine so I can not be more specific. I don't think I did anything out of the ordinary when trying to compile Boost. I downloaded the tar ball from boost.org, used bjam to configure and build. Then I got the errors. Although I do find it odd that this was not caught during the release preparations.
So I am thinking maybe a Windows 7 x64, VS2008 specific bug?
I compiled on Windows 7, x64, Visual Studio 2008 just yesterday and it worked fine. What command line did you use?
Going from some older notes I had I believe I used the following from
a 32 bit Visual Studio command prompt.
bjam.exe toolset=msvc-9.0 --with-test --with-filesystem
--with-program_options --with-date_time --with-thread
--prefix=C:\Developer\VS9\boost_1_41 --layout=tagged
variant=release,debug threading=multi link=static runtime-link=shared
install
I guess I should have tried the default values to compile but this has
worked since 1.36 on Windows XP and Windows 7 in both 32 and 64 bit
flavors.
_________________________________________________________
Mike Jackson mike.jackson@bluequartz.net
On Sat, Dec 5, 2009 at 12:05 PM, Zachary Turner
On Sat, Dec 5, 2009 at 8:12 AM, Mike Jackson
wrote: I believe something down in the unit test framework was being compiled. I am away from my work machine so I can not be more specific. I don't think I did anything out of the ordinary when trying to compile Boost. I downloaded the tar ball from boost.org, used bjam to configure and build. Then I got the errors. Although I do find it odd that this was not caught during the release preparations.
So I am thinking maybe a Windows 7 x64, VS2008 specific bug?
I compiled on Windows 7, x64, Visual Studio 2008 just yesterday and it worked fine. What command line did you use?
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On Sat, Dec 5, 2009 at 1:53 PM, Mike Jackson
Going from some older notes I had I believe I used the following from a 32 bit Visual Studio command prompt.
bjam.exe toolset=msvc-9.0 --with-test --with-filesystem --with-program_options --with-date_time --with-thread --prefix=C:\Developer\VS9\boost_1_41 --layout=tagged variant=release,debug threading=multi link=static runtime-link=shared install
I guess I should have tried the default values to compile but this has worked since 1.36 on Windows XP and Windows 7 in both 32 and 64 bit flavors.
I'll admit I'm actually not familiar with any of these options. What do the with* options do? All of those libraries are built by default anyway. For the record it doesn't matter what command prompt you use, even if it's not a visual studio command prompt at all. In any case, I used: bjam toolset=msvc-9.0 address-model=64 --build-type=complete stage If you just want to get a build out, you can probably try this until someone figures out the build issue with the specific set of options you were using.
On Sat, Dec 5, 2009 at 2:59 PM, Zachary Turner
On Sat, Dec 5, 2009 at 1:53 PM, Mike Jackson
wrote: Going from some older notes I had I believe I used the following from a 32 bit Visual Studio command prompt.
bjam.exe toolset=msvc-9.0 --with-test --with-filesystem --with-program_options --with-date_time --with-thread --prefix=C:\Developer\VS9\boost_1_41 --layout=tagged variant=release,debug threading=multi link=static runtime-link=shared install
I guess I should have tried the default values to compile but this has worked since 1.36 on Windows XP and Windows 7 in both 32 and 64 bit flavors.
I'll admit I'm actually not familiar with any of these options. What do the with* options do? All of those libraries are built by default anyway. For the record it doesn't matter what command prompt you use, even if it's not a visual studio command prompt at all. In any case, I used:
bjam toolset=msvc-9.0 address-model=64 --build-type=complete stage
If you just want to get a build out, you can probably try this until someone figures out the build issue with the specific set of options you were using.
The --with options tell bjam to ONLY compile those libraries. Those are all standard options with boost-build. If you do a bjam --help (or something like that) you will get all of these options. And the fact that the CMake based build system has the exact same problem tends to point to something in the code, although I did replicate the same types of options with CMake as I did with the boost-build version. When I get some time on monday I may give it a try. I left my patched 1.41.0 at work so can not try here at home. _________________________________________________________ Mike Jackson mike.jackson@bluequartz.net BlueQuartz Software www.bluequartz.net Principal Software Engineer Dayton, Ohio
participants (3)
-
Mike Jackson
-
Peter Dimov
-
Zachary Turner