Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Installing MXnet 1.9.1 from source in macOS M1 Ventura #21170

Open

Description

@marcontk

Description

I downloaded version 1.9.1 for MacOS and the compilation is not progressing. I followed the general instructions inside darwin.cmake :

mkdir build; cd build
cmake ..
cmake --build .

Obs: previous version 1.6 if it is compilable on MacOS M1 Ventura 13.1 but not 1.8 and later.

marcont@MacBookAir build % cmake -DUSE_F16C=OFF ..
-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_CROSSCOMPILING FALSE
-- CMAKE_HOST_SYSTEM_PROCESSOR arm64
-- CMAKE_SYSTEM_PROCESSOR arm64
-- CMAKE_SYSTEM_NAME Darwin
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
-- CMake version '3.24.3' using generator 'Unix Makefiles'
-- Found Accelerate: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/vecLib.framework/Headers
-- Found Accelerate (include: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/vecLib.framework/Headers, library: )
After choosing blas, linking to -framework Accelerate
-- Found OpenCV: / (found version "3.4.16") found components: core highgui imgproc imgcodecs
-- OpenCV 3.4.16 found (/opt/local/libexec/opencv3/cmake)
-- OpenCV_LIBS=opencv_core;opencv_highgui;opencv_imgproc;opencv_imgcodecs
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
USE_LAPACK is ON
CMake Error at CMakeLists.txt:520 (add_subdirectory):
add_subdirectory given source
"/Users/marcont/mxnet-1.9.1/3rdparty/googletest/googletest" which is not an
existing directory.

-- Found GTest: gtest
-- Determining F16C support
-- Performing Test COMPILER_SUPPORT_MF16C
-- Performing Test COMPILER_SUPPORT_MF16C - Success
CPU does not support F16C instructions
-- Found Python3: /opt/local/bin/python3.11 (found version "3.11.1") found components: Interpreter
-- Configuring incomplete, errors occurred!
See also "/Users/marcont/mxnet-1.9.1/build/CMakeFiles/CMakeOutput.log".
See also "/Users/marcont/mxnet-1.9.1/build/CMakeFiles/CMakeError.log".

Environment

We recommend using our script for collecting the diagnostic information with the following command

curl --retry 10 -s https://raw.githubusercontent.com/apache/incubator-mxnet/master/tools/diagnose.py | python3

----------Python Info----------
Version : 3.9.6
Compiler : Clang 14.0.0 (clang-1400.0.29.202)
Build : ('default', 'Oct 18 2022 12:41:40')
Arch : ('64bit', '')
------------Pip Info-----------
Version : 21.2.4
Directory : /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/pip
----------MXNet Info-----------
No MXNet installed.
----------System Info----------
Platform : macOS-13.1-arm64-arm-64bit
system : Darwin
node : MacBookAir.local
release : 22.2.0
version : Darwin Kernel Version 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103
----------Hardware Info----------
machine : arm64
processor : arm
b'hw.features.allows_security_research: 0'
b'machdep.cpu.brand_string: Apple M1'
----------Network Test----------
Setting timeout: 10
Timing for MXNet: https://github.com/apache/mxnet, DNS: 0.0115 sec, LOAD: 0.8860 sec.
Error open Gluon Tutorial(en): http://gluon.mxnet.io, HTTP Error 404: Not Found, DNS finished in 0.07685995101928711 sec.
Error open Gluon Tutorial(cn): https://zh.gluon.ai, <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1129)>, DNS finished in 0.0953969955444336 sec.
Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0425 sec, LOAD: 0.3538 sec.
Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0180 sec, LOAD: 0.6607 sec.
Error open Conda: https://repo.continuum.io/pkgs/free/, HTTP Error 403: Forbidden, DNS finished in 0.0006489753723144531 sec.
----------Environment----------

Activity

  1. szha commented on Jan 23, 2023

    @szha
    Member

    See also "/Users/marcont/mxnet-1.9.1/build/CMakeFiles/CMakeOutput.log".
    See also "/Users/marcont/mxnet-1.9.1/build/CMakeFiles/CMakeError.log".

    What are the contents for those log files?

  2. marcontk commented on Jan 24, 2023

    @marcontk
    Author

    here attached files for MXNet-1.9.1

    CMakeError.log.txt
    CMakeOutput.log.txt

    From git clone --recursive https://github.com/apache/mxnet no errors when compiling
    [config.cmake.txt](https://github.com/apache/mxnet/files/10490433/config.cmake.txt (https://www.dropbox.com/s/n8xs6k5d1m8qtc5/output_mxnet_git.txt?dl=0) but using config.cmake from MXNet-1.9.1 does not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions