[jira] [Comment Edited] (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&focusedCommentId=17187407#comment-17187407
 ] 

Qian Zhang edited comment on MESOS-10182 at 8/31/20, 3:18 AM:
--

[~QuellaZhang] Can you please check out the latest code of Mesos master branch 
and manually edit the file `src/CMakeLists.txt` by moving 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?


was (Author: qianzhang):
[~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)


[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&focusedCommentId=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)