[jira] [Commented] (MESOS-10137) Mesos failed to build due to error C2668 on windows with MSVC

2020-07-27 Thread LinGao (Jira)


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

LinGao commented on MESOS-10137:


Hi [~chris.d.holman], Thanks for your info. According to your suggestion, I 
tried F:\Mesos\src\3rdparty\stout\include\stout\os\windows\shell.hpp in line 
168 of the file to add the third parameter *None()* as below. error C2668 did 
disappear.

inline Option system(const std::string& command)
{
 return os::spawn(Shell::name, \{Shell::arg0, Shell::arg1, command},*None()*);
}

 

Thanks,

Lin

> Mesos failed to build due to error C2668 on windows with MSVC
> -
>
> Key: MESOS-10137
> URL: https://issues.apache.org/jira/browse/MESOS-10137
> Project: Mesos
>  Issue Type: Bug
>  Components: build
>Affects Versions: master
>Reporter: LinGao
>Priority: Major
>  Labels: windows
> Attachments: build.log
>
>
> Hi All,
> I tried to build Mesos on Windows with VS2019. It failed to build due to 
> error C2668: 'os::spawn': ambiguous call to overloaded function 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\3rdparty\stout\include\stout/os/windows/shell.hpp(168,68):
>  error C2668: 'os::spawn': ambiguous call to overloaded function (compiling 
> source file F:\gitP\apache\mesos\3rdparty\libprocess\src\authenticator.cpp) 
> [F:\gitP\apache\mesos\build_amd64\3rdparty\libprocess\src\process.vcxproj]
>  
>  



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


[jira] [Created] (MESOS-10165) Mesos failed to build due to error C2668: 'os::spawn': ambiguous call to overloaded function, with MSVC on windows

2020-07-27 Thread LinGao (Jira)
LinGao created MESOS-10165:
--

 Summary: Mesos failed to build due to error C2668: 'os::spawn': 
ambiguous call to overloaded function, with MSVC on windows
 Key: MESOS-10165
 URL: https://issues.apache.org/jira/browse/MESOS-10165
 Project: Mesos
  Issue Type: Bug
  Components: build
Affects Versions: master
Reporter: LinGao
 Attachments: build_release.log

Hi All,

We tried to build Mesos on Windows with VS2019.   It failed to build due to 
error C2668: 'os::spawn': ambiguous call to overloaded function, with MSVC on 
windows. It can be reproduced on latest reversion 8e74d18 master branch. Could 
you please look at this issue? We use cmake version 3.17.2.

 

Reproduce steps:
 # git clone -c core.autocrlf=true https://github.com/apache/mesos F:\Mesos\src
 # Open a VS 2019 x64 command prompt as admin and browse to F:\Mesos\src
 # 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 ..
 # set CL=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING
 # msbuild /maxcpucount:4 /p:Platform=x64 /p:Configuration=Release Mesos.sln 
/t:Rebuild

 

ErrorMessage:

85>F:\Mesos\src\3rdparty\stout\include\stout/os/windows/shell.hpp(168,68): 
error C2668: 'os::spawn': ambiguous call to overloaded function (compiling 
source file F:\Mesos\src\3rdparty\libprocess\src\latch.cpp) 
[F:\Mesos\src\build_amd64\3rdparty\libprocess\src\process.vcxproj]
 F:\Mesos\src\3rdparty\stout\include\stout/os/exec.hpp(52,20): message : could 
be 'Option os::spawn(const std::string &,const 
std::vector> &)' 
[F:\Mesos\src\build_amd64\3rdparty\libprocess\src\process.vcxproj]

85>F:\Mesos\src\3rdparty\stout\include\stout/os/windows/shell.hpp(168,68): 
error C2668: 'os::spawn': ambiguous call to overloaded function (compiling 
source file F:\Mesos\src\3rdparty\libprocess\src\metrics\metrics.cpp) 
[F:\Mesos\src\build_amd64\3rdparty\libprocess\src\process.vcxproj]



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


[jira] [Commented] (MESOS-10137) Mesos failed to build due to error C2668 on windows with MSVC

2020-06-07 Thread LinGao (Jira)


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

LinGao commented on MESOS-10137:


Hi All, 

Could someone look at this issue? It can still be reproduced on the latest 
reversion {{362bf9b.}}

Thanks,

Lin

{{}}

> Mesos failed to build due to error C2668 on windows with MSVC
> -
>
> Key: MESOS-10137
> URL: https://issues.apache.org/jira/browse/MESOS-10137
> Project: Mesos
>  Issue Type: Bug
>  Components: build
>Affects Versions: master
>Reporter: LinGao
>Priority: Major
> Attachments: build.log
>
>
> Hi All,
> I tried to build Mesos on Windows with VS2019. It failed to build due to 
> error C2668: 'os::spawn': ambiguous call to overloaded function 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\3rdparty\stout\include\stout/os/windows/shell.hpp(168,68):
>  error C2668: 'os::spawn': ambiguous call to overloaded function (compiling 
> source file F:\gitP\apache\mesos\3rdparty\libprocess\src\authenticator.cpp) 
> [F:\gitP\apache\mesos\build_amd64\3rdparty\libprocess\src\process.vcxproj]
>  
>  



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


[jira] [Created] (MESOS-10137) Mesos failed to build due to error C2668 on windows with MSVC

2020-05-29 Thread LinGao (Jira)
LinGao created MESOS-10137:
--

 Summary: Mesos failed to build due to error C2668 on windows with 
MSVC
 Key: MESOS-10137
 URL: https://issues.apache.org/jira/browse/MESOS-10137
 Project: Mesos
  Issue Type: Bug
  Components: build
Affects Versions: master
Reporter: LinGao
 Attachments: build.log

I tried to build Mesos on Windows with VS2019. It failed to build due to error 
C2668: 'os::spawn': ambiguous call to overloaded function 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\3rdparty\stout\include\stout/os/windows/shell.hpp(168,68): 
error C2668: 'os::spawn': ambiguous call to overloaded function (compiling 
source file F:\gitP\apache\mesos\3rdparty\libprocess\src\authenticator.cpp) 
[F:\gitP\apache\mesos\build_amd64\3rdparty\libprocess\src\process.vcxproj]

 

 



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


[jira] [Created] (MESOS-10028) Mesos failed to build due to error C3493 on windows with MSVC

2019-11-03 Thread LinGao (Jira)
LinGao created MESOS-10028:
--

 Summary: Mesos failed to build due to error C3493 on windows with 
MSVC
 Key: MESOS-10028
 URL: https://issues.apache.org/jira/browse/MESOS-10028
 Project: Mesos
  Issue Type: Bug
  Components: build
Affects Versions: master
 Environment: VS 2017 + Windows Server 2016
Reporter: LinGao
 Attachments: log_x64_build.log

Mesos failed to build due to error C3493: 'childRoleLength' cannot be 
implicitly captured because no default capture mode has been specified on 
Windows using MSVC. It can be first reproduced on 69e92ae reversion 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 D:\mesos\src
2. Open a VS 2017 x64 command prompt as admin and browse to D:\mesos
3. cd src
4. .\bootstrap.bat
5. cd ..
6. mkdir build_x64 && pushd build_x64
7. cmake ..\src -G "Visual Studio 15 2017 Win64" 
-DCMAKE_SYSTEM_VERSION=10.0.17134.0 -DENABLE_LIBEVENT=1 -DHAS_AUTHENTICATION=0 
-DPATCHEXE_PATH="C:\gnuwin32\bin" -T host=x64
8. msbuild Mesos.sln /p:Configuration=Debug /p:Platform=x64 /maxcpucount:4 
/t:Rebuild
 
ErrorMessage:
D:\mesos\src\src\tests\hierarchical_allocator_tests.cpp(8455): error C3493: 
'childRoleLength' cannot be implicitly captured because no default capture mode 
has been specified



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


[jira] [Commented] (MESOS-9971) 'dist' and 'distcheck' cmake targets are implemented as shell scripts, so fail on Windows/MSVC.

2019-09-26 Thread LinGao (Jira)


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

LinGao commented on MESOS-9971:
---

Hi Joseph Wu,

Thanks for you info.

I rebuild Mesos on windows/MSCV with latest {color:#172b4d}reversion aed0b87 on 
master branch. It failed to execute bootstrap.bat.{color}

 

Reproduce steps:

1. git clone -c core.autocrlf=true [https://github.com/apache/mesos] 
D:\mesos\src
 2. Open a VS 2017 x64 command prompt as admin and browse to D:\mesos
 3. cd src
 4. .\bootstrap.bat

{color:#172b4d}ErrorMessage:{color}

{color:#172b4d}[executing command] .\bootstrap.bat 
'.\bootstrap.bat' is not recognized as an internal or external command,
operable program or batch file.
[command took 0 seconds] {color}

 

{color:#172b4d}Does the windows/msvc build method change? If there is a change, 
can you provide detailed steps?  Could you please take a look at this isssue? 
Thanks a lot!{color}

 

{color:#172b4d}Thanks,{color}

{color:#172b4d}Lin{color}

 

> 'dist' and 'distcheck' cmake targets are implemented as shell scripts, so 
> fail on Windows/MSVC.
> ---
>
> Key: MESOS-9971
> URL: https://issues.apache.org/jira/browse/MESOS-9971
> Project: Mesos
>  Issue Type: Bug
>  Components: build
>Affects Versions: master
> Environment: {color:#172b4d}VS 2017 + Windows Server 2016{color}
>Reporter: LinGao
>Assignee: Joseph Wu
>Priority: Trivial
>  Labels: foundations
> Fix For: 1.10.0
>
> Attachments: log_x64_build.log
>
>
> Mesos failed to build due to error MSB6006: "cmd.exe" exited with code 1 on 
> Windows using MSVC. It can be first reproduced on 
> {color:#24292e}e0f7e2d{color} reversion 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] 
> D:\mesos\src
>  2. Open a VS 2017 x64 command prompt as admin and browse to D:\mesos
>  3. cd src
>  4. .\bootstrap.bat
>  5. cd ..
>  6. mkdir build_x64 && pushd build_x64
>  7. cmake ..\src -G "Visual Studio 15 2017 Win64" 
> -DCMAKE_SYSTEM_VERSION=10.0.17134.0 -DENABLE_LIBEVENT=1 
> -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="C:\gnuwin32\bin" -T host=x64
>  8. msbuild Mesos.sln /p:Configuration=Debug /p:Platform=x64 /maxcpucount:4 
> /t:Rebuild
>  
> ErrorMessage:
> 67>PrepareForBuild:
>  Creating directory "x64\Debug\dist\dist.tlog\".
>    InitializeBuildStatus:
>  Creating "x64\Debug\dist\dist.tlog\unsuccessfulbuild" because 
> "AlwaysCreate" was specified.
> 67>C:\Program Files (x86)\Microsoft Visual 
> Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5):
>  error MSB6006: "cmd.exe" exited with code 1. 
> [D:\Mesos\build_x64\dist.vcxproj]
> 67>Done Building Project "D:\Mesos\build_x64\dist.vcxproj" (Rebuild 
> target(s)) -- FAILED.
>  



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


[jira] [Created] (MESOS-9971) Mesos failed to build due to error MSB6006 on Windows with MSVC.

2019-09-18 Thread LinGao (Jira)
LinGao created MESOS-9971:
-

 Summary: Mesos failed to build due to error MSB6006 on Windows 
with MSVC.
 Key: MESOS-9971
 URL: https://issues.apache.org/jira/browse/MESOS-9971
 Project: Mesos
  Issue Type: Bug
  Components: build
Affects Versions: master
 Environment: {color:#172b4d}VS 2017 + Windows Server 2016{color}
Reporter: LinGao
 Attachments: log_x64_build.log

Mesos failed to build due to error MSB6006: "cmd.exe" exited with code 1 on 
Windows using MSVC. It can be first reproduced on {color:#24292e}e0f7e2d{color} 
reversion 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] 
D:\mesos\src
 2. Open a VS 2017 x64 command prompt as admin and browse to D:\mesos
 3. cd src
 4. .\bootstrap.bat
 5. cd ..
 6. mkdir build_x64 && pushd build_x64
 7. cmake ..\src -G "Visual Studio 15 2017 Win64" 
-DCMAKE_SYSTEM_VERSION=10.0.17134.0 -DENABLE_LIBEVENT=1 -DHAS_AUTHENTICATION=0 
-DPATCHEXE_PATH="C:\gnuwin32\bin" -T host=x64
 8. msbuild Mesos.sln /p:Configuration=Debug /p:Platform=x64 /maxcpucount:4 
/t:Rebuild

 

ErrorMessage:

67>PrepareForBuild:
 Creating directory "x64\Debug\dist\dist.tlog\".
   InitializeBuildStatus:
 Creating "x64\Debug\dist\dist.tlog\unsuccessfulbuild" because 
"AlwaysCreate" was specified.

67>C:\Program Files (x86)\Microsoft Visual 
Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5):
 error MSB6006: "cmd.exe" exited with code 1. [D:\Mesos\build_x64\dist.vcxproj]
67>Done Building Project "D:\Mesos\build_x64\dist.vcxproj" (Rebuild target(s)) 
-- FAILED.

 



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


[jira] [Commented] (MESOS-9902) Mesos failed to build due to error C2280 on windows with MSVC

2019-07-30 Thread LinGao (JIRA)


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

LinGao commented on MESOS-9902:
---

Hi, 

Is anyone concerned about this issue? It still reproduced on the latest master 
reversion.

Thanks,

Lin

> Mesos failed to build due to error C2280 on windows with MSVC
> -
>
> Key: MESOS-9902
> URL: https://issues.apache.org/jira/browse/MESOS-9902
> Project: Mesos
>  Issue Type: Bug
> Environment: Windows Server 2016 + VS2017 Mesos master branch latest 
> srouce code
>Reporter: LinGao
>Priority: Major
> Attachments: log_x64_build.log
>
>
> Mesos failed to build due to error C2280: 'Try 
> os::uname(void)': attempting to reference a deleted function on windows with 
> MSVC. It can be first reproduced on 4bd3e70 reversion on master branch. Could 
> you please look at this issue? Thanks a lot!
> Here is repro steps:
>  1. git clone -c core.autocrlf=true https://github.com/apache/mesos 
> F:\mesos\src
>  2. Open a VS amd64 command prompt as admin and browse to F:\mesos\src
>  3. set PreferredToolArchitecture=x64
>  4. bootstrap.bat
>  5. mkdir build_x64 && pushd build_x64
>  6. cmake ..\src -G "Visual Studio 14 2015 Win64" -DENABLE_LIBEVENT=1 
> -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="C:\gnuwin32\bin"
>  7. msbuild Mesos.sln /p:Configuration=Debug /p:Platform=x64 /m /t:Rebuild
>  
> Error message:
> 91>D:\Mesos\src\src\common\kernel_version.cpp(33): error C2280: 
> 'Try os::uname(void)': attempting to reference a deleted 
> function [D:\Mesos\build_x64\src\mesos.vcxproj]
> D:\Mesos\src\src\common\kernel_version.cpp(33): error C2280: 
> 'Try os::uname(void)': attempting to reference a deleted 
> function [D:\Mesos\build_x64\src\mesos.vcxproj]
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Created] (MESOS-9902) Mesos failed to build due to error C2280 on windows with MSVC

2019-07-23 Thread LinGao (JIRA)
LinGao created MESOS-9902:
-

 Summary: Mesos failed to build due to error C2280 on windows with 
MSVC
 Key: MESOS-9902
 URL: https://issues.apache.org/jira/browse/MESOS-9902
 Project: Mesos
  Issue Type: Bug
 Environment: Windows Server 2016 + VS2017 Mesos master branch latest 
srouce code
Reporter: LinGao
 Attachments: log_x64_build.log

Mesos failed to build due to error C2280: 'Try 
os::uname(void)': attempting to reference a deleted function on windows with 
MSVC. It can be first reproduced on 4bd3e70 reversion on master branch. Could 
you please look at this issue? Thanks a lot!

Here is repro steps:
 1. git clone -c core.autocrlf=true https://github.com/apache/mesos F:\mesos\src
 2. Open a VS amd64 command prompt as admin and browse to F:\mesos\src
 3. set PreferredToolArchitecture=x64
 4. bootstrap.bat
 5. mkdir build_x64 && pushd build_x64
 6. cmake ..\src -G "Visual Studio 14 2015 Win64" -DENABLE_LIBEVENT=1 
-DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="C:\gnuwin32\bin"
 7. msbuild Mesos.sln /p:Configuration=Debug /p:Platform=x64 /m /t:Rebuild

 

Error message:
91>D:\Mesos\src\src\common\kernel_version.cpp(33): error C2280: 
'Try os::uname(void)': attempting to reference a deleted 
function [D:\Mesos\build_x64\src\mesos.vcxproj]
D:\Mesos\src\src\common\kernel_version.cpp(33): error C2280: 
'Try os::uname(void)': attempting to reference a deleted 
function [D:\Mesos\build_x64\src\mesos.vcxproj]

 



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Created] (MESOS-9894) Mesos failed to build due to fatal error C1083 on Windows using MSVC.

2019-07-16 Thread LinGao (JIRA)
LinGao created MESOS-9894:
-

 Summary: Mesos failed to build due to fatal error C1083 on Windows 
using MSVC.
 Key: MESOS-9894
 URL: https://issues.apache.org/jira/browse/MESOS-9894
 Project: Mesos
  Issue Type: Bug
  Components: build
 Environment: VS 2017 + Windows Server 2016
Reporter: LinGao
 Attachments: log_x64_build.log

Mesos failed to build due to fatal error C1083: Cannot open include file: 
'slave/volume_gid_manager/state.pb.h': No such file or directory on Windows 
using MSVC. It can be first reproduced on 6a026e3 reversion 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 D:\mesos\src
2. Open a VS 2017 x64 command prompt as admin and browse to D:\mesos
3. cd src
4. .\bootstrap.bat
5. cd ..
6. mkdir build_x64 && pushd build_x64
7. cmake ..\src -G "Visual Studio 15 2017 Win64" 
-DCMAKE_SYSTEM_VERSION=10.0.17134.0 -DENABLE_LIBEVENT=1 -DHAS_AUTHENTICATION=0 
-DPATCHEXE_PATH="C:\gnuwin32\bin" -T host=x64
8. msbuild Mesos.sln /p:Configuration=Debug /p:Platform=x64 /maxcpucount:4 
/t:Rebuild

 

ErrorMessage:

D:\Mesos\src\include\mesos/docker/spec.hpp(29): fatal error C1083: Cannot open 
include file: 'mesos/docker/spec.pb.h': No such file or directory

D:\Mesos\src\src\slave/volume_gid_manager/state.hpp(21): fatal error C1083: 
Cannot open include file: 'slave/volume_gid_manager/state.pb.h': No such file 
or directory

D:\Mesos\src\src\slave/volume_gid_manager/state.hpp(21): fatal error C1083: 
Cannot open include file: 'slave/volume_gid_manager/state.pb.h': No such file 
or directory

 

 



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Created] (MESOS-9621) Mesos failed to build due to error LNK2019 on Windows using MSVC.

2019-03-01 Thread LinGao (JIRA)
LinGao created MESOS-9621:
-

 Summary: Mesos failed to build due to error LNK2019 on Windows 
using MSVC.
 Key: MESOS-9621
 URL: https://issues.apache.org/jira/browse/MESOS-9621
 Project: Mesos
  Issue Type: Bug
  Components: build
 Environment: Environment:
 VS 2017 + Windows Server 2016
Reporter: LinGao
 Attachments: log_x64_build.log

Issue description:

Mesos failed to build due to error LNK2019: {color:#f79232}unresolved external 
symbol "public: __cdecl 
mesos::internal::slave::VolumeGidManager::~VolumeGidManager(void)" 
(??1VolumeGidManager@slave@internal@mesos@@QEAA@XZ) referenced in function 
"public: void * __cdecl mesos::internal::slave::VolumeGidManager::`scalar 
deleting destructor'(unsigned int)"{color} on Windows using MSVC. It can be 
first reproduced on mesos master branch 
[c03e51f|https://github.com/apache/mesos/commit/c03e51f1fe9cc7137635a7fe586fd890f7c7bdae].
 Could you please take a look?

Reproduce steps:
 # git clone -c core.autocrlf=true 
[{color:#0066cc}https://github.com/apache/mesos{color}] D:\mesos\src
 # Open a VS 2017 x64 command prompt as admin and browse to D:\mesos
 # cd src
 # .\bootstrap.bat
 # cd ..
 # mkdir build_x64 && pushd build_x64
 # cmake ..\src -G "Visual Studio 15 2017 Win64" 
-DCMAKE_SYSTEM_VERSION=10.0.17134.0 -DENABLE_LIBEVENT=1 -DHAS_AUTHENTICATION=0 
-DPATCHEXE_PATH="C:\gnuwin32\bin" -T host=x64
 # msbuild Mesos.sln /p:Configuration=Debug /p:Platform=x64 /maxcpucount:4 
/t:Rebuild

ErrorMessage:

main.obj : error LNK2019: unresolved external symbol "public: __cdecl 
mesos::internal::slave::VolumeGidManager::~VolumeGidManager(void)" 
(??1VolumeGidManager@slave@internal@mesos@@QEAA@XZ) referenced in function 
"public: void * __cdecl mesos::internal::slave::VolumeGidManager::`scalar 
deleting destructor'(unsigned int)" 
(??_GVolumeGidManager@slave@internal@mesos@@QEAAPEAXI@Z) 
[D:\Mesos\build_x64\src\slave\mesos-agent.vcxproj]
   107>D:\Mesos\build_x64\src\mesos-agent.exe : fatal error LNK1120: 1 
unresolved externals [D:\Mesos\build_x64\src\slave\mesos-agent.vcxproj]
   107>Done Building Project "D:\Mesos\build_x64\src\slave\mesos-agent.vcxproj" 
(Rebuild target(s)) -- FAILED.
    27>Done Building Project 
"D:\Mesos\build_x64\src\slave\mesos-agent.vcxproj.metaproj" (Rebuild target(s)) 
-- FAILED.
 2>Done Building Project "D:\Mesos\build_x64\ALL_BUILD.vcxproj.metaproj" 
(Rebuild target(s)) -- FAILED.
 1>Done Building Project "D:\Mesos\build_x64\Mesos.sln" (Rebuild target(s)) 
-- FAILED.

Build FAILED.

 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)