Tencent / ncnn

ncnn is a high-performance neural network inference framework optimized for the mobile platform
Other
20.52k stars 4.17k forks source link

ncnn build keep failing #5761

Closed xalteropsx closed 2 weeks ago

xalteropsx commented 3 weeks ago

vs 22


R:\DOWNE\ncnn\ncnn\protobuf_build>cmake --build . --config Release -j 2
Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  caffe2ncnn.vcxproj -> R:\DOWNE\ncnn\ncnn\protobuf_build\tools\caffe\Release\caffe2ncnn.exe
  GenericCodeGen.vcxproj -> R:\DOWNE\ncnn\ncnn\protobuf_build\glslang\glslang\Release\GenericCodeGen.lib
  darknet2ncnn.vcxproj -> R:\DOWNE\ncnn\ncnn\protobuf_build\tools\darknet\Release\darknet2ncnn.exe
  glslang-default-resource-limits.vcxproj -> R:\DOWNE\ncnn\ncnn\protobuf_build\glslang\glslang\Release\glslang-default-resource-limits.lib
  mxnet2ncnn.vcxproj -> R:\DOWNE\ncnn\ncnn\protobuf_build\tools\mxnet\Release\mxnet2ncnn.exe
  OGLCompiler.vcxproj -> R:\DOWNE\ncnn\ncnn\protobuf_build\glslang\OGLCompilersDLL\Release\OGLCompiler.lib
  OSDependent.vcxproj -> R:\DOWNE\ncnn\ncnn\protobuf_build\glslang\glslang\OSDependent\Windows\Release\OSDependent.lib
  ncnnmerge.vcxproj -> R:\DOWNE\ncnn\ncnn\protobuf_build\tools\Release\ncnnmerge.exe
  onnx2ncnn.vcxproj -> R:\DOWNE\ncnn\ncnn\protobuf_build\tools\onnx\Release\onnx2ncnn.exe
  MachineIndependent.vcxproj -> R:\DOWNE\ncnn\ncnn\protobuf_build\glslang\glslang\Release\MachineIndependent.lib
  glslang.vcxproj -> R:\DOWNE\ncnn\ncnn\protobuf_build\glslang\glslang\Release\glslang.lib
  SPIRV.vcxproj -> R:\DOWNE\ncnn\ncnn\protobuf_build\glslang\SPIRV\Release\SPIRV.lib
  batchnorm_x86_fma.cpp
  bias_x86_fma.cpp
  bnll_x86_fma.cpp
  concat_x86_fma.cpp
R:\DOWNE\ncnn\ncnn\protobuf_build\src\layer\x86\concat_x86_fma.cpp(674,47): warning C4267: 'initializing': conversion from 'size_t' to 'int', p
ossible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
  convolution_x86_fma.cpp
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_3x3_winograd.h(2026,47): warning C4267: 'initializing': conversion from 'size_t' to 'int', possibl
e loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_3x3_winograd.h(2026,47): warning C4267: 'initializing': conversion from 'size_t' to 'const int', p
ossible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_3x3_winograd.h(2611,48): warning C4267: 'initializing': conversion from 'size_t' to 'int', possibl
e loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_3x3_winograd.h(2611,48): warning C4267: 'initializing': conversion from 'size_t' to 'const int', p
ossible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_3x3_winograd.h(3390,47): warning C4267: 'initializing': conversion from 'size_t' to 'int', possibl
e loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_3x3_winograd.h(3390,47): warning C4267: 'initializing': conversion from 'size_t' to 'const int', p
ossible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_3x3_winograd.h(4179,48): warning C4267: 'initializing': conversion from 'size_t' to 'int', possibl
e loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_3x3_winograd.h(4179,48): warning C4267: 'initializing': conversion from 'size_t' to 'const int', p
ossible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_3x3_winograd.h(5241,47): warning C4267: 'initializing': conversion from 'size_t' to 'int', possibl
e loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_3x3_winograd.h(5241,47): warning C4267: 'initializing': conversion from 'size_t' to 'const int', p
ossible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_3x3_winograd.h(6250,48): warning C4267: 'initializing': conversion from 'size_t' to 'int', possibl
e loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_3x3_winograd.h(6250,48): warning C4267: 'initializing': conversion from 'size_t' to 'const int', p
ossible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_packed.h(1079,47): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss
 of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_packed.h(1079,47): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possibl
e loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_packed.h(1086,48): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss
 of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_packed.h(1086,48): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possibl
e loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_packed_int8.h(914,47): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible
loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_packed_int8.h(914,47): warning C4267: 'initializing': conversion from 'size_t' to 'const int', pos
sible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_packed_int8.h(2797,51): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible
 loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_packed_int8.h(2797,51): warning C4267: 'initializing': conversion from 'size_t' to 'const int', po
ssible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_packed_int8.h(2798,52): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible
 loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_packed_int8.h(2798,52): warning C4267: 'initializing': conversion from 'size_t' to 'const int', po
