[jira] [Commented] (MESOS-10182) Mesos failed to build due to error C1083: Cannot open include file: 'csi/state.pb.h': No such file or directory on windows with MSVC

2020-12-23 Thread clancyhuang (Jira)


[ 
https://issues.apache.org/jira/browse/MESOS-10182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17254006#comment-17254006
 ] 

clancyhuang commented on MESOS-10182:
-

This problem also appeared when I compiled, and I recorded its solution in 
[MESOS-10204|https://issues.apache.org/jira/browse/MESOS-10204]

> Mesos failed to build due to error C1083: Cannot open include file: 
> 'csi/state.pb.h': No such file or directory on windows with MSVC
> 
>
> Key: MESOS-10182
> URL: https://issues.apache.org/jira/browse/MESOS-10182
> Project: Mesos
>  Issue Type: Bug
>  Components: build
>Affects Versions: master
>Reporter: QuellaZhang
>Priority: Major
> Attachments: build.log
>
>
> Hi All,
> I tried to build Mesos on Windows with VS2019. It failed to build due to 
> error C1083: Cannot open include file: 'csi/state.pb.h': No such file or 
> directory on Windows using MSVC. It can be reproduced on latest reversion 
> d4634f4 on master branch. Could you please take a look at this isssue? Thanks 
> a lot!
>  
> *Reproduce steps:*
> 1. git clone -c core.autocrlf=true https://github.com/apache/mesos 
> F:\gitP\apache\mesos
> 2. Open a VS 2019 x64 command prompt as admin and browse to 
> F:\gitP\apache\mesos
> 3. mkdir build_amd64 && pushd build_amd64
> 4. cmake -G "Visual Studio 16 2019" -A x64 
> -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DENABLE_LIBEVENT=1 
> -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="F:\tools\gnuwin32\bin" -T host=x64 ..
> 5. set CL=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING %CL%
> 6. msbuild /maxcpucount:4 /p:Platform=x64 /p:Configuration=Debug Mesos.sln 
> /t:Rebuild
> *ErrorMessage:*
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\csi_server.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher_tracker.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\composing.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\slave.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\task_status_update_manager.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MESOS-10182) Mesos failed to build due to error C1083: Cannot open include file: 'csi/state.pb.h': No such file or directory on windows with MSVC

2020-12-23 Thread QuellaZhang (Jira)


[ 
https://issues.apache.org/jira/browse/MESOS-10182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17253992#comment-17253992
 ] 

QuellaZhang commented on MESOS-10182:
-

Hi [~934341445], Thanks for your fix info. I've tried and it works for me. 

 

But after patching all fix work around, it failed to a new error LNK2019: 
unresolved external symbol "int __cdecl os::execvp(char const *,char * const * 
const)" on Windows using MSVC. And now I've open a new ticket [MESOS-10206] 
Mesos failed to build due to error LNK2019: unresolved external symbol "int 
__cdecl os::execvp(char const *,char * const * const)" on windows with MSVC - 
ASF JIRA (apache.org) to report this issue. 

 

Thanks,

Lin

> Mesos failed to build due to error C1083: Cannot open include file: 
> 'csi/state.pb.h': No such file or directory on windows with MSVC
> 
>
> Key: MESOS-10182
> URL: https://issues.apache.org/jira/browse/MESOS-10182
> Project: Mesos
>  Issue Type: Bug
>  Components: build
>Affects Versions: master
>Reporter: QuellaZhang
>Priority: Major
> Attachments: build.log
>
>
> Hi All,
> I tried to build Mesos on Windows with VS2019. It failed to build due to 
> error C1083: Cannot open include file: 'csi/state.pb.h': No such file or 
> directory on Windows using MSVC. It can be reproduced on latest reversion 
> d4634f4 on master branch. Could you please take a look at this isssue? Thanks 
> a lot!
>  
> *Reproduce steps:*
> 1. git clone -c core.autocrlf=true https://github.com/apache/mesos 
> F:\gitP\apache\mesos
> 2. Open a VS 2019 x64 command prompt as admin and browse to 
> F:\gitP\apache\mesos
> 3. mkdir build_amd64 && pushd build_amd64
> 4. cmake -G "Visual Studio 16 2019" -A x64 
> -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DENABLE_LIBEVENT=1 
> -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="F:\tools\gnuwin32\bin" -T host=x64 ..
> 5. set CL=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING %CL%
> 6. msbuild /maxcpucount:4 /p:Platform=x64 /p:Configuration=Debug Mesos.sln 
> /t:Rebuild
> *ErrorMessage:*
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\csi_server.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher_tracker.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\composing.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\slave.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\task_status_update_manager.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MESOS-10182) Mesos failed to build due to error C1083: Cannot open include file: 'csi/state.pb.h': No such file or directory on windows with MSVC

