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

CI: force use more fresh compiler for native on OSX #29

Open
puzrin opened this issue Jan 22, 2021 · 3 comments
Open

CI: force use more fresh compiler for native on OSX #29

puzrin opened this issue Jan 22, 2021 · 3 comments

Comments

@puzrin
Copy link
Collaborator

puzrin commented Jan 22, 2021

Problem:

  • native (emulator) build uses default OS's gcc compiler
  • gcc in OSX is VERY old (they prefer llvm)

As a result, when you try to use some modern libs like ETL, build will fail. See https://github.com/puzrin/dispenser/blob/master/.github/workflows/ci.yml#L52-L54


I consider this as bug of PIO, but problem still exists.

@andrew-elsayeh
Copy link

Yes, this is a good point!

There is no gcc port for the Apple Silicone Macs (M1, M1 Pro and M1 Max)

@puzrin
Copy link
Collaborator Author

puzrin commented Jan 19, 2022

@bobwolff68
Copy link

After lots of gyrations, I did manage to compile and execute this project on a Mac M1. The change was simple. Add a few items to build_flags in platformio.ini
-arch arm64
-I /opt/homebrew/include
-L /opt/homebrew/lib

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

3 participants