ssible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_packed_int8.h(3902,51): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible
 loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_packed_int8.h(3902,51): warning C4267: 'initializing': conversion from 'size_t' to 'const int', po
ssible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_im2col_gemm_int8.h(5739,54): warning C4267: 'initializing': conversion from 'size_t' to 'int', pos
sible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_im2col_gemm_int8.h(5822,72): warning C4267: '=': conversion from 'size_t' to 'int', possible loss
of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_im2col_gemm_int8.h(5826,87): warning C4267: '=': conversion from 'size_t' to 'int', possible loss
of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_3x3_winograd_int8.h(3485,47): warning C4267: 'initializing': conversion from 'size_t' to 'int', po
ssible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_3x3_winograd_int8.h(3485,47): warning C4267: 'initializing': conversion from 'size_t' to 'const in
t', possible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_3x3_winograd_int8.h(3949,48): warning C4267: 'initializing': conversion from 'size_t' to 'int', po
ssible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_3x3_winograd_int8.h(3949,48): warning C4267: 'initializing': conversion from 'size_t' to 'const in
t', possible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_3x3_winograd_int8.h(4701,47): warning C4267: 'initializing': conversion from 'size_t' to 'int', po
ssible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_3x3_winograd_int8.h(4701,47): warning C4267: 'initializing': conversion from 'size_t' to 'const in
t', possible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_3x3_winograd_int8.h(5331,48): warning C4267: 'initializing': conversion from 'size_t' to 'int', po
ssible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\convolution_3x3_winograd_int8.h(5331,48): warning C4267: 'initializing': conversion from 'size_t' to 'const in
t', possible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
  crop_x86_fma.cpp
  deconvolution_x86_fma.cpp
  dropout_x86_fma.cpp
  eltwise_x86_fma.cpp
  elu_x86_fma.cpp
  flatten_x86_fma.cpp
  innerproduct_x86_fma.cpp
  lrn_x86_fma.cpp
  pooling_x86_fma.cpp
  prelu_x86_fma.cpp
  relu_x86_fma.cpp
  reshape_x86_fma.cpp
  scale_x86_fma.cpp
  sigmoid_x86_fma.cpp
  slice_x86_fma.cpp
R:\DOWNE\ncnn\ncnn\protobuf_build\src\layer\x86\slice_x86_fma.cpp(769,44): warning C4267: 'initializing': conversion from 'size_t' to 'int', po
ssible loss of data [R:\DOWNE\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
  Generating Code...
  Compiling...
  softmax_x86_fma.cpp
  tanh_x86_fma.cpp
  lstm_x86_fma.cpp
  binaryop_x86_fma.cpp
  unaryop_x86_fma.cpp
  convolutiondepthwise_x86_fma.cpp
  padding_x86_fma.cpp
  interp_x86_fma.cpp
  deconvolutiondepthwise_x86_fma.cpp
  shufflechannel_x86_fma.cpp
  clip_x86_fma.cpp
  quantize_x86_fma.cpp
  dequantize_x86_fma.cpp
  yolov3detectionoutput_x86_fma.cpp
  roialign_x86_fma.cpp
  packing_x86_fma.cpp
  requantize_x86_fma.cpp
  cast_x86_fma.cpp
R:\DOWNE\ncnn\ncnn\src\layer\x86\cast_fp16.h(59,93): warning C4556: value of intrinsic immediate argument '8' is out of range '0 - 7' [R:\DOWNE
\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
R:\DOWNE\ncnn\ncnn\src\layer\x86\cast_fp16.h(67,90): warning C4556: value of intrinsic immediate argument '8' is out of range '0 - 7' [R:\DOWNE
\ncnn\ncnn\protobuf_build\src\ncnn.vcxproj]
  hardsigmoid_x86_fma.cpp
  selu_x86_fma.cpp
  Generating Code...
R:\DOWNE\ncnn\ncnn\protobuf_build\src\layer\x86\binaryop_x86_fma.cpp(333): fatal error C1001: Internal compiler error. [R:\DOWNE\ncnn\ncnn\prot
obuf_build\src\ncnn.vcxproj]
  (compiler file 'd:\a01\_work\3\s\src\vctools\Compiler\Utc\src\p2\main.c', line 217)
   To work around this problem, try simplifying or changing the program near the locations listed above.
  If possible please provide a repro here: https://developercommunity.visualstudio.com
  Please choose the Technical Support command on the Visual C++
   Help menu, or open the Technical Support help file for more information

and mingw


[ 76%] Building CXX object src/CMakeFiles/ncnn.dir/layer/vulkan/binaryop_vulkan.cpp.obj
binaryop_vulkan.cpp
[ 76%] Building CXX object src/CMakeFiles/ncnn.dir/layer/x86/binaryop_x86_avx512.cpp.obj
binaryop_x86_avx512.cpp
R:\DOWNE\ncnn\ncnn\src\layer\vulkan\binaryop_vulkan.cpp(133): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
R:\DOWNE\ncnn\ncnn\src\layer\vulkan\binaryop_vulkan.cpp(138): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
R:\DOWNE\ncnn\ncnn\src\layer\vulkan\binaryop_vulkan.cpp(143): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
R:\DOWNE\ncnn\ncnn\src\layer\vulkan\binaryop_vulkan.cpp(229): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
R:\DOWNE\ncnn\ncnn\src\layer\vulkan\binaryop_vulkan.cpp(235): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
R:\DOWNE\ncnn\ncnn\src\layer\vulkan\binaryop_vulkan.cpp(241): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
R:\DOWNE\ncnn\ncnn\src\layer\vulkan\binaryop_vulkan.cpp(250): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
R:\DOWNE\ncnn\ncnn\src\layer\vulkan\binaryop_vulkan.cpp(256): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
R:\DOWNE\ncnn\ncnn\src\layer\vulkan\binaryop_vulkan.cpp(262): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
R:\DOWNE\ncnn\ncnn\src\layer\vulkan\binaryop_vulkan.cpp(474): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
R:\DOWNE\ncnn\ncnn\src\layer\vulkan\binaryop_vulkan.cpp(479): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
R:\DOWNE\ncnn\ncnn\src\layer\vulkan\binaryop_vulkan.cpp(484): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
R:\DOWNE\ncnn\ncnn\src\layer\vulkan\binaryop_vulkan.cpp(522): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
R:\DOWNE\ncnn\ncnn\src\layer\vulkan\binaryop_vulkan.cpp(528): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
R:\DOWNE\ncnn\ncnn\src\layer\vulkan\binaryop_vulkan.cpp(534): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
R:\DOWNE\ncnn\ncnn\src\layer\vulkan\binaryop_vulkan.cpp(586): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
R:\DOWNE\ncnn\ncnn\src\layer\vulkan\binaryop_vulkan.cpp(592): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
R:\DOWNE\ncnn\ncnn\src\layer\vulkan\binaryop_vulkan.cpp(598): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
R:\DOWNE\ncnn\ncnn\src\layer\vulkan\binaryop_vulkan.cpp(642): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
[ 76%] Building CXX object src/CMakeFiles/ncnn.dir/layer/x86/binaryop_x86_fma.cpp.obj
binaryop_x86_fma.cpp
[ 76%] Building CXX object src/CMakeFiles/ncnn.dir/layer/x86/binaryop_x86_avx.cpp.obj
binaryop_x86_avx.cpp
R:\DOWNE\ncnn\ncnn\protobuf_build\src\layer\x86\binaryop_x86_fma.cpp(333) : fatal error C1001: Internal compiler error.
(compiler file 'd:\a01\_work\3\s\src\vctools\Compiler\Utc\src\p2\main.c', line 217)
 To work around this problem, try simplifying or changing the program near the locations listed above.
If possible please provide a repro here: https://developercommunity.visualstudio.com
Please choose the Technical Support command on the Visual C++
 Help menu, or open the Technical Support help file for more information

mingw32-make[2]: *** [src\CMakeFiles\ncnn.dir\build.make:4035: src/CMakeFiles/ncnn.dir/layer/x86/binaryop_x86_fma.cpp.obj] Error -1073741819
mingw32-make[2]: *** Deleting file 'src/CMakeFiles/ncnn.dir/layer/x86/binaryop_x86_fma.cpp.obj'
mingw32-make[2]: *** Waiting for unfinished jobs....
R:\DOWNE\ncnn\ncnn\protobuf_build\src\layer\x86\binaryop_x86_avx.cpp(333) : fatal error C1001: Internal compiler error.
(compiler file 'd:\a01\_work\3\s\src\vctools\Compiler\Utc\src\p2\main.c', line 217)
 To work around this problem, try simplifying or changing the program near the locations listed above.
If possible please provide a repro here: https://developercommunity.visualstudio.com
Please choose the Technical Support command on the Visual C++
 Help menu, or open the Technical Support help file for more information

mingw32-make[2]: *** [src\CMakeFiles\ncnn.dir\build.make:4049: src/CMakeFiles/ncnn.dir/layer/x86/binaryop_x86_avx.cpp.obj] Error -1073741819
mingw32-make[2]: *** Deleting file 'src/CMakeFiles/ncnn.dir/layer/x86/binaryop_x86_avx.cpp.obj'
mingw32-make[1]: *** [CMakeFiles\Makefile2:613: src/CMakeFiles/ncnn.dir/all] Error 2
mingw32-make: *** [Makefile:123: all] Error 2
wzyforgit commented 3 weeks ago

See https://github.com/Tencent/ncnn/blob/master/docs/how-to-build/how-to-build.md#build-for-windows-x64-using-visual-studio-community-2017 And ncnn don't support mingw32 yet, use mingw-w64

xalteropsx commented 3 weeks ago

will check bro but i did use mingw 64 will check again brb between many thanks for always helping me