question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't work on macOS Monterey 12.3!

See original GitHub issue

Since updating to macOS Monterey 12.3 there have been issues trying to upload code to my ESP32.

macOS Monterey 12.3 officially removes support for python 2.7

I got the Arduino IDE to work by following this guide: https://github.com/espressif/arduino-esp32/issues/4717

Couldn’t achieve the same in platformio, just keep getting the following message:

/Users/VladislavS/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: /Users/VladislavS/.platformio/packages/toolchain-xtensa32/bin/../libexec/gcc/xtensa-esp32-elf/5.2.0/liblto_plugin.so: error loading plugin: dlopen(/Users/VladislavS/.platformio/packages/toolchain-xtensa32/bin/../libexec/gcc/xtensa-esp32-elf/5.2.0/liblto_plugin.so, 0x0002): Library not loaded: /opt/osxcross/target/bin/../x86_64-apple-darwin12/lib/libstdc++.6.dylib
  Referenced from: /Users/VladislavS/.platformio/packages/toolchain-xtensa32/libexec/gcc/xtensa-esp32-elf/5.2.0/liblto_plugin.0.so
  Reason: tried: '/opt/osxcross/target/bin/../x86_64-apple-darwin12/lib/libstdc++.6.dylib' (no such file)
collect2: error: ld returned 1 exit status
*** [.pio/build/esp32dev/firmware.elf] Error 1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
VladislavSmolyanoycommented, Feb 22, 2022

Found a solution that works on M1! https://github.com/espressif/arduino-esp32/issues/6269#issuecomment-1046149252

platform.ini:

extra_scripts =
	pre:disable_lto.py

Create a new file named disable_lto.py:

Import("env")
env.Append(
  LINKFLAGS=[
      "-fno-use-linker-plugin",
  ]
)
0reactions
valeroscommented, Apr 18, 2022

Closing the issue as everything works on the stable MacOS 12.3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

macOS Monterey problems: how to fix the most common issues
The most commonly reported macOS Monterey problems include battery drain, trackpad and mouse issues, missing features and stuck apps that ...
Read more >
macOS 12 Monterey: Versions, problems, and fixes - Macworld
Monterey won't download or install · Battery life issues · Display not working · Games controller issues · Bricked Macs · Memory management...
Read more >
10 Common macOS Monterey Problems & How to Fix Them
The current list of macOS Monterey problems includes severe battery drain, Wi-Fi issues, UI lag, crashes, issues with first and third-party apps ...
Read more >
Problem updating to Monterey 12.3 from 12.2.1
I have two problems with Mac OS Monterey. First, my 14" MacBook Pro will not install the update. I have tried this from...
Read more >
Monterey Problems: How to fix the most common macOS 12 ...
Reboot your Mac in Safe Mode: Apple menu > Shut down > Hold down Shift when restarting your Mac > release Shift once...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found