2020-12-22 Thread QuellaZhang (Jira)


[ 
https://issues.apache.org/jira/browse/MESOS-10182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17253336#comment-17253336
 ] 

QuellaZhang commented on MESOS-10182:
-

Thank you [~934341445], I will try this. 

> Mesos failed to build due to error C1083: Cannot open include file: 
> 'csi/state.pb.h': No such file or directory on windows with MSVC
> 
>
> Key: MESOS-10182
> URL: https://issues.apache.org/jira/browse/MESOS-10182
> Project: Mesos
>  Issue Type: Bug
>  Components: build
>Affects Versions: master
>Reporter: QuellaZhang
>Priority: Major
> Attachments: build.log
>
>
> Hi All,
> I tried to build Mesos on Windows with VS2019. It failed to build due to 
> error C1083: Cannot open include file: 'csi/state.pb.h': No such file or 
> directory on Windows using MSVC. It can be reproduced on latest reversion 
> d4634f4 on master branch. Could you please take a look at this isssue? Thanks 
> a lot!
>  
> *Reproduce steps:*
> 1. git clone -c core.autocrlf=true https://github.com/apache/mesos 
> F:\gitP\apache\mesos
> 2. Open a VS 2019 x64 command prompt as admin and browse to 
> F:\gitP\apache\mesos
> 3. mkdir build_amd64 && pushd build_amd64
> 4. cmake -G "Visual Studio 16 2019" -A x64 
> -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DENABLE_LIBEVENT=1 
> -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="F:\tools\gnuwin32\bin" -T host=x64 ..
> 5. set CL=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING %CL%
> 6. msbuild /maxcpucount:4 /p:Platform=x64 /p:Configuration=Debug Mesos.sln 
> /t:Rebuild
> *ErrorMessage:*
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\csi_server.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher_tracker.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\composing.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\slave.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\task_status_update_manager.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MESOS-10182) Mesos failed to build due to error C1083: Cannot open include file: 'csi/state.pb.h': No such file or directory on windows with MSVC

2020-12-22 Thread clancyhuang (Jira)


[ 
https://issues.apache.org/jira/browse/MESOS-10182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17253324#comment-17253324
 ] 

clancyhuang commented on MESOS-10182:
-

I think the configuration of re2 is missing in the CmakeList file, so I 
manually add the absolute path of the include and library of re2 to the 
/mesos/src/CmakeList.txt

{code}
target_include_directories(
  mesos PUBLIC
  ${MESOS_PUBLIC_INCLUDE_DIR}
  ${MESOS_BIN_INCLUDE_DIR}
  ${MESOS_BIN_SRC_DIR}
  ${MESOS_SRC_DIR}
  
"D:/workspace/mesos/mesos/build2/3rdparty/re2-2020-07-06/src/re2-2020-07-06-install/include")

target_link_libraries(
  mesos PUBLIC
  process
  sasl2
  zookeeper
  mesos-protobufs
  $<$,$>:nvml>
  
"D:/workspace/mesos/mesos/build2/3rdparty/re2-2020-07-06/src/re2-2020-07-06-install/lib/re2.lib")
{code}


> Mesos failed to build due to error C1083: Cannot open include file: 
> 'csi/state.pb.h': No such file or directory on windows with MSVC
> 
>
> Key: MESOS-10182
> URL: https://issues.apache.org/jira/browse/MESOS-10182
> Project: Mesos
>  Issue Type: Bug
>  Components: build
>Affects Versions: master
>Reporter: QuellaZhang
>Priority: Major
> Attachments: build.log
>
>
> Hi All,
> I tried to build Mesos on Windows with VS2019. It failed to build due to 
> error C1083: Cannot open include file: 'csi/state.pb.h': No such file or 
> directory on Windows using MSVC. It can be reproduced on latest reversion 
> d4634f4 on master branch. Could you please take a look at this isssue? Thanks 
> a lot!
>  
> *Reproduce steps:*
> 1. git clone -c core.autocrlf=true https://github.com/apache/mesos 
> F:\gitP\apache\mesos
> 2. Open a VS 2019 x64 command prompt as admin and browse to 
> F:\gitP\apache\mesos
> 3. mkdir build_amd64 && pushd build_amd64
> 4. cmake -G "Visual Studio 16 2019" -A x64 
> -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DENABLE_LIBEVENT=1 
> -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="F:\tools\gnuwin32\bin" -T host=x64 ..
> 5. set CL=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING %CL%
> 6. msbuild /maxcpucount:4 /p:Platform=x64 /p:Configuration=Debug Mesos.sln 
> /t:Rebuild
> *ErrorMessage:*
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\csi_server.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher_tracker.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\composing.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\slave.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\task_status_update_manager.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MESOS-10182) Mesos failed to build due to error C1083: Cannot open include file: 'csi/state.pb.h': No such file or directory on windows with MSVC

2020-12-21 Thread QuellaZhang (Jira)


[ 
https://issues.apache.org/jira/browse/MESOS-10182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17253317#comment-17253317
 ] 

QuellaZhang commented on MESOS-10182:
-

Hi [~934341445] ,Thanks for your info. We tried to follow your method and the 
'Cannot open include file: "csi/state.pb.h"' error has indeed disappeared.  We 
now only have ' Cannot open include file: "re2/re2.h" ' which failed. 

As you said, you added the corresponding information to the 
target_include_directories and target_link_libraries of the 
‘/mesos/src/CmakeList.txt‘ . Can you provide more details about 
target_include_directories and target_link_libraries of the 
‘/mesos/src/CmakeList.txt‘?   We want to try your method to fix the problem of 
re2/re2.h.

Thanks in advance.

> Mesos failed to build due to error C1083: Cannot open include file: 
> 'csi/state.pb.h': No such file or directory on windows with MSVC
> 
>
> Key: MESOS-10182
> URL: https://issues.apache.org/jira/browse/MESOS-10182
> Project: Mesos
>  Issue Type: Bug
>  Components: build
>Affects Versions: master
>Reporter: QuellaZhang
>Priority: Major
> Attachments: build.log
>
>
> Hi All,
> I tried to build Mesos on Windows with VS2019. It failed to build due to 
> error C1083: Cannot open include file: 'csi/state.pb.h': No such file or 
> directory on Windows using MSVC. It can be reproduced on latest reversion 
> d4634f4 on master branch. Could you please take a look at this isssue? Thanks 
> a lot!
>  
> *Reproduce steps:*
> 1. git clone -c core.autocrlf=true https://github.com/apache/mesos 
> F:\gitP\apache\mesos
> 2. Open a VS 2019 x64 command prompt as admin and browse to 
> F:\gitP\apache\mesos
> 3. mkdir build_amd64 && pushd build_amd64
> 4. cmake -G "Visual Studio 16 2019" -A x64 
> -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DENABLE_LIBEVENT=1 
> -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="F:\tools\gnuwin32\bin" -T host=x64 ..
> 5. set CL=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING %CL%
> 6. msbuild /maxcpucount:4 /p:Platform=x64 /p:Configuration=Debug Mesos.sln 
> /t:Rebuild
> *ErrorMessage:*
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\csi_server.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher_tracker.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\composing.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\slave.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\task_status_update_manager.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MESOS-10182) Mesos failed to build due to error C1083: Cannot open include file: 'csi/state.pb.h': No such file or directory on windows with MSVC

2020-12-15 Thread clancyhuang (Jira)


[ 
https://issues.apache.org/jira/browse/MESOS-10182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17249567#comment-17249567
 ] 

clancyhuang commented on MESOS-10182:
-

I found that csi/state.pb.h only compiles in non-windows environment
In /mesos/src/CmakeList.txt:
{code}
if (NOT WIN32)
  PROTOC_GENERATE(INTERNAL TARGET csi/state)
  PROTOC_GENERATE(INTERNAL TARGET resource_provider/storage/disk_profile)
  PROTOC_GENERATE(INTERNAL TARGET 
slave/containerizer/mesos/isolators/docker/volume/state)
  PROTOC_GENERATE(INTERNAL TARGET 
slave/containerizer/mesos/isolators/volume/csi/state)
  PROTOC_GENERATE(INTERNAL TARGET 
slave/containerizer/mesos/provisioner/docker/message)
  PROTOC_GENERATE(INTERNAL TARGET slave/volume_gid_manager/state)
endif ()
{code}
I put this line of code out of the if statement
{code:java}
PROTOC_GENERATE(INTERNAL TARGET csi/state)
{code}
It didn't report this error again.

And during my local compilation process, the include and lib files of re2 were 
not imported correctly,
I added the corresponding information to the target_include_directories and 
target_link_libraries of the ‘/mesos/src/CmakeList.txt‘ , and it seems to be 
working properly



> Mesos failed to build due to error C1083: Cannot open include file: 
> 'csi/state.pb.h': No such file or directory on windows with MSVC
> 
>
> Key: MESOS-10182
> URL: https://issues.apache.org/jira/browse/MESOS-10182
> Project: Mesos
>  Issue Type: Bug
>  Components: build
>Affects Versions: master
>Reporter: QuellaZhang
>Priority: Major
> Attachments: build.log
>
>
> Hi All,
> I tried to build Mesos on Windows with VS2019. It failed to build due to 
> error C1083: Cannot open include file: 'csi/state.pb.h': No such file or 
> directory on Windows using MSVC. It can be reproduced on latest reversion 
> d4634f4 on master branch. Could you please take a look at this isssue? Thanks 
> a lot!
>  
> *Reproduce steps:*
> 1. git clone -c core.autocrlf=true https://github.com/apache/mesos 
> F:\gitP\apache\mesos
> 2. Open a VS 2019 x64 command prompt as admin and browse to 
> F:\gitP\apache\mesos
> 3. mkdir build_amd64 && pushd build_amd64
> 4. cmake -G "Visual Studio 16 2019" -A x64 
> -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DENABLE_LIBEVENT=1 
> -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="F:\tools\gnuwin32\bin" -T host=x64 ..
> 5. set CL=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING %CL%
> 6. msbuild /maxcpucount:4 /p:Platform=x64 /p:Configuration=Debug Mesos.sln 
> /t:Rebuild
> *ErrorMessage:*
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\csi_server.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher_tracker.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\composing.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\slave.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\task_status_update_manager.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
>  



--
This message was sent by Atlassian Jira

[jira] [Commented] (MESOS-10182) Mesos failed to build due to error C1083: Cannot open include file: 'csi/state.pb.h': No such file or directory on windows with MSVC

2020-09-25 Thread clancyhuang (Jira)


[ 
https://issues.apache.org/jira/browse/MESOS-10182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17202035#comment-17202035
 ] 

clancyhuang commented on MESOS-10182:
-

Open the mesos.sln file in the build folder using Visual Studio and find some 
problems.

First, the re2 project in the 3rdParty folder is not added as a reference to 
the mesos project, then, the csi/state.pb.h file does not exist in the build 
directory (even the csi directory). I try to find the state.pb.h file in the 
following directories:
 * \build\src\slave
 * \build\src\resoure_provider
 * \build\src\messages
 * \build\include\mesos\state

The contents of these files are different. I try to create the csi directory in 
the /build/src  and copy the files in /messages/state.ph.h and the files in 
/src/csi in the source code.

Other errors occur during VS2015 compilation, mainly due to the absence of the 
VolumeState statement. I think my attempt fails. Can you give me some 
suggestions? Thanks a lot

 

> Mesos failed to build due to error C1083: Cannot open include file: 
> 'csi/state.pb.h': No such file or directory on windows with MSVC
> 
>
> Key: MESOS-10182
> URL: https://issues.apache.org/jira/browse/MESOS-10182
> Project: Mesos
>  Issue Type: Bug
>  Components: build
>Affects Versions: master
>Reporter: QuellaZhang
>Priority: Major
> Attachments: build.log
>
>
> Hi All,
> I tried to build Mesos on Windows with VS2019. It failed to build due to 
> error C1083: Cannot open include file: 'csi/state.pb.h': No such file or 
> directory on Windows using MSVC. It can be reproduced on latest reversion 
> d4634f4 on master branch. Could you please take a look at this isssue? Thanks 
> a lot!
>  
> *Reproduce steps:*
> 1. git clone -c core.autocrlf=true https://github.com/apache/mesos 
> F:\gitP\apache\mesos
> 2. Open a VS 2019 x64 command prompt as admin and browse to 
> F:\gitP\apache\mesos
> 3. mkdir build_amd64 && pushd build_amd64
> 4. cmake -G "Visual Studio 16 2019" -A x64 
> -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DENABLE_LIBEVENT=1 
> -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="F:\tools\gnuwin32\bin" -T host=x64 ..
> 5. set CL=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING %CL%
> 6. msbuild /maxcpucount:4 /p:Platform=x64 /p:Configuration=Debug Mesos.sln 
> /t:Rebuild
> *ErrorMessage:*
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\csi_server.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher_tracker.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\composing.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\slave.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\task_status_update_manager.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MESOS-10182) Mesos failed to build due to error C1083: Cannot open include file: 'csi/state.pb.h': No such file or directory on windows with MSVC

2020-09-24 Thread clancyhuang (Jira)


[ 
https://issues.apache.org/jira/browse/MESOS-10182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17201881#comment-17201881
 ] 

clancyhuang commented on MESOS-10182:
-

We have some Windows servers that run some computing tasks.Now we want to 
integrate these resources. Mesos is one of the solutions we are considering 
.But i'm not proficient in C++. Fortunately, I have successfully compiled on 
CentOS. At least we can continue to use mesos, but I'll try to find out the 
problem.

