Skip to content

[macOS] Apple is deprecating CLAPACK interface since macOS 13.3 #24660

@fengyuentau

Description

@fengyuentau
System information (version)
  • OpenCV => latest
  • Operating System / Platform => macOS 14.1.1
  • Compiler =>
    Apple clang version 15.0.0 (clang-1500.0.40.1)
    Target: arm64-apple-darwin23.1.0
    Thread model: posix
    InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
    
Detailed description

Reproducer: https://github.com/opencv/ci-gha-workflow/actions/runs/8747714722/job/24006610667?pr=171#step:11:559

Full log of warnings:

/workspace/opencv/modules/core/src/hal_internal.cpp:124:17: warning: 'sgesv_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                sgesv_(&m, &n, (float*)a, &lda, piv, (float*)b, &m, info);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5618:5: note: 'sgesv_' has been explicitly marked deprecated here
int sgesv_(__CLPK_integer *__n, __CLPK_integer *__nrhs, __CLPK_real *__a,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:126:17: warning: 'dgesv_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                dgesv_(&m, &n, (double*)a, &lda, piv, (double*)b, &m, info);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2727:5: note: 'dgesv_' has been explicitly marked deprecated here
int dgesv_(__CLPK_integer *__n, __CLPK_integer *__nrhs, __CLPK_doublereal *__a,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:136:17: warning: 'sgesv_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                sgesv_(&m, &n, (float*)a, &lda, piv, (float*)tmpB, &m, info);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5618:5: note: 'sgesv_' has been explicitly marked deprecated here
int sgesv_(__CLPK_integer *__n, __CLPK_integer *__nrhs, __CLPK_real *__a,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:138:17: warning: 'dgesv_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                dgesv_(&m, &n, (double*)a, &lda, piv, (double*)tmpB, &m, info);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2727:5: note: 'dgesv_' has been explicitly marked deprecated here
int dgesv_(__CLPK_integer *__n, __CLPK_integer *__nrhs, __CLPK_doublereal *__a,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:147:13: warning: 'sgetrf_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
            sgetrf_(&m, &m, (float*)a, &lda, piv, info);
            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5659:5: note: 'sgetrf_' has been explicitly marked deprecated here
int sgetrf_(__CLPK_integer *__m, __CLPK_integer *__n, __CLPK_real *__a,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:149:13: warning: 'dgetrf_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
            dgetrf_(&m, &m, (double*)a, &lda, piv, info);
            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2770:5: note: 'dgetrf_' has been explicitly marked deprecated here
int dgetrf_(__CLPK_integer *__m, __CLPK_integer *__n, __CLPK_doublereal *__a,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:177:17: warning: 'sposv_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(sposv)(L, &m, &n, (float*)a, &lda, (float*)b, &m, &lapackStatus);
                ^
/workspace/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:127:1: note: expanded from here
sposv_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:7076:5: note: 'sposv_' has been explicitly marked deprecated here
int sposv_(char *__uplo, __CLPK_integer *__n, __CLPK_integer *__nrhs,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:179:17: warning: 'dposv_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(dposv)(L, &m, &n, (double*)a, &lda, (double*)b, &m, &lapackStatus);
                ^
/workspace/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:128:1: note: expanded from here
dposv_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:4340:5: note: 'dposv_' has been explicitly marked deprecated here
int dposv_(char *__uplo, __CLPK_integer *__n, __CLPK_integer *__nrhs,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:188:17: warning: 'sposv_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(sposv)(L, &m, &n, (float*)a, &lda, (float*)tmpB, &m, &lapackStatus);
                ^
/workspace/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:129:1: note: expanded from here
sposv_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:7076:5: note: 'sposv_' has been explicitly marked deprecated here
int sposv_(char *__uplo, __CLPK_integer *__n, __CLPK_integer *__nrhs,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:190:17: warning: 'dposv_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(dposv)(L, &m, &n, (double*)a, &lda, (double*)tmpB, &m, &lapackStatus);
                ^
/workspace/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:130:1: note: expanded from here
dposv_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:4340:5: note: 'dposv_' has been explicitly marked deprecated here
int dposv_(char *__uplo, __CLPK_integer *__n, __CLPK_integer *__nrhs,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:199:13: warning: 'spotrf_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
            OCV_LAPACK_FUNC(spotrf)(L, &m, (float*)a, &lda, &lapackStatus);
            ^
/workspace/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:131:1: note: expanded from here
spotrf_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:7097:5: note: 'spotrf_' has been explicitly marked deprecated here
int spotrf_(char *__uplo, __CLPK_integer *__n, __CLPK_real *__a,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:201:13: warning: 'dpotrf_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
            OCV_LAPACK_FUNC(dpotrf)(L, &m, (double*)a, &lda, &lapackStatus);
            ^
/workspace/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:132:1: note: expanded from here
dpotrf_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:4362:5: note: 'dpotrf_' has been explicitly marked deprecated here
int dpotrf_(char *__uplo, __CLPK_integer *__n, __CLPK_doublereal *__a,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:241:9: warning: 'sgesdd_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
        OCV_LAPACK_FUNC(sgesdd)(mode, &m, &n, (float*)a, &lda, (float*)w, (float*)u, &ldu, (float*)vt, &ldv, (float*)&work1, &lwork, iworkBuf, info);
        ^
/workspace/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:133:1: note: expanded from here
sgesdd_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5610:5: note: 'sgesdd_' has been explicitly marked deprecated here
int sgesdd_(char *__jobz, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:243:9: warning: 'dgesdd_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
        OCV_LAPACK_FUNC(dgesdd)(mode, &m, &n, (double*)a, &lda, (double*)w, (double*)u, &ldu, (double*)vt, &ldv, (double*)&work1, &lwork, iworkBuf, info);
        ^
/workspace/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:134:1: note: expanded from here
dgesdd_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2719:5: note: 'dgesdd_' has been explicitly marked deprecated here
int dgesdd_(char *__jobz, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:254:9: warning: 'sgesdd_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
        OCV_LAPACK_FUNC(sgesdd)(mode, &m, &n, (float*)a, &lda, (float*)w, (float*)u, &ldu, (float*)vt, &ldv, (float*)buffer, &lwork, iworkBuf, info);
        ^
/workspace/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:135:1: note: expanded from here
sgesdd_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5610:5: note: 'sgesdd_' has been explicitly marked deprecated here
int sgesdd_(char *__jobz, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:256:9: warning: 'dgesdd_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
        OCV_LAPACK_FUNC(dgesdd)(mode, &m, &n, (double*)a, &lda, (double*)w, (double*)u, &ldu, (double*)vt, &ldv, (double*)buffer, &lwork, iworkBuf, info);
        ^
/workspace/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:2:1: note: expanded from here
dgesdd_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2719:5: note: 'dgesdd_' has been explicitly marked deprecated here
int dgesdd_(char *__jobz, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:317:17: warning: 'sgels_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(sgels)(mode, &m, &n, &k, (float*)tmpA, &ldtmpA, (float*)b, &m, (float*)&work1, &lwork, info);
                ^
/workspace/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:3:1: note: expanded from here
sgels_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5515:5: note: 'sgels_' has been explicitly marked deprecated here
int sgels_(char *__trans, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:319:17: warning: 'dgels_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(dgels)(mode, &m, &n, &k, (double*)tmpA, &ldtmpA, (double*)b, &m, (double*)&work1, &lwork, info);
                ^
/workspace/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:4:1: note: expanded from here
dgels_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2616:5: note: 'dgels_' has been explicitly marked deprecated here
int dgels_(char *__trans, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:326:17: warning: 'sgels_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(sgels)(mode, &m, &n, &k, (float*)tmpA, &ldtmpA, (float*)b, &m, (float*)buffer, &lwork, info);
                ^
/workspace/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:5:1: note: expanded from here
sgels_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5515:5: note: 'sgels_' has been explicitly marked deprecated here
int sgels_(char *__trans, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:328:17: warning: 'dgels_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(dgels)(mode, &m, &n, &k, (double*)tmpA, &ldtmpA, (double*)b, &m, (double*)buffer, &lwork, info);
                ^
/workspace/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:6:1: note: expanded from here
dgels_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2616:5: note: 'dgels_' has been explicitly marked deprecated here
int dgels_(char *__trans, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:338:17: warning: 'sgels_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(sgels)(mode, &m, &n, &k, (float*)tmpA, &ldtmpA, (float*)tmpB, &m, (float*)&work1, &lwork, info);
                ^
/workspace/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:7:1: note: expanded from here
sgels_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5515:5: note: 'sgels_' has been explicitly marked deprecated here
int sgels_(char *__trans, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:340:17: warning: 'dgels_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(dgels)(mode, &m, &n, &k, (double*)tmpA, &ldtmpA, (double*)tmpB, &m, (double*)&work1, &lwork, info);
                ^
/workspace/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:8:1: note: expanded from here
dgels_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2616:5: note: 'dgels_' has been explicitly marked deprecated here
int dgels_(char *__trans, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:347:17: warning: 'sgels_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(sgels)(mode, &m, &n, &k, (float*)tmpA, &ldtmpA, (float*)tmpB, &m, (float*)buffer, &lwork, info);
                ^
/workspace/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:9:1: note: expanded from here
sgels_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5515:5: note: 'sgels_' has been explicitly marked deprecated here
int sgels_(char *__trans, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:349:17: warning: 'dgels_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(dgels)(mode, &m, &n, &k, (double*)tmpA, &ldtmpA, (double*)tmpB, &m, (double*)buffer, &lwork, info);
                ^
/workspace/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:10:1: note: expanded from here
dgels_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2616:5: note: 'dgels_' has been explicitly marked deprecated here
int dgels_(char *__trans, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:357:13: warning: 'sgeqrf_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
            sgeqrf_(&m, &n, (float*)tmpA, &ldtmpA, (float*)dst, (float*)&work1, &lwork, info);
            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5579:5: note: 'sgeqrf_' has been explicitly marked deprecated here
int sgeqrf_(__CLPK_integer *__m, __CLPK_integer *__n, __CLPK_real *__a,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:359:13: warning: 'dgeqrf_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
            dgeqrf_(&m, &n, (double*)tmpA, &ldtmpA, (double*)dst, (double*)&work1, &lwork, info);
            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2686:5: note: 'dgeqrf_' has been explicitly marked deprecated here
int dgeqrf_(__CLPK_integer *__m, __CLPK_integer *__n, __CLPK_doublereal *__a,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:366:13: warning: 'sgeqrf_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
            sgeqrf_(&m, &n, (float*)tmpA, &ldtmpA, (float*)dst, (float*)buffer, &lwork, info);
            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5579:5: note: 'sgeqrf_' has been explicitly marked deprecated here
int sgeqrf_(__CLPK_integer *__m, __CLPK_integer *__n, __CLPK_real *__a,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:368:13: warning: 'dgeqrf_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
            dgeqrf_(&m, &n, (double*)tmpA, &ldtmpA, (double*)dst, (double*)buffer, &lwork, info);
            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2686:5: note: 'dgeqrf_' has been explicitly marked deprecated here
int dgeqrf_(__CLPK_integer *__m, __CLPK_integer *__n, __CLPK_doublereal *__a,
    ^
/workspace/opencv/modules/core/src/hal_internal.cpp:454:9: warning: 'cblas_sgemm' is deprecated: first deprecated in macOS 13.3 - An updated CBLAS interface supporting ILP64 is available.  Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support. [-Wdeprecated-declarations]
        cblas_sgemm(CblasRowMajor, transA, transB, a_m, d_n, a_n, (float)alpha, (float*)src1, ldsrc1, (float*)src2, ldsrc2, (float)beta, (float*)dst, lddst);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/cblas.h:610:6: note: 'cblas_sgemm' has been explicitly marked deprecated here
void cblas_sgemm(const enum CBLAS_ORDER __Order,
     ^
/workspace/opencv/modules/core/src/hal_internal.cpp:456:9: warning: 'cblas_dgemm' is deprecated: first deprecated in macOS 13.3 - An updated CBLAS interface supporting ILP64 is available.  Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support. [-Wdeprecated-declarations]
        cblas_dgemm(CblasRowMajor, transA, transB, a_m, d_n, a_n, (double)alpha, (double*)src1, ldsrc1, (double*)src2, ldsrc2, (double)beta, (double*)dst, lddst);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/cblas.h:647:6: note: 'cblas_dgemm' has been explicitly marked deprecated here
void cblas_dgemm(const enum CBLAS_ORDER __Order,
     ^
/workspace/opencv/modules/core/src/hal_internal.cpp:533:9: warning: 'cblas_cgemm' is deprecated: first deprecated in macOS 13.3 - An updated CBLAS interface supporting ILP64 is available.  Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support. [-Wdeprecated-declarations]
        cblas_cgemm(CblasRowMajor, transA, transB, a_m, d_n, a_n, (float*)reinterpret_cast<fptype(&)[2]>(cAlpha), (float*)src1, ldsrc1, (float*)src2, ldsrc2, (float*)reinterpret_cast<fptype(&)[2]>(cBeta), (float*)dst, lddst);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/cblas.h:684:6: note: 'cblas_cgemm' has been explicitly marked deprecated here
void cblas_cgemm(const enum CBLAS_ORDER __Order,
     ^
/workspace/opencv/modules/core/src/hal_internal.cpp:535:9: warning: 'cblas_zgemm' is deprecated: first deprecated in macOS 13.3 - An updated CBLAS interface supporting ILP64 is available.  Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support. [-Wdeprecated-declarations]
        cblas_zgemm(CblasRowMajor, transA, transB, a_m, d_n, a_n, (double*)reinterpret_cast<fptype(&)[2]>(cAlpha), (double*)src1, ldsrc1, (double*)src2, ldsrc2, (double*)reinterpret_cast<fptype(&)[2]>(cBeta), (double*)dst, lddst);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/vecLib.framework/Headers/cblas.h:719:6: note: 'cblas_zgemm' has been explicitly marked deprecated here
void cblas_zgemm(const enum CBLAS_ORDER __Order,
     ^
[ 55%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/logger.cpp.o
[ 55%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lpsolver.cpp.o
32 warnings generated.
Steps to reproduce
  1. Get macOS >= 13.3.
  2. Build OpenCV and you can see the warnings below.
Issue submission checklist
  • 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions