Repository: opencv
Issue: build error on x86_64
Labels: bug,category: build/install

### System Information

mkdir -p build
cd build
cmake .. -G "Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX=/opt/opencv/x64/debug \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_C_FLAGS_DEBUG="-O0 -g" \
-DCMAKE_CXX_FLAGS_DEBUG="-O0 -g" \
-DBUILD_PERF_TESTS=OFF \
-DBUILD_TESTS=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_opencv_apps=OFF \
-DBUILD_opencv_java=OFF \
-DWITH_GSTREAMER=OFF \
-DWITH_CUDA=OFF \
-DENABLE_SSE=OFF \
-DENABLE_SSE2=OFF \
-DENABLE_SSE3=OFF \
-DENABLE_SSSE3=OFF \
-DENABLE_SSE41=OFF \
-DENABLE_SSE42=OFF \
-DENABLE_POPCNT=OFF \
-DENABLE_AVX=OFF \
-DENABLE_AVX2=OFF \
-DENABLE_AVX512F=OFF \
-DENABLE_FMA3=OFF \
-DENABLE_NEON=OFF \
-DENABLE_VFPV3=OFF \
-DENABLE_FAST_MATH=OFF

cmake --build . --config Debug --target install -- -j8 VERBOSE=1

### Detailed description

[ 81%] Built target opencv_highgui
CMakeFiles/opencv_dnn.dir/src/layers/cpu_kernels/conv_winograd_f63.cpp.o: 於函式 cv::dnn::runWinograd63(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, cv::Ptr<cv::dnn::FastConv> const&, int, float, float, cv::dnn::dnn5_v20230620::ActivationLayer*, bool)::{lambda(cv::Range const&)#1}::operator()(cv::Range const&) const:
/root/opencv-5.x_x64_debug/modules/dnn/src/layers/cpu_kernels/conv_winograd_f63.cpp:170: 未定義參考到 cv::dnn::winofunc_BtXB_8x8_f32(float const*, int, float*, int, int, int)
CMakeFiles/opencv_dnn.dir/src/layers/cpu_kernels/conv_winograd_f63.cpp.o: 於函式 cv::dnn::runWinograd63(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, cv::Ptr<cv::dnn::FastConv> const&, int, float, float, cv::dnn::dnn5_v20230620::ActivationLayer*, bool)::{lambda(cv::Range const&)#2}::operator()(cv::Range const&) const:
/root/opencv-5.x_x64_debug/modules/dnn/src/layers/cpu_kernels/conv_winograd_f63.cpp:239: 未定義參考到 cv::dnn::winofunc_accum_f32(float const*, float const*, float*, int, int, int, int, int, int)
/root/opencv-5.x_x64_debug/modules/dnn/src/layers/cpu_kernels/conv_winograd_f63.cpp:294: 未定義參考到 cv::dnn::winofunc_AtXA_8x8_f32(float const*, int, float*, int, float*, int, float, float, float, bool)
collect2: error: ld returned 1 exit status
modules/dnn/CMakeFiles/opencv_dnn.dir/build.make:4003: recipe for target 'lib/libopencv_dnn.so.5.0.0' failed
make[2]: *** [lib/libopencv_dnn.so.5.0.0] Error 1
make[2]: Leaving directory '/root/opencv-5.x_x64_debug/build'
CMakeFiles/Makefile2:1770: recipe for target 'modules/dnn/CMakeFiles/opencv_dnn.dir/all' failed
make[1]: *** [modules/dnn/CMakeFiles/opencv_dnn.dir/all] Error 2


### Steps to reproduce

git clone
Author: Kumataro <Kumataro@users.noreply.github.com>  2023-11-23 17:15:58
Committer: GitHub <noreply@github.com>  2023-11-23 17:15:58
Parent: 4b4c130f0a981bee38cb0f33a174dab474f99a64 (Merge pull request #24561 from asmorkalov:usac_bug_fix_port)
Child:  0000000000000000000000000000000000000000 (Local uncommitted changes, not checked in to index)
Branches: 5.x, remotes/origin/5.x


///////////////////////////////////////////
mkdir -p build
cd build
cmake .. -G "Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX=/opt/opencv/x64/debug \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_C_FLAGS_DEBUG="-O0 -g" \
-DCMAKE_CXX_FLAGS_DEBUG="-O0 -g" \
-DBUILD_PERF_TESTS=OFF \
-DBUILD_TESTS=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_opencv_apps=OFF \
-DBUILD_opencv_java=OFF \
-DWITH_GSTREAMER=OFF \
-DWITH_CUDA=OFF \
-DENABLE_SSE=OFF \
-DENABLE_SSE2=OFF \
-DENABLE_SSE3=OFF \
-DENABLE_SSSE3=OFF \
-DENABLE_SSE41=OFF \
-DENABLE_SSE42=OFF \
-DENABLE_POPCNT=OFF \
-DENABLE_AVX=OFF \
-DENABLE_AVX2=OFF \
-DENABLE_AVX512F=OFF \
-DENABLE_FMA3=OFF \
-DENABLE_NEON=OFF \
-DENABLE_VFPV3=OFF \
-DENABLE_FAST_MATH=OFF

cmake --build . --config Debug --target install -- -j8 VERBOSE=1

### Issue submission checklist

- [X] I report the issue, it's not a question
- [ ] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [ ] I updated to the latest OpenCV version and the issue is still there
- [ ] There is reproducer code and related data files (videos, images, onnx, etc)