ucbrise / piranha

Piranha: A GPU Platform for Secure Computation
MIT License
89 stars 25 forks source link

value #16

Open waiwaiponchi opened 10 months ago

waiwaiponchi commented 10 months ago

colabで実行すると,makeする際,valueの値を用いているためmake出来ないとエラーがでた.以下にエラーの文の一部を出力する.

/usr/local/cuda/bin/nvcc -dc -Xcompiler="-O3,-w,-std=c++14,-pthread,-msse4.1,-maes,-msse2,-mpclmul,-fpermissive,-fpic,-pthread" -Xcudafe "--diag_suppress=declared_but_not_referenced" -Xcompiler="-DFLOAT_PRECISION=8 -DTWOPC" -c src/main.cu -o build/main.o -I '/usr/local/cuda-11.5/include' -I 'ext/cutlass/include' -I 'ext/cutlass/tools/util/include' -I 'include' /usr/local/cuda/bin/nvcc -dc -Xcompiler="-O3,-w,-std=c++14,-pthread,-msse4.1,-maes,-msse2,-mpclmul,-fpermissive,-fpic,-pthread" -Xcudafe "--diag_suppress=declared_but_not_referenced" -Xcompiler="-DFLOAT_PRECISION=8 -DTWOPC" -c src/nn/AveragepoolLayer.cu -o build/AveragepoolLayer.o -I '/usr/local/cuda-11.5/include' -I 'ext/cutlass/include' -I 'ext/cutlass/tools/util/include' -I 'include' /usr/local/cuda/bin/nvcc -dc -Xcompiler="-O3,-w,-std=c++14,-pthread,-msse4.1,-maes,-msse2,-mpclmul,-fpermissive,-fpic,-pthread" -Xcudafe "--diag_suppress=declared_but_not_referenced" -Xcompiler="-DFLOAT_PRECISION=8 -DTWOPC" -c src/nn/CNNLayer.cu -o build/CNNLayer.o -I '/usr/local/cuda-11.5/include' -I 'ext/cutlass/include' -I 'ext/cutlass/tools/util/include' -I 'include' /usr/local/cuda/bin/nvcc -dc -Xcompiler="-O3,-w,-std=c++14,-pthread,-msse4.1,-maes,-msse2,-mpclmul,-fpermissive,-fpic,-pthread" -Xcudafe "--diag_suppress=declared_but_not_referenced" -Xcompiler="-DFLOAT_PRECISION=8 -DTWOPC" -c src/nn/FCLayer.cu -o build/FCLayer.o -I '/usr/local/cuda-11.5/include' -I 'ext/cutlass/include' -I 'ext/cutlass/tools/util/include' -I 'include' /usr/local/cuda/bin/nvcc -dc -Xcompiler="-O3,-w,-std=c++14,-pthread,-msse4.1,-maes,-msse2,-mpclmul,-fpermissive,-fpic,-pthread" -Xcudafe "--diag_suppress=declared_but_not_referenced" -Xcompiler="-DFLOAT_PRECISION=8 -DTWOPC" -c src/nn/LNLayer.cu -o build/LNLayer.o -I '/usr/local/cuda-11.5/include' -I 'ext/cutlass/include' -I 'ext/cutlass/tools/util/include' -I 'include' /usr/local/cuda/bin/nvcc -dc -Xcompiler="-O3,-w,-std=c++14,-pthread,-msse4.1,-maes,-msse2,-mpclmul,-fpermissive,-fpic,-pthread" -Xcudafe "--diag_suppress=declared_but_not_referenced" -Xcompiler="-DFLOAT_PRECISION=8 -DTWOPC" -c src/nn/MaxpoolLayer.cu -o build/MaxpoolLayer.o -I '/usr/local/cuda-11.5/include' -I 'ext/cutlass/include' -I 'ext/cutlass/tools/util/include' -I 'include' /usr/local/cuda/bin/nvcc -dc -Xcompiler="-O3,-w,-std=c++14,-pthread,-msse4.1,-maes,-msse2,-mpclmul,-fpermissive,-fpic,-pthread" -Xcudafe "--diag_suppress=declared_but_not_referenced" -Xcompiler="-DFLOAT_PRECISION=8 -DTWOPC" -c src/nn/NeuralNetwork.cu -o build/NeuralNetwork.o -I '/usr/local/cuda-11.5/include' -I 'ext/cutlass/include' -I 'ext/cutlass/tools/util/include' -I 'include' /usr/local/cuda/bin/nvcc -dc -Xcompiler="-O3,-w,-std=c++14,-pthread,-msse4.1,-maes,-msse2,-mpclmul,-fpermissive,-fpic,-pthread" -Xcudafe "--diag_suppress=declared_but_not_referenced" -Xcompiler="-DFLOAT_PRECISION=8 -DTWOPC" -c src/nn/ReLULayer.cu -o build/ReLULayer.o -I '/usr/local/cuda-11.5/include' -I 'ext/cutlass/include' -I 'ext/cutlass/tools/util/include' -I 'include' /usr/include/c++/11/type_traits:79:52: error: redefinition of ‘constexpr const _Tp std::integral_constant<_Tp, v>::value’ 79 | template<typename _Tp, _Tp v> | ^
/usr/include/c++/11/type_traits:67:29: note: ‘constexpr const _Tp value’ previously declared here 67 | static constexpr _Tp value = v; | ^~~~~ /usr/include/c++/11/type_traits:79:52: error: redefinition of ‘constexpr const _Tp std::integral_constant<_Tp, v>::value’ 79 | template<typename _Tp, _Tp v> | ^
/usr/include/c++/11/type_traits:67:29: note: ‘constexpr const _Tp value’ previously declared here 67 | static constexpr _Tp value = __v; | ^~~~~ include/json.hpp:3176:39: error: redefinition of ‘constexpr const T nlohmann::detail::static_const::value’ 3176 | template | ^
include/json.hpp:3173:27: note: ‘constexpr const T nlohmann::detail::static_const::value’ previously declared here 3173 | static constexpr T value{}; | ^~~~~ include/json.hpp:3176:39: error: redefinition of ‘constexpr const T nlohmann::detail::static_const::value’ 3176 | template | ^
include/json.hpp:3173:27: note: ‘constexpr const T nlohmann::detail::static_const::value’ previously declared here 3173 | static constexpr T value{}; | ^~~~~ /usr/include/c++/11/ratio:282:67: error: redefinition of ‘constexpr const intmax_t std::ratio<_Num, _Den>::num’ 282 | template<intmax_t _Num, intmax_t _Den> | ^
/usr/include/c++/11/ratio:273:34: note: ‘constexpr const intmax_t std::ratio<_Num, _Den>::num’ previously declared here 273 | static constexpr intmax_t num = | ^~~ /usr/include/c++/11/ratio:285:67: error: redefinition of ‘constexpr const intmax_t std::ratio<_Num, _Den>::den’ 285 | template<intmax_t _Num, intmax_t _Den> | ^
/usr/include/c++/11/ratio:276:34: note: ‘constexpr const intmax_t std::ratio<_Num, _Den>::den’ previously declared here 276 | static constexpr intmax_t den = | ^~~ /usr/include/c++/11/ratio:310:59: error: redefinition of ‘constexpr const intmax_t std::
ratio_multiply<_R1, _R2>::num’ 310 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:306:34: note: ‘constexpr const intmax_t std::ratio_multiply<_R1, _R2>::num’ previously declared here 306 | static constexpr intmax_t num = type::num; | ^~~ /usr/include/c++/11/ratio:313:59: error: redefinition of ‘constexpr const intmax_t std::ratio_multiply<_R1, _R2>::den’ 313 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:307:34: note: ‘constexpr const intmax_t std::
ratio_multiply<_R1, _R2>::den’ previously declared here 307 | static constexpr intmax_t den = type::den; | ^~~ /usr/include/c++/11/ratio:337:59: error: redefinition of ‘constexpr const intmax_t std::
ratio_divide<_R1, _R2>::num’ 337 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:333:34: note: ‘constexpr const intmax_t std::ratio_divide<_R1, _R2>::num’ previously declared here 333 | static constexpr intmax_t num = type::num; | ^~~ /usr/include/c++/11/ratio:340:59: error: redefinition of ‘constexpr const intmax_t std::ratio_divide<_R1, _R2>::den’ 340 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:334:34: note: ‘constexpr const intmax_t std::
ratio_divide<_R1, _R2>::den’ previously declared here 334 | static constexpr intmax_t den = type::den; | ^~~ /usr/include/c++/11/ratio:515:59: error: redefinition of ‘constexpr const intmax_t std::
ratio_add<_R1, _R2>::num’ 515 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:511:34: note: ‘constexpr const intmax_t std::ratio_add<_R1, _R2>::num’ previously declared here 511 | static constexpr intmax_t num = type::num; | ^~~ /usr/include/c++/11/ratio:518:59: error: redefinition of ‘constexpr const intmax_t std::ratio_add<_R1, _R2>::den’ 518 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:512:34: note: ‘constexpr const intmax_t std::
ratio_add<_R1, _R2>::den’ previously declared here 512 | static constexpr intmax_t den = type::den; | ^~~ /usr/include/c++/11/ratio:540:59: error: redefinition of ‘constexpr const intmax_t std::
ratio_subtract<_R1, _R2>::num’ 540 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:536:34: note: ‘constexpr const intmax_t std::ratio_subtract<_R1, _R2>::num’ previously declared here 536 | static constexpr intmax_t num = type::num; | ^~~ /usr/include/c++/11/ratio:543:59: error: redefinition of ‘constexpr const intmax_t std::ratio_subtract<_R1, _R2>::den’ 543 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:537:34: note: ‘constexpr const intmax_t std::
ratio_subtract<_R1, _R2>::den’ previously declared here 537 | static constexpr intmax_t den = type::den; | ^~~ /usr/include/c++/11/ratio:282:67: error: redefinition of ‘constexpr const intmax_t std::ratio<_Num, _Den>::num’ 282 | template<intmax_t _Num, intmax_t _Den> | ^
/usr/include/c++/11/ratio:273:34: note: ‘constexpr const intmax_t std::ratio<_Num, _Den>::num’ previously declared here 273 | static constexpr intmax_t num = | ^~~ /usr/include/c++/11/ratio:285:67: error: redefinition of ‘constexpr const intmax_t std::ratio<_Num, _Den>::den’ 285 | template<intmax_t _Num, intmax_t _Den> | ^
/usr/include/c++/11/ratio:276:34: note: ‘constexpr const intmax_t std::ratio<_Num, _Den>::den’ previously declared here 276 | static constexpr intmax_t den = | ^~~ /usr/include/c++/11/ratio:310:59: error: redefinition of ‘constexpr const intmax_t std::
ratio_multiply<_R1, _R2>::num’ 310 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:306:34: note: ‘constexpr const intmax_t std::ratio_multiply<_R1, _R2>::num’ previously declared here 306 | static constexpr intmax_t num = type::num; | ^~~ /usr/include/c++/11/ratio:313:59: error: redefinition of ‘constexpr const intmax_t std::ratio_multiply<_R1, _R2>::den’ 313 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:307:34: note: ‘constexpr const intmax_t std::
ratio_multiply<_R1, _R2>::den’ previously declared here 307 | static constexpr intmax_t den = type::den; | ^~~ /usr/include/c++/11/ratio:337:59: error: redefinition of ‘constexpr const intmax_t std::
ratio_divide<_R1, _R2>::num’ 337 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:333:34: note: ‘constexpr const intmax_t std::ratio_divide<_R1, _R2>::num’ previously declared here 333 | static constexpr intmax_t num = type::num; | ^~~ /usr/include/c++/11/ratio:340:59: error: redefinition of ‘constexpr const intmax_t std::ratio_divide<_R1, _R2>::den’ 340 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:334:34: note: ‘constexpr const intmax_t std::
ratio_divide<_R1, _R2>::den’ previously declared here 334 | static constexpr intmax_t den = type::den; | ^~~ /usr/include/c++/11/ratio:515:59: error: redefinition of ‘constexpr const intmax_t std::
ratio_add<_R1, _R2>::num’ 515 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:511:34: note: ‘constexpr const intmax_t std::ratio_add<_R1, _R2>::num’ previously declared here 511 | static constexpr intmax_t num = type::num; | ^~~ /usr/include/c++/11/ratio:518:59: error: redefinition of ‘constexpr const intmax_t std::ratio_add<_R1, _R2>::den’ 518 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:512:34: note: ‘constexpr const intmax_t std::
ratio_add<_R1, _R2>::den’ previously declared here 512 | static constexpr intmax_t den = type::den; | ^~~ /usr/include/c++/11/ratio:540:59: error: redefinition of ‘constexpr const intmax_t std::
ratio_subtract<_R1, _R2>::num’ 540 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:536:34: note: ‘constexpr const intmax_t std::ratio_subtract<_R1, _R2>::num’ previously declared here 536 | static constexpr intmax_t num = type::num; | ^~~ /usr/include/c++/11/ratio:543:59: error: redefinition of ‘constexpr const intmax_t std::ratio_subtract<_R1, _R2>::den’ 543 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:537:34: note: ‘constexpr const intmax_t std::
ratio_subtract<_R1, _R2>::den’ previously declared here 537 | static constexpr intmax_t den = type::den; | ^~~ include/gtest/internal/gtest-internal.h:904:42: error: redefinition of ‘constexpr const bool testing::internal::HasDebugStringAndShortDebugString::value’ 904 | template | ^
include/gtest/internal/gtest-internal.h:899:38: note: ‘constexpr const bool testing::internal::HasDebugStringAndShortDebugString::value’ previously declared here 899 | static constexpr bool value = | ^
include/gtest/internal/gtest-internal.h:904:42: error: redefinition of ‘constexpr const bool testing::internal::HasDebugStringAndShortDebugString::value’ 904 | template | ^
include/gtest/internal/gtest-internal.h:899:38: note: ‘constexpr const bool testing::internal::HasDebugStringAndShortDebugString::value’ previously declared here 899 | static constexpr bool value = | ^
/usr/include/c++/11/type_traits:79:52: error: redefinition of ‘constexpr const _Tp std::integral_constant<_Tp, v>::value’ 79 | template<typename _Tp, _Tp v> | ^
/usr/include/c++/11/type_traits:67:29: note: ‘constexpr const _Tp value’ previously declared here 67 | static constexpr _Tp value =
v; | ^~~~~ /usr/include/c++/11/type_traits:79:52: error: redefinition of ‘constexpr const _Tp std::integral_constant<_Tp, v>::value’ 79 | template<typename _Tp, _Tp v> | ^
/usr/include/c++/11/type_traits:67:29: note: ‘constexpr const _Tp value’ previously declared here 67 | static constexpr _Tp value = v; | ^~~~~ include/json.hpp:3176:39: error: redefinition of ‘constexpr const T nlohmann::detail::static_const::value’ 3176 | template | ^
include/json.hpp:3173:27: note: ‘constexpr const T nlohmann::detail::static_const::value’ previously declared here 3173 | static constexpr T value{}; | ^~~~~ /usr/include/c++/11/ratio:282:67: error: redefinition of ‘constexpr const intmax_t std::ratio<_Num, _Den>::num’ 282 | template<intmax_t _Num, intmax_t _Den> | ^
/usr/include/c++/11/ratio:273:34: note: ‘constexpr const intmax_t std::ratio<_Num, _Den>::num’ previously declared here 273 | static constexpr intmax_t num = | ^~~ /usr/include/c++/11/ratio:285:67: error: redefinition of ‘constexpr const intmax_t std::ratio<_Num, _Den>::den’ 285 | template<intmax_t _Num, intmax_t _Den> | ^
/usr/include/c++/11/ratio:276:34: note: ‘constexpr const intmax_t std::ratio<_Num, _Den>::den’ previously declared here 276 | static constexpr intmax_t den = | ^~~ /usr/include/c++/11/ratio:310:59: error: redefinition of ‘constexpr const intmax_t std::ratio_multiply<_R1, _R2>::num’ 310 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:306:34: note: ‘constexpr const intmax_t std::
ratio_multiply<_R1, _R2>::num’ previously declared here 306 | static constexpr intmax_t num = type::num; | ^~~ /usr/include/c++/11/ratio:313:59: error: redefinition of ‘constexpr const intmax_t std::
ratio_multiply<_R1, _R2>::den’ 313 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:307:34: note: ‘constexpr const intmax_t std::ratio_multiply<_R1, _R2>::den’ previously declared here 307 | static constexpr intmax_t den = type::den; | ^~~ /usr/include/c++/11/ratio:337:59: error: redefinition of ‘constexpr const intmax_t std::ratio_divide<_R1, _R2>::num’ 337 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:333:34: note: ‘constexpr const intmax_t std::
ratio_divide<_R1, _R2>::num’ previously declared here 333 | static constexpr intmax_t num = type::num; | ^~~ /usr/include/c++/11/ratio:340:59: error: redefinition of ‘constexpr const intmax_t std::
ratio_divide<_R1, _R2>::den’ 340 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:334:34: note: ‘constexpr const intmax_t std::ratio_divide<_R1, _R2>::den’ previously declared here 334 | static constexpr intmax_t den = type::den; | ^~~ /usr/include/c++/11/ratio:515:59: error: redefinition of ‘constexpr const intmax_t std::ratio_add<_R1, _R2>::num’ 515 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:511:34: note: ‘constexpr const intmax_t std::
ratio_add<_R1, _R2>::num’ previously declared here 511 | static constexpr intmax_t num = type::num; | ^~~ /usr/include/c++/11/ratio:518:59: error: redefinition of ‘constexpr const intmax_t std::
ratio_add<_R1, _R2>::den’ 518 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:512:34: note: ‘constexpr const intmax_t std::ratio_add<_R1, _R2>::den’ previously declared here 512 | static constexpr intmax_t den = type::den; | ^~~ /usr/include/c++/11/ratio:540:59: error: redefinition of ‘constexpr const intmax_t std::ratio_subtract<_R1, _R2>::num’ 540 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:536:34: note: ‘constexpr const intmax_t std::
ratio_subtract<_R1, _R2>::num’ previously declared here 536 | static constexpr intmax_t num = type::num; | ^~~ /usr/include/c++/11/ratio:543:59: error: redefinition of ‘constexpr const intmax_t std::
ratio_subtract<_R1, _R2>::den’ 543 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:537:34: note: ‘constexpr const intmax_t std::ratio_subtract<_R1, _R2>::den’ previously declared here 537 | static constexpr intmax_t den = type::den; | ^~~ include/json.hpp:3176:39: error: redefinition of ‘constexpr const T nlohmann::detail::static_const::value’ 3176 | template | ^
include/json.hpp:3173:27: note: ‘constexpr const T nlohmann::detail::static_const::value’ previously declared here 3173 | static constexpr T value{}; | ^~~~~ /usr/include/c++/11/ratio:282:67: error: redefinition of ‘constexpr const intmax_t std::ratio<_Num, _Den>::num’ 282 | template<intmax_t _Num, intmax_t _Den> | ^
/usr/include/c++/11/ratio:273:34: note: ‘constexpr const intmax_t std::ratio<_Num, _Den>::num’ previously declared here 273 | static constexpr intmax_t num = | ^~~ /usr/include/c++/11/ratio:285:67: error: redefinition of ‘constexpr const intmax_t std::ratio<_Num, _Den>::den’ 285 | template<intmax_t _Num, intmax_t _Den> | ^
/usr/include/c++/11/ratio:276:34: note: ‘constexpr const intmax_t std::ratio<_Num, _Den>::den’ previously declared here 276 | static constexpr intmax_t den = | ^~~ /usr/include/c++/11/ratio:310:59: error: redefinition of ‘constexpr const intmax_t std::ratio_multiply<_R1, _R2>::num’ 310 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:306:34: note: ‘constexpr const intmax_t std::
ratio_multiply<_R1, _R2>::num’ previously declared here 306 | static constexpr intmax_t num = type::num; | ^~~ /usr/include/c++/11/ratio:313:59: error: redefinition of ‘constexpr const intmax_t std::
ratio_multiply<_R1, _R2>::den’ 313 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:307:34: note: ‘constexpr const intmax_t std::ratio_multiply<_R1, _R2>::den’ previously declared here 307 | static constexpr intmax_t den = type::den; | ^~~ /usr/include/c++/11/ratio:337:59: error: redefinition of ‘constexpr const intmax_t std::ratio_divide<_R1, _R2>::num’ 337 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:333:34: note: ‘constexpr const intmax_t std::
ratio_divide<_R1, _R2>::num’ previously declared here 333 | static constexpr intmax_t num = type::num; | ^~~ /usr/include/c++/11/ratio:340:59: error: redefinition of ‘constexpr const intmax_t std::
ratio_divide<_R1, _R2>::den’ 340 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:334:34: note: ‘constexpr const intmax_t std::ratio_divide<_R1, _R2>::den’ previously declared here 334 | static constexpr intmax_t den = type::den; | ^~~ /usr/include/c++/11/ratio:515:59: error: redefinition of ‘constexpr const intmax_t std::ratio_add<_R1, _R2>::num’ 515 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:511:34: note: ‘constexpr const intmax_t std::
ratio_add<_R1, _R2>::num’ previously declared here 511 | static constexpr intmax_t num = type::num; | ^~~ /usr/include/c++/11/ratio:518:59: error: redefinition of ‘constexpr const intmax_t std::
ratio_add<_R1, _R2>::den’ 518 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:512:34: note: ‘constexpr const intmax_t std::ratio_add<_R1, _R2>::den’ previously declared here 512 | static constexpr intmax_t den = type::den; | ^~~ /usr/include/c++/11/ratio:540:59: error: redefinition of ‘constexpr const intmax_t std::ratio_subtract<_R1, _R2>::num’ 540 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:536:34: note: ‘constexpr const intmax_t std::
ratio_subtract<_R1, _R2>::num’ previously declared here 536 | static constexpr intmax_t num = type::num; | ^~~ /usr/include/c++/11/ratio:543:59: error: redefinition of ‘constexpr const intmax_t std::
ratio_subtract<_R1, _R2>::den’ 543 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:537:34: note: ‘constexpr const intmax_t std::ratio_subtract<_R1, _R2>::den’ previously declared here 537 | static constexpr intmax_t den = type::den; | ^~~ include/gtest/internal/gtest-internal.h:904:42: error: redefinition of ‘constexpr const bool testing::internal::HasDebugStringAndShortDebugString::value’ 904 | template | ^
include/gtest/internal/gtest-internal.h:899:38: note: ‘constexpr const bool testing::internal::HasDebugStringAndShortDebugString::value’ previously declared here 899 | static constexpr bool value = | ^
include/gtest/internal/gtest-internal.h:904:42: error: redefinition of ‘constexpr const bool testing::internal::HasDebugStringAndShortDebugString::value’ 904 | template | ^
include/gtest/internal/gtest-internal.h:899:38: note: ‘constexpr const bool testing::internal::HasDebugStringAndShortDebugString::value’ previously declared here 899 | static constexpr bool value = | ^
make: [Makefile:46: build/AveragepoolLayer.o] Error 1 make: Waiting for unfinished jobs.... make: *** [Makefile:46: build/LNLayer.o] Error 1 /usr/include/c++/11/bits/random.tcc:94:100: error: redefinition of ‘constexpr const _UIntType std::linear_congruential_engine<_UIntType,
a, c, m>::multiplier’ 94 | template<typename _UIntType, _UIntType a, _UIntType __c, _UIntType m> | ^
/usr/include/c++/11/bits/random.h:271:37: note: ‘constexpr const result_type multiplier’ previously declared here 271 | static constexpr result_type multiplier = a; | ^~~~~~ /usr/include/c++/11/bits/random.tcc:98:100: error: redefinition of ‘constexpr const _UIntType std::linear_congruential_engine<_UIntType, a, c, m>::increment’ 98 | template<typename _UIntType, _UIntType a, _UIntType __c, _UIntType m> | ^
/usr/include/c++/11/bits/random.h:273:37: note: ‘constexpr const result_type increment’ previously declared here 273 | static constexpr result_type increment = c; | ^~~~~ /usr/include/c++/11/bits/random.tcc:102:100: error: redefinition of ‘constexpr const _UIntType std::linear_congruential_engine<_UIntType, a, c, m>::modulus’ 102 | template<typename _UIntType, _UIntType a, _UIntType __c, _UIntType m> | ^
/usr/include/c++/11/bits/random.h:275:37: note: ‘constexpr const result_type modulus’ previously declared here 275 | static constexpr result_type modulus = m; | ^~~ /usr/include/c++/11/bits/random.tcc:106:100: error: redefinition of ‘constexpr const _UIntType std::linear_congruential_engine<_UIntType, a, c, m>::default_seed’ 106 | template<typename _UIntType, _UIntType a, _UIntType __c, _UIntType m> | ^
/usr/include/c++/11/bits/random.h:276:37: note: ‘constexpr const result_type std::linear_congruential_engine<_UIntType, a, c, m>::default_seed’ previously declared here 276 | static constexpr result_type default_seed = 1u; | ^~~~ /usr/include/c++/11/bits/random.tcc:190:1: error: redefinition of ‘constexpr const size_t std::mersenne_twister_engine<_UIntType, w, n, m, r, a, u, d, s, b, t, c, l, f>::word_size’ 190 | template<typename _UIntType, | ^ ~~~~~~~~
/usr/include/c++/11/bits/random.h:510:32: note: ‘constexpr const size_t word_size’ previously declared here 510 | static constexpr size_t word_size =
w; | ^~~~~ /usr/include/c++/11/bits/random.tcc:199:1: error: redefinition of ‘constexpr const size_t std::mersenne_twister_engine<_UIntType, w, n, m, r, a, u, d, s, b, t, c, l, f>::state_size’ 199 | template<typename _UIntType, | ^ ~~~~~~~~
/usr/include/c++/11/bits/random.h:511:32: note: ‘constexpr const size_t state_size’ previously declared here 511 | static constexpr size_t state_size =
n; | ^~~~~~ /usr/include/c++/11/bits/random.tcc:208:1: error: redefinition of ‘constexpr const size_t std::mersenne_twister_engine<_UIntType, w, n, m, r, a, u, d, s, b, t, c, l, f>::shift_size’ 208 | template<typename _UIntType, | ^ ~~~~~~~~
/usr/include/c++/11/bits/random.h:512:32: note: ‘constexpr const size_t shift_size’ previously declared here 512 | static constexpr size_t shift_size =
m; | ^~~~~~ /usr/include/c++/11/bits/random.tcc:217:1: error: redefinition of ‘constexpr const size_t std::mersenne_twister_engine<_UIntType, w, n, m, r, a, u, d, s, b, t, c, l, f>::mask_bits’ 217 | template<typename _UIntType, | ^ ~~~~~~~~
/usr/include/c++/11/bits/random.h:513:32: note: ‘constexpr const size_t mask_bits’ previously declared here 513 | static constexpr size_t mask_bits =
r; | ^~~~~ /usr/include/c++/11/bits/random.tcc:226:1: error: redefinition of ‘constexpr const _UIntType std::mersenne_twister_engine<_UIntType, w, n, m, r, a, u, d, s, b, t, c, l, f>::xor_mask’ 226 | template<typename _UIntType, | ^ ~~~~~~~~
/usr/include/c++/11/bits/random.h:514:37: note: ‘constexpr const result_type xor_mask’ previously declared here 514 | static constexpr result_type xor_mask =
a; | ^~~~ /usr/include/c++/11/bits/random.tcc:235:1: error: redefinition of ‘constexpr const size_t std::mersenne_twister_engine<_UIntType, w, n, m, r, a, u, d, s, b, t, c, l, f>::tempering_u’ 235 | template<typename _UIntType, | ^ ~~~~~~~~
/usr/include/c++/11/bits/random.h:515:32: note: ‘constexpr const size_t tempering_u’ previously declared here 515 | static constexpr size_t tempering_u =
u; | ^~~ /usr/include/c++/11/bits/random.tcc:244:1: error: redefinition of ‘constexpr const _UIntType std::mersenne_twister_engine<_UIntType, w, n, m, r, a, u, d, s, b, t, c, l, f>::tempering_d’ 244 | template<typename _UIntType, | ^ ~~~~~~~~
/usr/include/c++/11/bits/random.h:516:37: note: ‘constexpr const result_type tempering_d’ previously declared here 516 | static constexpr result_type tempering_d =
d; | ^~~ /usr/include/c++/11/bits/random.tcc:253:1: error: redefinition of ‘constexpr const size_t std::mersenne_twister_engine<_UIntType, w, n, m, r, a, u, d, s, b, t, c, l, f>::tempering_s’ 253 | template<typename _UIntType, | ^ ~~~~~~~~
/usr/include/c++/11/bits/random.h:517:32: note: ‘constexpr const size_t tempering_s’ previously declared here 517 | static constexpr size_t tempering_s =
s; | ^~~ /usr/include/c++/11/bits/random.tcc:262:1: error: redefinition of ‘constexpr const _UIntType std::mersenne_twister_engine<_UIntType, w, n, m, r, a, u, d, s, b, t, c, l, f>::tempering_b’ 262 | template<typename _UIntType, | ^ ~~~~~~~~
/usr/include/c++/11/bits/random.h:518:37: note: ‘constexpr const result_type tempering_b’ previously declared here 518 | static constexpr result_type tempering_b =
b; | ^~~ /usr/include/c++/11/bits/random.tcc:271:1: error: redefinition of ‘constexpr const size_t std::mersenne_twister_engine<_UIntType, w, n, m, r, a, u, d, s, b, t, c, l, f>::tempering_t’ 271 | template<typename _UIntType, | ^ ~~~~~~~~
/usr/include/c++/11/bits/random.h:519:32: note: ‘constexpr const size_t tempering_t’ previously declared here 519 | static constexpr size_t tempering_t =
t; | ^~~ /usr/include/c++/11/bits/random.tcc:280:1: error: redefinition of ‘constexpr const _UIntType std::mersenne_twister_engine<_UIntType, w, n, m, r, a, u, d, s, b, t, c, l, f>::tempering_c’ 280 | template<typename _UIntType, | ^ ~~~~~~~~
/usr/include/c++/11/bits/random.h:520:37: note: ‘constexpr const result_type tempering_c’ previously declared here 520 | static constexpr result_type tempering_c =
c; | ^~~ /usr/include/c++/11/bits/random.tcc:289:1: error: redefinition of ‘constexpr const size_t std::mersenne_twister_engine<_UIntType, w, n, m, r, a, u, d, s, b, t, c, l, f>::tempering_l’ 289 | template<typename _UIntType, | ^ ~~~~~~~~
/usr/include/c++/11/bits/random.h:521:32: note: ‘constexpr const size_t tempering_l’ previously declared here 521 | static constexpr size_t tempering_l =
l; | ^~~ /usr/include/c++/11/bits/random.tcc:298:1: error: redefinition of ‘constexpr const _UIntType std::mersenne_twister_engine<_UIntType, w, n, m, r, a, u, d, s, b, t, c, l, f>::initialization_multiplier’ 298 | template<typename _UIntType, | ^ ~~~~~~~~
/usr/include/c++/11/bits/random.h:522:37: note: ‘constexpr const result_type initialization_multiplier’ previously declared here 522 | static constexpr result_type initialization_multiplier =
f; | ^~~~~~~~~ /usr/include/c++/11/bits/random.tcc:308:1: error: redefinition of ‘constexpr const _UIntType std::mersenne_twister_engine<_UIntType, w, n, m, r, a, u, d, s, b, t, c, l, f>::default_seed’ 308 | template<typename _UIntType, | ^ ~~~~~~~~
/usr/include/c++/11/bits/random.h:523:37: note: ‘constexpr const result_type std::mersenne_twister_engine<_UIntType,
w, n, m, r, a, u, d, s, b, t, c, l, f>::default_seed’ previously declared here 523 | static constexpr result_type default_seed = 5489u; | ^~~~ /usr/include/c++/11/bits/random.tcc:519:88: error: redefinition of ‘constexpr const size_t std::subtract_with_carry_engine<_UIntType, w, s, __r>::word_size’ 519 | template<typename _UIntType, size_t
w, size_t s, size_t r> | ^
/usr/include/c++/11/bits/random.h:710:32: note: ‘constexpr const size_t word_size’ previously declared here 710 | static constexpr size_t word_size =
w; | ^~~~~ /usr/include/c++/11/bits/random.tcc:523:88: error: redefinition of ‘constexpr const size_t std::subtract_with_carry_engine<_UIntType,
w, s, r>::short_lag’ 523 | template<typename _UIntType, size_t w, size_t __s, size_t r> | ^
/usr/include/c++/11/bits/random.h:711:32: note: ‘constexpr const size_t short_lag’ previously declared here 711 | static constexpr size_t short_lag = s; | ^~~~~ /usr/include/c++/11/bits/random.tcc:527:88: error: redefinition of ‘constexpr const size_t std::subtract_with_carry_engine<_UIntType, w, s, __r>::long_lag’ 527 | template<typename _UIntType, size_t w, size_t s, size_t r> | ^
/usr/include/c++/11/bits/random.h:712:32: note: ‘constexpr const size_t long_lag’ previously declared here 712 | static constexpr size_t long_lag =
r; | ^~~~ /usr/include/c++/11/bits/random.tcc:531:91: error: redefinition of ‘constexpr const _UIntType std::subtract_with_carry_engine<_UIntType,
w, s, r>::default_seed’ 531 | template<typename _UIntType, size_t w, size_t __s, size_t r> | ^
/usr/include/c++/11/bits/random.h:713:37: note: ‘constexpr const result_type std::subtract_with_carry_engine<_UIntType, w, s, r>::default_seed’ previously declared here 713 | static constexpr result_type default_seed = 19780503u; | ^~~~ /usr/include/c++/11/bits/random.tcc:670:86: error: redefinition of ‘constexpr const size_t std::discard_block_engine<_RandomNumberEngine, p, r>::block_size’ 670 | template<typename _RandomNumberEngine, size_t p, size_t r> | ^
/usr/include/c++/11/bits/random.h:898:32: note: ‘constexpr const size_t block_size’ previously declared here 898 | static constexpr size_t block_size =
p; | ^~~~~~ /usr/include/c++/11/bits/random.tcc:674:86: error: redefinition of ‘constexpr const size_t std::discard_block_engine<_RandomNumberEngine, p, r>::used_block’ 674 | template<typename _RandomNumberEngine, size_t p, size_t r> | ^
/usr/include/c++/11/bits/random.h:899:32: note: ‘constexpr const size_t used_block’ previously declared here 899 | static constexpr size_t used_block =
r; | ^~~~~~ /usr/include/c++/11/bits/random.tcc:803:74: error: redefinition of ‘constexpr const size_t std::shuffle_order_engine<_RandomNumberEngine, __k>::table_size’ 803 | template<typename _RandomNumberEngine, size_t
k> | ^
/usr/include/c++/11/bits/random.h:1339:32: note: ‘constexpr const size_t table_size’ previously declared here 1339 | static constexpr size_t table_size = k; | ^~~~~~ /usr/include/c++/11/type_traits:79:52: error: redefinition of ‘constexpr const _Tp std::integral_constant<_Tp, v>::value’ 79 | template<typename _Tp, _Tp v> | ^
/usr/include/c++/11/type_traits:67:29: note: ‘constexpr const _Tp value’ previously declared here 67 | static constexpr _Tp value = __v; | ^~~~~ /usr/include/c++/11/bits/regex.h:806:86: error: redefinition of ‘constexpr const std::regex_constants::syntax_option_type std::
cxx11::basic_regex< , >::icase’ 806 | template<typename _Ch, typename _Tr> | ^
/usr/include/c++/11/bits/regex.h:417:35: note: ‘constexpr const flag_type std::cxx11::basic_regex< , >::icase’ previously declared here 417 | static constexpr flag_type icase = regex_constants::icase; | ^~~~~ /usr/include/c++/11/bits/regex.h:810:86: error: redefinition of ‘constexpr const std::regex_constants::syntax_option_type std::cxx11::basic_regex< , >::nosubs’ 810 | template<typename _Ch, typename _Tr> | ^
/usr/include/c++/11/bits/regex.h:418:35: note: ‘constexpr const flag_type std::cxx11::basic_regex< , >::nosubs’ previously declared here 418 | static constexpr flag_type nosubs = regex_constants::nosubs; | ^~ /usr/include/c++/11/bits/regex.h:814:86: error: redefinition of ‘constexpr const std::regex_constants::syntax_option_type std::cxx11::basic_regex< , >::optimize’ 814 | template<typename _Ch, typename _Tr> | ^
/usr/include/c++/11/bits/regex.h:419:35: note: ‘constexpr const flag_type std::cxx11::basic_regex< , >::optimize’ previously declared here 419 | static constexpr flag_type optimize = regex_constants::optimize; | ^~~~ /usr/include/c++/11/bits/regex.h:818:86: error: redefinition of ‘constexpr const std::regex_constants::syntax_option_type std::cxx11::basic_regex< , >::collate’ 818 | template<typename _Ch, typename _Tr> | ^
/usr/include/c++/11/bits/regex.h:420:35: note: ‘constexpr const flag_type std::cxx11::basic_regex< , >::collate’ previously declared here 420 | static constexpr flag_type collate = regex_constants::collate; | ^~~ /usr/include/c++/11/bits/regex.h:822:86: error: redefinition of ‘constexpr const std::regex_constants::syntax_option_type std::cxx11::basic_regex< , >::ECMAScript’ 822 | template<typename _Ch, typename _Tr> | ^
/usr/include/c++/11/bits/regex.h:421:35: note: ‘constexpr const flag_type std::cxx11::basic_regex< , >::ECMAScript’ previously declared here 421 | static constexpr flag_type ECMAScript = regex_constants::ECMAScript; | ^~~~~~ /usr/include/c++/11/bits/regex.h:826:86: error: redefinition of ‘constexpr const std::regex_constants::syntax_option_type std::cxx11::basic_regex< , >::basic’ 826 | template<typename _Ch, typename _Tr> | ^
/usr/include/c++/11/bits/regex.h:422:35: note: ‘constexpr const flag_type std::cxx11::basic_regex< , >::basic’ previously declared here 422 | static constexpr flag_type basic = regex_constants::basic; | ^~~~~ /usr/include/c++/11/bits/regex.h:830:86: error: redefinition of ‘constexpr const std::regex_constants::syntax_option_type std::cxx11::basic_regex< , >::extended’ 830 | template<typename _Ch, typename _Tr> | ^
/usr/include/c++/11/bits/regex.h:423:35: note: ‘constexpr const flag_type std::cxx11::basic_regex< , >::extended’ previously declared here 423 | static constexpr flag_type extended = regex_constants::extended; | ^~~~ /usr/include/c++/11/bits/regex.h:834:86: error: redefinition of ‘constexpr const std::regex_constants::syntax_option_type std::cxx11::basic_regex< , >::awk’ 834 | template<typename _Ch, typename _Tr> | ^
/usr/include/c++/11/bits/regex.h:424:35: note: ‘constexpr const flag_type std::cxx11::basic_regex< , >::awk’ previously declared here 424 | static constexpr flag_type awk = regex_constants::awk; | ^~~ /usr/include/c++/11/bits/regex.h:838:86: error: redefinition of ‘constexpr const std::regex_constants::syntax_option_type std::cxx11::basic_regex< , >::grep’ 838 | template<typename _Ch, typename _Tr> | ^
/usr/include/c++/11/bits/regex.h:425:35: note: ‘constexpr const flag_type std::cxx11::basic_regex< , >::grep’ previously declared here 425 | static constexpr flag_type grep = regex_constants::grep; | ^~~~ /usr/include/c++/11/bits/regex.h:842:86: error: redefinition of ‘constexpr const std::regex_constants::syntax_option_type std::cxx11::basic_regex< , >::egrep’ 842 | template<typename _Ch, typename _Tr> | ^
/usr/include/c++/11/bits/regex.h:426:35: note: ‘constexpr const flag_type std::cxx11::basic_regex< , >::egrep’ previously declared here 426 | static constexpr flag_type egrep = regex_constants::egrep; | ^~~~~ include/json.hpp:3176:39: error: redefinition of ‘constexpr const T nlohmann::detail::static_const::value’ 3176 | template | ^
include/json.hpp:3173:27: note: ‘constexpr const T nlohmann::detail::static_const::value’ previously declared here 3173 | static constexpr T value{}; | ^~~~~ /usr/include/c++/11/ratio:282:67: error: redefinition of ‘constexpr const intmax_t std::ratio<_Num, _Den>::num’ 282 | template<intmax_t _Num, intmax_t _Den> | ^
/usr/include/c++/11/ratio:273:34: note: ‘constexpr const intmax_t std::ratio<_Num, _Den>::num’ previously declared here 273 | static constexpr intmax_t num = | ^~~ /usr/include/c++/11/ratio:285:67: error: redefinition of ‘constexpr const intmax_t std::ratio<_Num, _Den>::den’ 285 | template<intmax_t _Num, intmax_t _Den> | ^
/usr/include/c++/11/ratio:276:34: note: ‘constexpr const intmax_t std::ratio<_Num, _Den>::den’ previously declared here 276 | static constexpr intmax_t den = | ^~~ /usr/include/c++/11/ratio:310:59: error: redefinition of ‘constexpr const intmax_t std::
ratio_multiply<_R1, _R2>::num’ 310 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:306:34: note: ‘constexpr const intmax_t std::__ratio_multiply<_R1, _R2>::num’ previously declared here 306 | static constexpr intmax_t num = type::num; | ^~~ /usr/include/c++/11/ratio:313:59: error: redefinition of ‘constexpr const intmax_t std::ratio_multiply<_R1, _R2>::den’ 313 | template<typename _R1, typename _R2> | ^
/usr/include/c++/11/ratio:307:34: note: ‘constexpr const intmax_t std::
ratio_multiply<_R1, _R2>::den’ previously declared here 307 | static constexpr intmax_t den = type::den; | ^~~

わかる方解決してください.