> Mesos failed to build due to error C1083: Cannot open include file: 
> 'csi/state.pb.h': No such file or directory on windows with MSVC
> 
>
> Key: MESOS-10182
> URL: https://issues.apache.org/jira/browse/MESOS-10182
> Project: Mesos
>  Issue Type: Bug
>  Components: build
>Affects Versions: master
>Reporter: QuellaZhang
>Priority: Major
> Attachments: build.log
>
>
> Hi All,
> I tried to build Mesos on Windows with VS2019. It failed to build due to 
> error C1083: Cannot open include file: 'csi/state.pb.h': No such file or 
> directory on Windows using MSVC. It can be reproduced on latest reversion 
> d4634f4 on master branch. Could you please take a look at this isssue? Thanks 
> a lot!
>  
> *Reproduce steps:*
> 1. git clone -c core.autocrlf=true https://github.com/apache/mesos 
> F:\gitP\apache\mesos
> 2. Open a VS 2019 x64 command prompt as admin and browse to 
> F:\gitP\apache\mesos
> 3. mkdir build_amd64 && pushd build_amd64
> 4. cmake -G "Visual Studio 16 2019" -A x64 
> -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DENABLE_LIBEVENT=1 
> -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="F:\tools\gnuwin32\bin" -T host=x64 ..
> 5. set CL=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING %CL%
> 6. msbuild /maxcpucount:4 /p:Platform=x64 /p:Configuration=Debug Mesos.sln 
> /t:Rebuild
> *ErrorMessage:*
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\csi_server.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher_tracker.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\composing.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\slave.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\task_status_update_manager.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MESOS-10182) Mesos failed to build due to error C1083: Cannot open include file: 'csi/state.pb.h': No such file or directory on windows with MSVC

2020-09-24 Thread Benjamin Mahler (Jira)


[ 
https://issues.apache.org/jira/browse/MESOS-10182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17201745#comment-17201745
 ] 

Benjamin Mahler commented on MESOS-10182:
-

[~QuellaZhang] [~934341445] can you tell us more about how you're using mesos 
on windows? We currently don't have a lot of resources to put on active windows 
development. If you can submit PRs to fix this, that will help fix this 
resolved.

cc [~asekretenko] for the re2 error.

> Mesos failed to build due to error C1083: Cannot open include file: 
> 'csi/state.pb.h': No such file or directory on windows with MSVC
> 
>
> Key: MESOS-10182
> URL: https://issues.apache.org/jira/browse/MESOS-10182
> Project: Mesos
>  Issue Type: Bug
>  Components: build
>Affects Versions: master
>Reporter: QuellaZhang
>Priority: Major
> Attachments: build.log
>
>
> Hi All,
> I tried to build Mesos on Windows with VS2019. It failed to build due to 
> error C1083: Cannot open include file: 'csi/state.pb.h': No such file or 
> directory on Windows using MSVC. It can be reproduced on latest reversion 
> d4634f4 on master branch. Could you please take a look at this isssue? Thanks 
> a lot!
>  
> *Reproduce steps:*
> 1. git clone -c core.autocrlf=true https://github.com/apache/mesos 
> F:\gitP\apache\mesos
> 2. Open a VS 2019 x64 command prompt as admin and browse to 
> F:\gitP\apache\mesos
> 3. mkdir build_amd64 && pushd build_amd64
> 4. cmake -G "Visual Studio 16 2019" -A x64 
> -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DENABLE_LIBEVENT=1 
> -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="F:\tools\gnuwin32\bin" -T host=x64 ..
> 5. set CL=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING %CL%
> 6. msbuild /maxcpucount:4 /p:Platform=x64 /p:Configuration=Debug Mesos.sln 
> /t:Rebuild
> *ErrorMessage:*
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\csi_server.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher_tracker.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\composing.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\slave.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\task_status_update_manager.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MESOS-10182) Mesos failed to build due to error C1083: Cannot open include file: 'csi/state.pb.h': No such file or directory on windows with MSVC

2020-09-23 Thread clancyhuang (Jira)


[ 
https://issues.apache.org/jira/browse/MESOS-10182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17200684#comment-17200684
 ] 

clancyhuang commented on MESOS-10182:
-

I have a similar problem,the source code is obtained through git.
 git clone [https://gitbox.apache.org/repos/asf/mesos.git]
 Build Environment:Windows10(10.0.14393),VS2017-15,cmake 3.18.2
 Build command:
 cmake .. -G "Visual Studio 15 2017 Win64" -T "host=x64"
 cmake --build .
 Error Message:
 D:\workspace\mesos\mesos\src\csi/state.hpp(22): fatal error C1083: Cannot open 
include file: "csi/state.pb.h": No such file or directory (compiling source 
file D:\workspace\mesos\mesos\src\slave\task_status_update_manager.cpp) 
[D:\workspace\mesos\mesos\build\src\mesos.vcxproj]
 launcher_tracker.cpp
 D:\workspace\mesos\mesos\src\csi/state.hpp(22): fatal error C1083: Cannot open 
include file: "csi/state.pb.h": No such file or directory (compiling source 
file D:\workspace\mesos\mesos\src\slave\slave.cpp) 
[D:\workspace\mesos\mesos\build\src\mesos.vcxproj]
 offer_constraints_filter.cpp
 
D:\workspace\mesos\mesos\src\master\allocator\mesos\offer_constraints_filter.cpp(26):
 fatal error C1083: Cannot open include file: "re2/re2.h": No such file or 
directory [D:\workspace\mesos\mesos\build\src\mesos.vcxproj]
 D:\workspace\mesos\mesos\src\csi/state.hpp(22): fatal error C1083: Cannot open 
include file: "csi/state.pb.h": No such file or directory (compiling source 
file D:\workspace\mesos\mesos\src\slave\containerizer\mesos\launcher.cpp) 
[D:\workspace\mesos\mesos\build\src\mesos.vcxproj]
 D:\workspace\mesos\mesos\src\csi/state.hpp(22): fatal error C1083: Cannot open 
include file: "csi/state.pb.h": No such file or directory (compiling source 
file 
D:\workspace\mesos\mesos\src\slave\containerizer\mesos\launcher_tracker.cpp) 
[D:\workspace\mesos\mesos\build\src\mesos.vcxproj]

> Mesos failed to build due to error C1083: Cannot open include file: 
> 'csi/state.pb.h': No such file or directory on windows with MSVC
> 
>
> Key: MESOS-10182
> URL: https://issues.apache.org/jira/browse/MESOS-10182
> Project: Mesos
>  Issue Type: Bug
>  Components: build
>Affects Versions: master
>Reporter: QuellaZhang
>Priority: Major
> Attachments: build.log
>
>
> Hi All,
> I tried to build Mesos on Windows with VS2019. It failed to build due to 
> error C1083: Cannot open include file: 'csi/state.pb.h': No such file or 
> directory on Windows using MSVC. It can be reproduced on latest reversion 
> d4634f4 on master branch. Could you please take a look at this isssue? Thanks 
> a lot!
>  
> *Reproduce steps:*
> 1. git clone -c core.autocrlf=true https://github.com/apache/mesos 
> F:\gitP\apache\mesos
> 2. Open a VS 2019 x64 command prompt as admin and browse to 
> F:\gitP\apache\mesos
> 3. mkdir build_amd64 && pushd build_amd64
> 4. cmake -G "Visual Studio 16 2019" -A x64 
> -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DENABLE_LIBEVENT=1 
> -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="F:\tools\gnuwin32\bin" -T host=x64 ..
> 5. set CL=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING %CL%
> 6. msbuild /maxcpucount:4 /p:Platform=x64 /p:Configuration=Debug Mesos.sln 
> /t:Rebuild
> *ErrorMessage:*
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\csi_server.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher_tracker.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\composing.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include 

[jira] [Commented] (MESOS-10182) Mesos failed to build due to error C1083: Cannot open include file: 'csi/state.pb.h': No such file or directory on windows with MSVC

2020-09-18 Thread QuellaZhang (Jira)


[ 
https://issues.apache.org/jira/browse/MESOS-10182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17198278#comment-17198278
 ] 

QuellaZhang commented on MESOS-10182:
-

[~qianzhang] This issue still alive on latest code of Mesos master branch, any 
other workarounds for this? Thanks.

> Mesos failed to build due to error C1083: Cannot open include file: 
> 'csi/state.pb.h': No such file or directory on windows with MSVC
> 
>
> Key: MESOS-10182
> URL: https://issues.apache.org/jira/browse/MESOS-10182
> Project: Mesos
>  Issue Type: Bug
>  Components: build
>Affects Versions: master
>Reporter: QuellaZhang
>Priority: Major
> Attachments: build.log
>
>
> Hi All,
> I tried to build Mesos on Windows with VS2019. It failed to build due to 
> error C1083: Cannot open include file: 'csi/state.pb.h': No such file or 
> directory on Windows using MSVC. It can be reproduced on latest reversion 
> d4634f4 on master branch. Could you please take a look at this isssue? Thanks 
> a lot!
>  
> *Reproduce steps:*
> 1. git clone -c core.autocrlf=true https://github.com/apache/mesos 
> F:\gitP\apache\mesos
> 2. Open a VS 2019 x64 command prompt as admin and browse to 
> F:\gitP\apache\mesos
> 3. mkdir build_amd64 && pushd build_amd64
> 4. cmake -G "Visual Studio 16 2019" -A x64 
> -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DENABLE_LIBEVENT=1 
> -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="F:\tools\gnuwin32\bin" -T host=x64 ..
> 5. set CL=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING %CL%
> 6. msbuild /maxcpucount:4 /p:Platform=x64 /p:Configuration=Debug Mesos.sln 
> /t:Rebuild
> *ErrorMessage:*
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\csi_server.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher_tracker.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\composing.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\slave.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\task_status_update_manager.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MESOS-10182) Mesos failed to build due to error C1083: Cannot open include file: 'csi/state.pb.h': No such file or directory on windows with MSVC

2020-09-01 Thread QuellaZhang (Jira)


[ 
https://issues.apache.org/jira/browse/MESOS-10182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17188169#comment-17188169
 ] 

QuellaZhang commented on MESOS-10182:
-

[~qianzhang] yes, I still obtain the build failure after editing the file.

> Mesos failed to build due to error C1083: Cannot open include file: 
> 'csi/state.pb.h': No such file or directory on windows with MSVC
> 
>
> Key: MESOS-10182
> URL: https://issues.apache.org/jira/browse/MESOS-10182
> Project: Mesos
>  Issue Type: Bug
>  Components: build
>Affects Versions: master
>Reporter: QuellaZhang
>Priority: Major
> Attachments: build.log
>
>
> Hi All,
> I tried to build Mesos on Windows with VS2019. It failed to build due to 
> error C1083: Cannot open include file: 'csi/state.pb.h': No such file or 
> directory on Windows using MSVC. It can be reproduced on latest reversion 
> d4634f4 on master branch. Could you please take a look at this isssue? Thanks 
> a lot!
>  
> *Reproduce steps:*
> 1. git clone -c core.autocrlf=true https://github.com/apache/mesos 
> F:\gitP\apache\mesos
> 2. Open a VS 2019 x64 command prompt as admin and browse to 
> F:\gitP\apache\mesos
> 3. mkdir build_amd64 && pushd build_amd64
> 4. cmake -G "Visual Studio 16 2019" -A x64 
> -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DENABLE_LIBEVENT=1 
> -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="F:\tools\gnuwin32\bin" -T host=x64 ..
> 5. set CL=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING %CL%
> 6. msbuild /maxcpucount:4 /p:Platform=x64 /p:Configuration=Debug Mesos.sln 
> /t:Rebuild
> *ErrorMessage:*
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\csi_server.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher_tracker.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\composing.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\slave.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\task_status_update_manager.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MESOS-10182) Mesos failed to build due to error C1083: Cannot open include file: 'csi/state.pb.h': No such file or directory on windows with MSVC

2020-08-31 Thread Qian Zhang (Jira)


[ 
https://issues.apache.org/jira/browse/MESOS-10182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17188157#comment-17188157
 ] 

Qian Zhang commented on MESOS-10182:


[~QuellaZhang] Will you still see that build failure after you edited the file 
`src/CMakeLists.txt` as I suggested? Or the failure has disappeared and now you 
can build Mesos code on Windows successfully?

> Mesos failed to build due to error C1083: Cannot open include file: 
> 'csi/state.pb.h': No such file or directory on windows with MSVC
> 
>
> Key: MESOS-10182
> URL: https://issues.apache.org/jira/browse/MESOS-10182
> Project: Mesos
>  Issue Type: Bug
>  Components: build
>Affects Versions: master
>Reporter: QuellaZhang
>Priority: Major
> Attachments: build.log
>
>
> Hi All,
> I tried to build Mesos on Windows with VS2019. It failed to build due to 
> error C1083: Cannot open include file: 'csi/state.pb.h': No such file or 
> directory on Windows using MSVC. It can be reproduced on latest reversion 
> d4634f4 on master branch. Could you please take a look at this isssue? Thanks 
> a lot!
>  
> *Reproduce steps:*
> 1. git clone -c core.autocrlf=true https://github.com/apache/mesos 
> F:\gitP\apache\mesos
> 2. Open a VS 2019 x64 command prompt as admin and browse to 
> F:\gitP\apache\mesos
> 3. mkdir build_amd64 && pushd build_amd64
> 4. cmake -G "Visual Studio 16 2019" -A x64 
> -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DENABLE_LIBEVENT=1 
> -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="F:\tools\gnuwin32\bin" -T host=x64 ..
> 5. set CL=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING %CL%
> 6. msbuild /maxcpucount:4 /p:Platform=x64 /p:Configuration=Debug Mesos.sln 
> /t:Rebuild
> *ErrorMessage:*
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\csi_server.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher_tracker.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\composing.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\slave.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\task_status_update_manager.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MESOS-10182) Mesos failed to build due to error C1083: Cannot open include file: 'csi/state.pb.h': No such file or directory on windows with MSVC

2020-08-31 Thread QuellaZhang (Jira)


[ 
https://issues.apache.org/jira/browse/MESOS-10182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17188154#comment-17188154
 ] 

QuellaZhang commented on MESOS-10182:
-

[~qianzhang] Hi, According to your advice, I try to edit the file 
'src/CMakeLists.txt' as you say and confirm the failure result on the latest 
code of Mesos master branch. 

> Mesos failed to build due to error C1083: Cannot open include file: 
> 'csi/state.pb.h': No such file or directory on windows with MSVC
> 
>
> Key: MESOS-10182
> URL: https://issues.apache.org/jira/browse/MESOS-10182
> Project: Mesos
>  Issue Type: Bug
>  Components: build
>Affects Versions: master
>Reporter: QuellaZhang
>Priority: Major
> Attachments: build.log
>
>
> Hi All,
> I tried to build Mesos on Windows with VS2019. It failed to build due to 
> error C1083: Cannot open include file: 'csi/state.pb.h': No such file or 
> directory on Windows using MSVC. It can be reproduced on latest reversion 
> d4634f4 on master branch. Could you please take a look at this isssue? Thanks 
> a lot!
>  
> *Reproduce steps:*
> 1. git clone -c core.autocrlf=true https://github.com/apache/mesos 
> F:\gitP\apache\mesos
> 2. Open a VS 2019 x64 command prompt as admin and browse to 
> F:\gitP\apache\mesos
> 3. mkdir build_amd64 && pushd build_amd64
> 4. cmake -G "Visual Studio 16 2019" -A x64 
> -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DENABLE_LIBEVENT=1 
> -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="F:\tools\gnuwin32\bin" -T host=x64 ..
> 5. set CL=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING %CL%
> 6. msbuild /maxcpucount:4 /p:Platform=x64 /p:Configuration=Debug Mesos.sln 
> /t:Rebuild
> *ErrorMessage:*
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\csi_server.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher_tracker.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\composing.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\slave.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\task_status_update_manager.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MESOS-10182) Mesos failed to build due to error C1083: Cannot open include file: 'csi/state.pb.h': No such file or directory on windows with MSVC

2020-08-30 Thread Qian Zhang (Jira)


[ 
https://issues.apache.org/jira/browse/MESOS-10182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17187407#comment-17187407
 ] 

Qian Zhang commented on MESOS-10182:


[~QuellaZhang] Can you please check out the latest code of Mesos master branch 
and manually move the line `slave/csi_server.cpp` from line 154 to line 212 
(i.e under the line `slave/containerizer/mesos/provisioner/utils.cpp`) and then 
try again?

> Mesos failed to build due to error C1083: Cannot open include file: 
> 'csi/state.pb.h': No such file or directory on windows with MSVC
> 
>
> Key: MESOS-10182
> URL: https://issues.apache.org/jira/browse/MESOS-10182
> Project: Mesos
>  Issue Type: Bug
>  Components: build
>Affects Versions: master
>Reporter: QuellaZhang
>Priority: Major
> Attachments: build.log
>
>
> Hi All,
> I tried to build Mesos on Windows with VS2019. It failed to build due to 
> error C1083: Cannot open include file: 'csi/state.pb.h': No such file or 
> directory on Windows using MSVC. It can be reproduced on latest reversion 
> d4634f4 on master branch. Could you please take a look at this isssue? Thanks 
> a lot!
>  
> *Reproduce steps:*
> 1. git clone -c core.autocrlf=true https://github.com/apache/mesos 
> F:\gitP\apache\mesos
> 2. Open a VS 2019 x64 command prompt as admin and browse to 
> F:\gitP\apache\mesos
> 3. mkdir build_amd64 && pushd build_amd64
> 4. cmake -G "Visual Studio 16 2019" -A x64 
> -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DENABLE_LIBEVENT=1 
> -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="F:\tools\gnuwin32\bin" -T host=x64 ..
> 5. set CL=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING %CL%
> 6. msbuild /maxcpucount:4 /p:Platform=x64 /p:Configuration=Debug Mesos.sln 
> /t:Rebuild
> *ErrorMessage:*
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\csi_server.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher_tracker.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\mesos\launcher.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\containerizer\composing.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file F:\gitP\apache\mesos\src\slave\slave.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
> F:\gitP\apache\mesos\src\csi/state.hpp(22,10): fatal error C1083: Cannot open 
> include file: 'csi/state.pb.h': No such file or directory 
> (d:\agent\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1969) 
> (compiling source file 
> F:\gitP\apache\mesos\src\slave\task_status_update_manager.cpp) 
> [F:\gitP\apache\mesos\build_amd64\src\mesos.vcxproj]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)