-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Build fails with lapack 3.9.1 #19846
Copy link
Copy link
Closed
Milestone
Description
System information (version)
- OpenCV => 4.5.2
- Operating System / Platform => Linux
- Compiler => GCC 10.2.0
Detailed description
opencv fails to build with lapack 3.9.1 with the following error:
/build/opencv/src/opencv-4.5.2/modules/core/src/hal_internal.cpp: In function ‘int lapack_QR(fptype*, size_t, int, int, int, fptype*, size_t, fptype*, int*)’:
/build/opencv/src/opencv-4.5.2/modules/core/src/hal_internal.cpp:293:111: error: too few arguments to function ‘void dgels_(const char*, const int*, const int*, const int*, double*, const int*, double*, const int*, double*, const int*, int*, size_t)’
293 | dgels_(mode, &m, &n, &k, (double*)tmpA, &ldtmpA, (double*)b, &m, (double*)&work1, &lwork, info);
| ^
In file included from /usr/include/lapack.h:11,
from /usr/include/lapacke.h:36,
from /build/opencv/src/build/opencv_lapack.h:12,
from /build/opencv/src/opencv-4.5.2/modules/core/src/hal_internal.cpp:51:
/usr/include/lapack.h:1525:6: note: declared here
1525 | void LAPACK_dgels_base(
| ^~~~~~~~~~~~~~~~~
/build/opencv/src/opencv-4.5.2/modules/core/src/hal_internal.cpp:302:111: error: too few arguments to function ‘void dgels_(const char*, const int*, const int*, const int*, double*, const int*, double*, const int*, double*, const int*, int*, size_t)’
302 | dgels_(mode, &m, &n, &k, (double*)tmpA, &ldtmpA, (double*)b, &m, (double*)buffer, &lwork, info);
| ^
In file included from /usr/include/lapack.h:11,
from /usr/include/lapacke.h:36,
from /build/opencv/src/build/opencv_lapack.h:12,
from /build/opencv/src/opencv-4.5.2/modules/core/src/hal_internal.cpp:51:
/usr/include/lapack.h:1525:6: note: declared here
1525 | void LAPACK_dgels_base(
| ^~~~~~~~~~~~~~~~~
/build/opencv/src/opencv-4.5.2/modules/core/src/hal_internal.cpp:314:114: error: too few arguments to function ‘void dgels_(const char*, const int*, const int*, const int*, double*, const int*, double*, const int*, double*, const int*, int*, size_t)’
314 | dgels_(mode, &m, &n, &k, (double*)tmpA, &ldtmpA, (double*)tmpB, &m, (double*)&work1, &lwork, info);
| ^
In file included from /usr/include/lapack.h:11,
from /usr/include/lapacke.h:36,
from /build/opencv/src/build/opencv_lapack.h:12,
from /build/opencv/src/opencv-4.5.2/modules/core/src/hal_internal.cpp:51:
/usr/include/lapack.h:1525:6: note: declared here
1525 | void LAPACK_dgels_base(
| ^~~~~~~~~~~~~~~~~
/build/opencv/src/opencv-4.5.2/modules/core/src/hal_internal.cpp:323:114: error: too few arguments to function ‘void dgels_(const char*, const int*, const int*, const int*, double*, const int*, double*, const int*, double*, const int*, int*, size_t)’
323 | dgels_(mode, &m, &n, &k, (double*)tmpA, &ldtmpA, (double*)tmpB, &m, (double*)buffer, &lwork, info);
| ^
In file included from /usr/include/lapack.h:11,
from /usr/include/lapacke.h:36,
from /build/opencv/src/build/opencv_lapack.h:12,
from /build/opencv/src/opencv-4.5.2/modules/core/src/hal_internal.cpp:51:
/usr/include/lapack.h:1525:6: note: declared here
1525 | void LAPACK_dgels_base(
| ^~~~~~~~~~~~~~~~~
[ 9%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/split.dispatch.cpp.o
[ 9%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/stat.dispatch.cpp.o
[ 9%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/stat_c.cpp.o
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/build.make:509: modules/core/CMakeFiles/opencv_core.dir/src/hal_internal.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Steps to reproduce
Build opencv with lapack 3.9.1
Possibly related: Reference-LAPACK/lapack@2d9fbde
Reactions are currently unavailable