Hey guys,
does anyone had a problem while building onnxruntime like it or someone knows how to solve it:
[ 25%] Building CXX object CMakeFiles/onnxruntime_util.dir/home/kamil/projects/onnxruntime/onnxruntime/core/util/math_cpu.cc.o
In file included from /home/kamil/projects/onnxruntime/cmake/external/eigen/Eigen/Core:313:0,
from /home/kamil/projects/onnxruntime/onnxruntime/core/util/math_cpuonly.h:31,
from /home/kamil/projects/onnxruntime/onnxruntime/core/util/math_cpu.cc:20:
/home/kamil/projects/onnxruntime/cmake/external/eigen/Eigen/src/Core/products/GeneralBlockPanelKernel.h: In member function ‘void Eigen::internal::gebp_traits<float, float, false, false, 4, 0>::updateRhs(const RhsScalar*, Eigen::internal::gebp_traits<float, float, false, false, 4, 0>::RhsPacketx4&) const’:
/home/kamil/projects/onnxruntime/cmake/external/eigen/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1079:55: error: unused parameter ‘b’ [-Werror=unused-parameter]
EIGEN_STRONG_INLINE void updateRhs(const RhsScalar* b, RhsPacketx4& dest) const
^
/home/kamil/projects/onnxruntime/cmake/external/eigen/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1079:71: error: unused parameter ‘dest’ [-Werror=unused-parameter]
EIGEN_STRONG_INLINE void updateRhs(const RhsScalar* b, RhsPacketx4& dest) const
^~~~
/home/kamil/projects/onnxruntime/cmake/external/eigen/Eigen/src/Core/products/GeneralBlockPanelKernel.h: In member function ‘void Eigen::internal::gebp_traits<double, double, false, false, 4>::updateRhs(const RhsScalar*, Eigen::internal::gebp_traits<double, double, false, false, 4>::RhsPacketx4&) const’:
/home/kamil/projects/onnxruntime/cmake/external/eigen/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1148:55: error: unused parameter ‘b’ [-Werror=unused-parameter]
EIGEN_STRONG_INLINE void updateRhs(const RhsScalar* b, RhsPacketx4& dest) const
^
/home/kamil/projects/onnxruntime/cmake/external/eigen/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1148:71: error: unused parameter ‘dest’ [-Werror=unused-parameter]
EIGEN_STRONG_INLINE void updateRhs(const RhsScalar* b, RhsPacketx4& dest) const
^~~~
cc1plus: all warnings being treated as errors
CMakeFiles/onnxruntime_util.dir/build.make:75: recipe for target ‘CMakeFiles/onnxruntime_util.dir/home/kamil/projects/onnxruntime/onnxruntime/core/util/math_cpu.cc.o’ failed
make[2]: *** [CMakeFiles/onnxruntime_util.dir/home/kamil/projects/onnxruntime/onnxruntime/core/util/math_cpu.cc.o] Error 1
CMakeFiles/Makefile2:609: recipe for target ‘CMakeFiles/onnxruntime_util.dir/all’ failed
make[1]: *** [CMakeFiles/onnxruntime_util.dir/all] Error 2
Makefile:140: recipe for target ‘all’ failed
make: *** [all] Error 2
Traceback (most recent call last):
File “/home/kamil/projects/onnxruntime/tools/ci_build/build.py”, line 983, in
sys.exit(main())
File “/home/kamil/projects/onnxruntime/tools/ci_build/build.py”, line 922, in main
build_targets(cmake_path, build_dir, configs, args.parallel)
File “/home/kamil/projects/onnxruntime/tools/ci_build/build.py”, line 415, in build_targets
run_subprocess(cmd_args)
File “/home/kamil/projects/onnxruntime/tools/ci_build/build.py”, line 200, in run_subprocess
completed_process = subprocess.run(args, cwd=cwd, check=True, stdout=stdout, stderr=stderr, env=my_env, shell=shell)
File “/usr/lib/python3.6/subprocess.py”, line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command ‘[’/usr/local/bin/cmake’, ‘–build’, ‘/home/kamil/projects/onnxruntime/build/Linux/Debug’, ‘–config’, ‘Debug’]’ returned non-zero exit status 2.