Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Build problem #4511

Closed
CBrauer opened this issue Nov 29, 2019 · 3 comments

Comments

@CBrauer
Copy link

@CBrauer CBrauer commented Nov 29, 2019

HI,
Please help me with an install problem. Here is my install script output:

PS H:\ML.NET\machinelearning-master> ./build.cmd
Tools are already initialized.
Running: H:\ML.NET\machinelearning-master\Tools\dotnetcli\dotnet msbuild /nologo /verbosity:minimal /clp:Summary /maxcpucount /l:BinClashLogger,Tools\Microsoft.DotNet.Build.Tasks.dll;LogFile=binclash.log /p:Configuration=Debug  /flp:v=normal  /flp2:warningsonly;logfile=msbuild.wrn  /flp3:errorsonly;logfile=msbuild.err  build.proj
  fatal: Not a git repository (or any of the parent directories): .git
  Restoring all projects...
  Restore completed in 90.2 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.Core\Microsoft.ML.Core.csproj.
  Restore completed in 6.32 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.CpuMath\Microsoft.ML.CpuMath.csproj.
  Restore completed in 5.13 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.DataView\Microsoft.ML.DataView.csproj.
  Restore completed in 127.06 ms for H:\ML.NET\machinelearning-master\src\Microsoft.Extensions.ML\Microsoft.Extensions.ML.csproj.
  Restore completed in 127.57 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.AutoML\Microsoft.ML.AutoML.csproj.
  Restore completed in 127.65 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.Console\Microsoft.ML.Console.csproj.
  Restore completed in 127.75 ms for H:\ML.NET\machinelearning-master\docs\samples\Microsoft.ML.Samples\Microsoft.ML.Samples.csproj.
  Restore completed in 127.59 ms for H:\ML.NET\machinelearning-master\docs\samples\Microsoft.ML.AutoML.Samples\Microsoft.ML.AutoML.Samples.csproj.
  Restore completed in 127.87 ms for H:\ML.NET\machinelearning-master\docs\samples\Microsoft.ML.Samples.GPU\Microsoft.ML.Samples.GPU.csproj.
  Restore completed in 135.73 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.CodeGenerator\Microsoft.ML.CodeGenerator.csproj.
  Restore completed in 16.42 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.Ensemble\Microsoft.ML.Ensemble.csproj.
  Restore completed in 20.53 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.DnnImageFeaturizer.ResNet18\Microsoft.ML.DnnImageFeaturizer.ResNet18.csproj.
  Restore completed in 20.46 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.Data\Microsoft.ML.Data.csproj.
  Restore completed in 24.78 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.DnnImageFeaturizer.ResNet50\Microsoft.ML.DnnImageFeaturizer.ResNet50.csproj.
  Restore completed in 25.59 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.DnnImageFeaturizer.AlexNet\Microsoft.ML.DnnImageFeaturizer.AlexNet.csproj.
  Restore completed in 34.91 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.DnnImageFeaturizer.ResNet101\Microsoft.ML.DnnImageFeaturizer.ResNet101.csproj.
  Restore completed in 40.05 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.EntryPoints\Microsoft.ML.EntryPoints.csproj.
  Restore completed in 40.93 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.Maml\Microsoft.ML.Maml.csproj.
  Restore completed in 42.72 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.DnnAnalyzer\Microsoft.ML.DnnAnalyzer\Microsoft.ML.DnnAnalyzer.csproj.
  Restore completed in 12.1 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.KMeansClustering\Microsoft.ML.KMeansClustering.csproj.
  Restore completed in 9.56 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.ImageAnalytics\Microsoft.ML.ImageAnalytics.csproj.
  Restore completed in 26.51 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.Experimental\Microsoft.ML.Experimental.csproj.
  Restore completed in 21.27 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.FastTree\Microsoft.ML.FastTree.csproj.
  Restore completed in 16.34 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.Mkl.Components\Microsoft.ML.Mkl.Components.csproj.
  Restore completed in 16.61 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.LightGbm\Microsoft.ML.LightGbm.csproj.
  Restore completed in 11.04 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.OnnxConverter\Microsoft.ML.OnnxConverter.csproj.
  Restore completed in 21.94 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.OnnxTransformer\Microsoft.ML.OnnxTransformer.csproj.
  Restore completed in 16.24 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.Parquet\Microsoft.ML.Parquet.csproj.
  Restore completed in 12.7 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.Recommender\Microsoft.ML.Recommender.csproj.
  Restore completed in 20.06 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.SamplesUtils\Microsoft.ML.SamplesUtils.csproj.
  Restore completed in 15.85 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.ResultProcessor\Microsoft.ML.ResultProcessor.csproj.
  Restore completed in 23.91 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.PCA\Microsoft.ML.PCA.csproj.
  Restore completed in 18.12 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.StandardTrainers\Microsoft.ML.StandardTrainers.csproj.
  Restore completed in 30.13 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.Sweeper\Microsoft.ML.Sweeper.csproj.
  Restore completed in 23.27 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.TensorFlow\Microsoft.ML.TensorFlow.csproj.
  Restore completed in 17.56 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.Transforms\Microsoft.ML.Transforms.csproj.
  Restore completed in 36.79 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.Vision\Microsoft.ML.Vision.csproj.
  Restore completed in 86.71 ms for H:\ML.NET\machinelearning-master\src\Microsoft.ML.TimeSeries\Microsoft.ML.TimeSeries.csproj.
  Restore completed in 77.17 ms for H:\ML.NET\machinelearning-master\test\Microsoft.Extensions.ML.Tests\Microsoft.Extensions.ML.Tests.csproj.
  Restore completed in 58.66 ms for H:\ML.NET\machinelearning-master\test\Microsoft.ML.AutoML.Tests\Microsoft.ML.AutoML.Tests.csproj.
  Restore completed in 35.71 ms for H:\ML.NET\machinelearning-master\test\Microsoft.ML.Benchmarks\Microsoft.ML.Benchmarks.csproj.
  Restore completed in 46.71 ms for H:\ML.NET\machinelearning-master\test\Microsoft.ML.Benchmarks.Tests\Microsoft.ML.Benchmarks.Tests.csproj.
  Restore completed in 29.64 ms for H:\ML.NET\machinelearning-master\test\Microsoft.ML.CodeAnalyzer.Tests\Microsoft.ML.CodeAnalyzer.Tests.csproj.
  Restore completed in 14.44 ms for H:\ML.NET\machinelearning-master\test\Microsoft.ML.FSharp.Tests\Microsoft.ML.FSharp.Tests.fsproj.
  Restore completed in 62.28 ms for H:\ML.NET\machinelearning-master\test\Microsoft.ML.Core.Tests\Microsoft.ML.Core.Tests.csproj.
  Restore completed in 81.34 ms for H:\ML.NET\machinelearning-master\test\Microsoft.ML.CpuMath.PerformanceTests\Microsoft.ML.CpuMath.PerformanceTests.csproj.
  Restore completed in 22.24 ms for H:\ML.NET\machinelearning-master\test\Microsoft.ML.CodeGenerator.Tests\Microsoft.ML.CodeGenerator.Tests.csproj.
  Restore completed in 14.73 ms for H:\ML.NET\machinelearning-master\test\Microsoft.ML.OnnxTransformerTest\Microsoft.ML.OnnxTransformerTest.csproj.
  Restore completed in 21.84 ms for H:\ML.NET\machinelearning-master\test\Microsoft.ML.CpuMath.UnitTests\Microsoft.ML.CpuMath.UnitTests.csproj.
  Restore completed in 21.58 ms for H:\ML.NET\machinelearning-master\test\Microsoft.ML.Functional.Tests\Microsoft.ML.Functional.Tests.csproj.
  Restore completed in 36.2 ms for H:\ML.NET\machinelearning-master\test\Microsoft.ML.NugetPackageVersionUpdater\Microsoft.ML.NugetPackageVersionUpdater.csproj.
  Restore completed in 16.37 ms for H:\ML.NET\machinelearning-master\test\Microsoft.ML.TestFramework\Microsoft.ML.TestFramework.csproj.
  Restore completed in 22.45 ms for H:\ML.NET\machinelearning-master\test\Microsoft.ML.Predictor.Tests\Microsoft.ML.Predictor.Tests.csproj.
  Restore completed in 23.95 ms for H:\ML.NET\machinelearning-master\test\Microsoft.ML.Sweeper.Tests\Microsoft.ML.Sweeper.Tests.csproj.
  Restore completed in 35.88 ms for H:\ML.NET\machinelearning-master\test\Microsoft.ML.TimeSeries.Tests\Microsoft.ML.TimeSeries.Tests.csproj.
  Restore completed in 14.08 ms for H:\ML.NET\machinelearning-master\tools-local\Microsoft.ML.InternalCodeAnalyzer\Microsoft.ML.InternalCodeAnalyzer.csproj.
  Restore completed in 10.07 ms for H:\ML.NET\machinelearning-master\test\RemoteExecutorConsoleApp\RemoteExecutorConsoleApp.csproj.
  Restore completed in 29.37 ms for H:\ML.NET\machinelearning-master\test\Microsoft.ML.TestFrameworkCommon\Microsoft.ML.TestFrameworkCommon.csproj.
  Restore completed in 83.45 ms for H:\ML.NET\machinelearning-master\test\Microsoft.ML.Tests\Microsoft.ML.Tests.csproj.
  Restore completed in 20.63 ms for H:\ML.NET\machinelearning-master\tools-local\Microsoft.ML.StableApi\Microsoft.ML.StableApi.csproj.
  Building redist components...
  Building native components...
  H:\ML.NET\machinelearning-master\src\Native\build.cmd Debug x64 --mkllibpath H:\ML.NET\machinelearning-master\packages/mlnetmkldeps\0.0.0.9\runtimes\win-x64\native
  **********************************************************************
  ** Visual Studio 2019 Developer Command Prompt v16.4.0-pre.6.0
  ** Copyright (c) 2019 Microsoft Corporation
  **********************************************************************
  **********************************************************************
  ** Visual Studio 2019 Developer Command Prompt v16.4.0-pre.6.0
  ** Copyright (c) 2019 Microsoft Corporation
  **********************************************************************
  [vcvarsall.bat] Environment initialized for: 'x86_x64'
  Commencing native build of dotnet/machinelearning

  Calling "H:\ML.NET\machinelearning-master\src\Native\\gen-buildsys-win.bat" "H:\ML.NET\machinelearning-master\src\Native\" "16 2019" x64
  CMake Warning (dev) in CMakeLists.txt:
    No project() command is present.  The top-level CMakeLists.txt file must
    contain a literal, direct call to the project() command.  Add a line of
    code such as

      project(ProjectName)

    near the top of the file, but after cmake_minimum_required().

    CMake is pretending there is a "project(Project)" command on the first
    line.
  This warning is for project developers.  Use -Wno-dev to suppress it.

  -- The C compiler identification is MSVC 19.24.28314.0
  -- The CXX compiler identification is MSVC 19.24.28314.0
  -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe
  -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe -- works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe
  -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  CMAKE_C_FLAGS_DEBUG is /MDd /Zi /Ob0 /Od /RTC1
  In a future version, if the CMake that ships with VS2019 no longer contains the /ZI flag, delete this message block and the two lines below.
  -- Found OpenMP_C: -openmp (found version "2.0")
  -- Found OpenMP_CXX: -openmp (found version "2.0")
  -- Found OpenMP: TRUE (found version "2.0")
  -- Configuring done
  CMake Error at MatrixFactorizationNative/CMakeLists.txt:28 (add_library):
    Cannot find source file:

      libmf/mf.cpp

    Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
    .hpp .hxx .in .txx


  CMake Error at MatrixFactorizationNative/CMakeLists.txt:28 (add_library):
    No SOURCES given to target: MatrixFactorizationNative


  CMake Generate step failed.  Build files cannot be regenerated correctly.
  Failed to generate native component build project!
H:\ML.NET\machinelearning-master\src\Native\build.proj(67,5): error MSB3073: The command ""H:\ML.NET\machinelearning-master\src\Native\build.cmd" Debug x64 --mkllibpath H:\ML.NET\machinelearning-master\packages/mlnetmkldeps\0.0.0.9\runtimes\win-x64\native" exited with code 1.

Build FAILED.

H:\ML.NET\machinelearning-master\src\Native\build.proj(67,5): error MSB3073: The command ""H:\ML.NET\machinelearning-master\src\Native\build.cmd" Debug x64 --mkllibpath H:\ML.NET\machinelearning-master\packages/mlnetmkldeps\0.0.0.9\runtimes\win-x64\native" exited with code 1.
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:56.68
Command execution failed with exit code 1.
PS H:\ML.NET\machinelearning-master>

Any suggestions will be greatly apprecated.

Charles

@codemzs

This comment has been minimized.

Copy link
Member

@codemzs codemzs commented Nov 30, 2019

Hi @CBrauer It seems the repo does not have LibMF sub module cloned can you please run the below command from machinelearning root:

git submodule update --init --recursive

Also if you are building from Windows please follow developer guide for windows here and make sure to have all necessary prerequisites including C++ extension for Visual Studio.

@codemzs codemzs closed this Nov 30, 2019
@CBrauer

This comment has been minimized.

Copy link
Author

@CBrauer CBrauer commented Dec 1, 2019

You instruction assume that the user of Windows Github Desktop chooses "Open in Desktop". I chose "Download ZIP File", and in this case your instrintions fail.

You need to say that a pre-requize is to create a local repository.

Charles

@codemzs

This comment has been minimized.

Copy link
Member

@codemzs codemzs commented Dec 1, 2019

Our instructions assume you will clone the repo and this is a well-practiced routine on github.

But, I also understand not all users are capable to infer that a github repo needs to be cloned when the “developer guide”(linked in this issue and even on our main page) clearly states “In order to fetch dependencies which come through Git submodules the following command needs to be run before building: git submodule update --init.”

Even if you downloaded the repo it seems you didn’t read that line in developer guide otherwise you would have tried to execute it and figured this out :)

That being said, i’ll enhance our guide with explicit instruction to clone this repo ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.