Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program is not built 100% when we use "nmake" command in windows OS. #9

Open
KunalMuley opened this issue Jun 11, 2017 · 5 comments
Open

Comments

@KunalMuley
Copy link
Contributor

KunalMuley commented Jun 11, 2017

Hello,

I tried searching the internet for this issue(using the error number), but I was unable to find a descent solution which was helpful. :( I am new to using Boost libraries. Can you please help me to see if I am missing something here.

The issue is described below in more detail.

Operating System : Win764Bit
Visual Studio version : Visual Studio 2017 Community

Steps to reproduce

  1. Launch Developer Command prompt for VS 2017.
  2. Navigate to your local repository of Include_gardener.
  3. Use "cmake" command to generate "make" file and other necessary files.
    4.Then use the "nmake" command.

Current Result
The building operation stops at 20% and then we get bunch of errors and warnings. Error logs below.

Expected Result
The program should build 100%.

Error logs

F:\Kunal\New folder (2)\include_gardener\Build>nmake

Microsoft (R) Program Maintenance Utility Version 14.10.25019.0
Copyright (C) Microsoft Corporation.  All rights reserved.

[ 20%] Building CXX object CMakeFiles/include_gardener.dir/src/main.cpp.obj
main.cpp
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(80): warning C4805: '==':
unsafe mix of type 'bool' and type 'unsigned int' in operation
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(86): warning C4805: '==':
unsafe mix of type 'bool' and type 'unsigned int' in operation
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(102): warning C4805: '==':
 unsafe mix of type 'bool' and type 'unsigned int' in operation
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(108): warning C4805: '==':
 unsafe mix of type 'bool' and type 'unsigned int' in operation
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(113): warning C4805: '==':
 unsafe mix of type 'bool' and type 'unsigned int' in operation
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(125): warning C4805: '==':
 unsafe mix of type 'bool' and type 'unsigned int' in operation
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(147): warning C4805: '==':
 unsafe mix of type 'bool' and type 'unsigned int' in operation
F:\Kunal\Boost\boost_1_55_0\boost/utility/result_of.hpp(186): error C2903: 'resu
lt': symbol is neither a class template nor a function template
F:\Kunal\Boost\boost_1_55_0\boost/utility/result_of.hpp(194): note: see referenc
e to class template instantiation 'boost::detail::result_of_nested_result<F,FArg
s>' being compiled
        with
        [
            F=main::<lambda_eb355e8dd3c64bd102a911cf9a637b1d>,
            FArgs=const main::<lambda_eb355e8dd3c64bd102a911cf9a637b1d> (std::sh
ared_ptr<INCLUDE_GARDENER::Include_Entry> &)
        ]
F:\Kunal\Boost\boost_1_55_0\boost/utility/detail/result_of_iterate.hpp(37): note
: see reference to class template instantiation 'boost::detail::tr1_result_of_im
pl<F,F (T0),false>' being compiled
        with
        [
            F=main::<lambda_eb355e8dd3c64bd102a911cf9a637b1d>,
            T0=std::shared_ptr<INCLUDE_GARDENER::Include_Entry> &
        ]
F:\Kunal\Boost\boost_1_55_0\boost/utility/detail/result_of_iterate.hpp(160): not
e: see reference to class template instantiation 'boost::tr1_result_of<F (T0)>'
being compiled
        with
        [
            F=main::<lambda_eb355e8dd3c64bd102a911cf9a637b1d>,
            T0=std::shared_ptr<INCLUDE_GARDENER::Include_Entry> &
        ]
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(168): note: see reference
to class template instantiation 'boost::result_of<const Func (std::shared_ptr<IN
CLUDE_GARDENER::Include_Entry> &)>' being compiled
        with
        [
            Func=main::<lambda_eb355e8dd3c64bd102a911cf9a637b1d>
        ]
F:\Kunal\Boost\boost_1_55_0\boost/property_map/transform_value_property_map.hpp(
55): note: see reference to function template instantiation 'boost::transform_va
lue_property_map<Func,PM,boost::result_of<const Func(property_traits<PA>::refere
nce)>::type> boost::make_transform_value_property_map(const Func &,const PM &)'
being compiled
        with
        [
            Func=Func
        ]
F:\Kunal\Boost\boost_1_55_0\boost/utility/result_of.hpp(186): error C3770: 'unkn
own-type': is not a valid base class
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(168): error C2672: 'boost:
:make_transform_value_property_map': no matching overloaded function found
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(168): error C2893: Failed
to specialize function template 'boost::transform_value_property_map<Func,PM,boo
st::result_of<const Func(property_traits<PA>::reference)>::type> boost::make_tra
nsform_value_property_map(const Func &,const PM &)'
        with
        [
            Func=Func
        ]
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(168): note: With the follo
wing template arguments:
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(168): note: 'PM=boost::vec
_adj_list_vertex_property_map<Graph,Graph *,std::shared_ptr<INCLUDE_GARDENER::In
clude_Entry>,std::shared_ptr<INCLUDE_GARDENER::Include_Entry> &,Tag>'
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(168): note: 'Func=main::<l
ambda_eb355e8dd3c64bd102a911cf9a637b1d>'
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(172): warning C4805: '==':
 unsafe mix of type 'unsigned int' and type 'bool' in operation
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(178): error C3536: 'name_m
ap': cannot be used before it is initialized
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(193): warning C4805: '==':
 unsafe mix of type 'unsigned int' and type 'bool' in operation
NMAKE : fatal error U1077: 'C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\141
0~1.250\bin\HostX86\x86\cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017
\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe"' : return code '
0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017
\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe"' : return code '
0x2'
Stop.

F:\Kunal\New folder (2)\include_gardener\Build>

Also do let me know if you need any other information from my side.

Thanks in advance.

@KunalMuley
Copy link
Contributor Author

Hi,

Are you sure this is a bug and not something that I am doing wrong on my end.

Thanks.

@KunalMuley
Copy link
Contributor Author

Update: I also tried running this cmake project using the new feature of VS2017 of dealing with cmake project without using cmd prompt or anything.

Here are the details of it: https://blogs.msdn.microsoft.com/vcblog/2016/10/05/cmake-support-in-visual-studio/

But still no luck I am still facing an issue. :(

Error message in CMakeError.log-"Compiling the C compiler identification source file "CMakeCCompilerId.c" failed."

@feddischson
Copy link
Owner

Hi,

I don't have a windows build environment available at my side so it is difficult for me to dig a little bit deeper.

Your first error log shows some issues with lambda statement for boost::make_transform_value_property_map

Could you give me some further details about

  • boost version which is installed at your side
  • c++ version which is finally used by msvc

Cheers

@KunalMuley
Copy link
Contributor Author

Hi,

Following are the details you asked for:

1.Boost installed : Version 1.55.0

2.For C++ version, I googled what you asked for and came across the following link : https://stackoverflow.com/questions/42730478/version-numbers-for-visual-studio-2017-boost-and-cmake

From this what I am getting is VS 2017 uses Microsoft Visual C++ (version 15.0).

Please refer to that link for more details.

Let me know if I can do anything else from my side.

Thanks.

@feddischson
Copy link
Owner

Could you try to build the version 1.0.0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants