Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build on macOS at f448bce #187

Open
zhoub opened this issue Dec 1, 2023 · 1 comment
Open

Failed to build on macOS at f448bce #187

zhoub opened this issue Dec 1, 2023 · 1 comment

Comments

@zhoub
Copy link

zhoub commented Dec 1, 2023

Using macOS Ventura 13.4.1 and Clang

Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: x86_64-apple-darwin22.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Checkout lastest master at f448bce, executed

git submodule init
git submodule update --recursive

Related to mdk-dnn

[ 81%] Building CXX object devices/cpu/CMakeFiles/OpenImageDenoise_device_cpu.dir/cpu_autoexposure.cpp.o
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.cpp:4:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_engine.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_device.h:8:
In file included from /Users/zb/Development/oidn-repo/mkl-dnn/include/dnnl.hpp:20:
/Users/zb/Development/oidn-repo/mkl-dnn/include/oneapi/dnnl/dnnl.hpp:246:22: error: use of undeclared identifier 'dnnl_primitive_desc_iterator_t'
struct handle_traits<dnnl_primitive_desc_iterator_t> {
                     ^
/Users/zb/Development/oidn-repo/mkl-dnn/include/oneapi/dnnl/dnnl.hpp:305:22: error: use of undeclared identifier 'dnnl_logsoftmax'; did you mean 'dnnl_softmax'?
        logsoftmax = dnnl_logsoftmax,
                     ^~~~~~~~~~~~~~~
                     dnnl_softmax
/Users/zb/Development/oidn-repo/external/mkl-dnn/include/oneapi/dnnl/dnnl_types.h:1643:5: note: 'dnnl_softmax' declared here
    dnnl_softmax,
    ^
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.cpp:4:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_engine.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_device.h:8:
In file included from /Users/zb/Development/oidn-repo/mkl-dnn/include/dnnl.hpp:20:
/Users/zb/Development/oidn-repo/mkl-dnn/include/oneapi/dnnl/dnnl.hpp:311:22: error: use of undeclared identifier 'dnnl_pooling_v2'
        pooling_v2 = dnnl_pooling_v2,
                     ^
/Users/zb/Development/oidn-repo/mkl-dnn/include/oneapi/dnnl/dnnl.hpp:447:23: error: use of undeclared identifier 'dnnl_forward_scoring'; did you mean 'dnnl_forward_training'?
    forward_scoring = dnnl_forward_scoring,
                      ^~~~~~~~~~~~~~~~~~~~
                      dnnl_forward_training
/Users/zb/Development/oidn-repo/external/mkl-dnn/include/oneapi/dnnl/dnnl_types.h:1584:5: note: 'dnnl_forward_training' declared here
    dnnl_forward_training = 64,
    ^
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.cpp:4:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_engine.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_device.h:8:
In file included from /Users/zb/Development/oidn-repo/mkl-dnn/include/dnnl.hpp:20:
/Users/zb/Development/oidn-repo/mkl-dnn/include/oneapi/dnnl/dnnl.hpp:501:28: error: use of undeclared identifier 'dnnl_eltwise_bounded_relu'; did you mean 'dnnl_eltwise_soft_relu'?
    eltwise_bounded_relu = dnnl_eltwise_bounded_relu,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~
                           dnnl_eltwise_soft_relu
/Users/zb/Development/oidn-repo/external/mkl-dnn/include/oneapi/dnnl/dnnl_types.h:1680:5: note: 'dnnl_eltwise_soft_relu' declared here
    dnnl_eltwise_soft_relu,
    ^
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.cpp:4:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_engine.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_device.h:8:
In file included from /Users/zb/Development/oidn-repo/mkl-dnn/include/dnnl.hpp:20:
/Users/zb/Development/oidn-repo/mkl-dnn/include/oneapi/dnnl/dnnl.hpp:505:26: error: use of undeclared identifier 'dnnl_eltwise_logsigmoid'; did you mean 'dnnl_eltwise_hardsigmoid'?
    eltwise_logsigmoid = dnnl_eltwise_logsigmoid,
                         ^~~~~~~~~~~~~~~~~~~~~~~
                         dnnl_eltwise_hardsigmoid
/Users/zb/Development/oidn-repo/external/mkl-dnn/include/oneapi/dnnl/dnnl_types.h:1682:5: note: 'dnnl_eltwise_hardsigmoid' declared here
    dnnl_eltwise_hardsigmoid,
    ^
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.cpp:4:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_engine.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_device.h:8:
In file included from /Users/zb/Development/oidn-repo/mkl-dnn/include/dnnl.hpp:20:
/Users/zb/Development/oidn-repo/mkl-dnn/include/oneapi/dnnl/dnnl.hpp:514:20: error: use of undeclared identifier 'dnnl_eltwise_gelu'
    eltwise_gelu = dnnl_eltwise_gelu,
                   ^
/Users/zb/Development/oidn-repo/mkl-dnn/include/oneapi/dnnl/dnnl.hpp:553:19: error: use of undeclared identifier 'dnnl_pooling_avg'; did you mean 'dnnl_pooling_max'?
    pooling_avg = dnnl_pooling_avg,
                  ^~~~~~~~~~~~~~~~
                  dnnl_pooling_max
/Users/zb/Development/oidn-repo/external/mkl-dnn/include/oneapi/dnnl/dnnl_types.h:1725:5: note: 'dnnl_pooling_max' declared here
    dnnl_pooling_max = 0x1ff,
    ^
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.cpp:4:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_engine.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_device.h:8:
In file included from /Users/zb/Development/oidn-repo/mkl-dnn/include/dnnl.hpp:20:
/Users/zb/Development/oidn-repo/mkl-dnn/include/oneapi/dnnl/dnnl.hpp:652:23: error: use of undeclared identifier 'dnnl_use_scaleshift'
    use_scale_shift = dnnl_use_scaleshift,
                      ^
/Users/zb/Development/oidn-repo/mkl-dnn/include/oneapi/dnnl/dnnl.hpp:740:22: error: use of undeclared identifier 'dnnl_unidirectional'; did you mean 'dnnl_bidirectional_sum'?
    unidirectional = dnnl_unidirectional,
                     ^~~~~~~~~~~~~~~~~~~
                     dnnl_bidirectional_sum
/Users/zb/Development/oidn-repo/external/mkl-dnn/include/oneapi/dnnl/dnnl_types.h:1965:5: note: 'dnnl_bidirectional_sum' declared here
    dnnl_bidirectional_sum,
    ^
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.cpp:4:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_engine.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_device.h:8:
In file included from /Users/zb/Development/oidn-repo/mkl-dnn/include/dnnl.hpp:20:
/Users/zb/Development/oidn-repo/mkl-dnn/include/oneapi/dnnl/dnnl.hpp:799:12: error: use of undeclared identifier 'dnnl_query_op_d'
    op_d = dnnl_query_op_d,
           ^
/Users/zb/Development/oidn-repo/mkl-dnn/include/oneapi/dnnl/dnnl.hpp:801:21: error: use of undeclared identifier 'dnnl_query_convolution_d'; did you mean 'dnnl_deconvolution'?
    convolution_d = dnnl_query_convolution_d,
                    ^~~~~~~~~~~~~~~~~~~~~~~~
                    dnnl_deconvolution
/Users/zb/Development/oidn-repo/external/mkl-dnn/include/oneapi/dnnl/dnnl_types.h:1617:5: note: 'dnnl_deconvolution' declared here
    dnnl_deconvolution,
    ^
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.cpp:4:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_engine.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_device.h:8:
In file included from /Users/zb/Development/oidn-repo/mkl-dnn/include/dnnl.hpp:20:
/Users/zb/Development/oidn-repo/mkl-dnn/include/oneapi/dnnl/dnnl.hpp:803:23: error: use of undeclared identifier 'dnnl_query_deconvolution_d'; did you mean 'dnnl_deconvolution'?
    deconvolution_d = dnnl_query_deconvolution_d,
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
                      dnnl_deconvolution
/Users/zb/Development/oidn-repo/external/mkl-dnn/include/oneapi/dnnl/dnnl_types.h:1617:5: note: 'dnnl_deconvolution' declared here
    dnnl_deconvolution,
    ^
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.cpp:4:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_engine.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_device.h:8:
In file included from /Users/zb/Development/oidn-repo/mkl-dnn/include/dnnl.hpp:20:
/Users/zb/Development/oidn-repo/mkl-dnn/include/oneapi/dnnl/dnnl.hpp:805:17: error: use of undeclared identifier 'dnnl_query_shuffle_d'; did you mean 'dnnl_query_some_md'?
    shuffle_d = dnnl_query_shuffle_d,
                ^~~~~~~~~~~~~~~~~~~~
                dnnl_query_some_md
/Users/zb/Development/oidn-repo/external/mkl-dnn/include/oneapi/dnnl/dnnl_types.h:2388:5: note: 'dnnl_query_some_md' declared here
    dnnl_query_some_md = 128, ///< stub
    ^
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.cpp:4:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_engine.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_device.h:8:
In file included from /Users/zb/Development/oidn-repo/mkl-dnn/include/dnnl.hpp:20:
/Users/zb/Development/oidn-repo/mkl-dnn/include/oneapi/dnnl/dnnl.hpp:807:17: error: use of undeclared identifier 'dnnl_query_eltwise_d'
    eltwise_d = dnnl_query_eltwise_d,
                ^
/Users/zb/Development/oidn-repo/mkl-dnn/include/oneapi/dnnl/dnnl.hpp:809:17: error: use of undeclared identifier 'dnnl_query_softmax_d'; did you mean 'dnnl_query_some_md'?
    softmax_d = dnnl_query_softmax_d,
                ^~~~~~~~~~~~~~~~~~~~
                dnnl_query_some_md
/Users/zb/Development/oidn-repo/external/mkl-dnn/include/oneapi/dnnl/dnnl_types.h:2388:5: note: 'dnnl_query_some_md' declared here
    dnnl_query_some_md = 128, ///< stub
    ^
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.cpp:4:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_engine.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_device.h:8:
In file included from /Users/zb/Development/oidn-repo/mkl-dnn/include/dnnl.hpp:20:
/Users/zb/Development/oidn-repo/mkl-dnn/include/oneapi/dnnl/dnnl.hpp:811:17: error: use of undeclared identifier 'dnnl_query_pooling_d'
    pooling_d = dnnl_query_pooling_d,
                ^
/Users/zb/Development/oidn-repo/mkl-dnn/include/oneapi/dnnl/dnnl.hpp:813:13: error: use of undeclared identifier 'dnnl_query_lrn_d'; did you mean 'dnnl_query_src_md'?
    lrn_d = dnnl_query_lrn_d,
            ^~~~~~~~~~~~~~~~
            dnnl_query_src_md
/Users/zb/Development/oidn-repo/external/mkl-dnn/include/oneapi/dnnl/dnnl_types.h:2389:5: note: 'dnnl_query_src_md' declared here
    dnnl_query_src_md, ///< source memory desc
    ^
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.cpp:4:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_autoexposure.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_engine.h:7:
In file included from /Users/zb/Development/oidn-repo/devices/cpu/cpu_device.h:8:
In file included from /Users/zb/Development/oidn-repo/mkl-dnn/include/dnnl.hpp:20:
/Users/zb/Development/oidn-repo/mkl-dnn/include/oneapi/dnnl/dnnl.hpp:815:29: error: use of undeclared identifier 'dnnl_query_batch_normalization_d'; did you mean 'dnnl_batch_normalization'?
    batch_normalization_d = dnnl_query_batch_normalization_d,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                            dnnl_batch_normalization
/Users/zb/Development/oidn-repo/external/mkl-dnn/include/oneapi/dnnl/dnnl_types.h:1623:5: note: 'dnnl_batch_normalization' declared here
    dnnl_batch_normalization,
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [devices/cpu/CMakeFiles/OpenImageDenoise_device_cpu.dir/cpu_autoexposure.cpp.o] Error 1
make[1]: *** [devices/cpu/CMakeFiles/OpenImageDenoise_device_cpu.dir/all] Error 2
make: *** [all] Error 2

@zhoub zhoub changed the title Failed to build on macOS at f448bcef182623c4f76428da15f152e0c5542a15 Failed to build on macOS at f448bce Dec 1, 2023
@atafra
Copy link
Collaborator

atafra commented Dec 4, 2023

It seems that you have incorrectly cloned repositories. The lines where the errors are reported in mkl-dnn are different from what they should be. Please follow the documentation regarding how to clone the source code or download the source package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants