modularml / mojo

The Mojo Programming Language
https://docs.modular.com/mojo/manual/
Other
22.98k stars 2.59k forks source link

[BUG]: can't install mojo on mac m1 pro #1719

Open eamag opened 8 months ago

eamag commented 8 months ago

Bug description

Can't install,

                  memcpy (&initiate_plaintext[crypto_box_ZEROBYTES + 48 + 80],
                           ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      fatal error: too many errors emitted, stopping now [-ferror-limit=]
      20 errors generated.
      ************************************************
      ************************************************
      error: command '/usr/bin/clang++' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyzmq
ERROR: Could not build wheels for pyzmq, which is required to install pyproject.toml-based projects

Probably at clang++ -std=c++11 -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -DZMQ_HAVE_CURVE=1 -DZMQ_USE_TWEETNACL=1 -DZMQ_USE_KQUEUE=1 -DZMQ_IOTHREADS_USE_KQUEUE=1 -DZMQ_POLL_BASED_ON_POLL=1 -Ibundled/zeromq/include -Ibundled -I/Users/...

Steps to reproduce

conda create --name pet
conda activate pet
modular install mojo

System information

- MacOS 14.3 
- modular 0.4.1 (2d8afe15)
smuniraj2018 commented 7 months ago

Can you please do try

brew update
brew upgrade modular

and let us know if you still see this issue using our modular-cli 0.5.1?