7/9/2023 0 Comments Arduino for mac m1![]() It will be interesting to see what happens on the public 12.3 release when it comes out. I found this - which might be related and sounds like maybe 12.3 beta "fixed" the behaviour or did something else entirely that's not mentioned in release notes relating to dlopen/dylibs and paths. ![]() Referenced from: tried: '/opt/osxcross/target/bin/./x86_64-apple-darwin12/lib/libstdc++.6.dylib' (no such file), '/opt/osxcross/target/x86_64-apple-darwin12/lib/libstdc++.6.dylib' (no such file)Īs a test, I tried changing the dylib path inside the LTO plugin from absolute to relative using install_name_tool -change /opt/osxcross/target/bin/./x86_64-apple-darwin12/lib/libstdc++.6.dylib libstdc++.6.dylib liblto_plugin.0.so and interestingly it stops the error and builds are successful and run. xtensa-esp32-elf-g++ -Xlinker -vĬollect2 version -plugin -plugin-opt=-fresolution=/var/folders/j3/kf4rzjd54g9g5kg48n6fgdhw0000gn/T//ccQ2wW2v.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lnosys -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -v -lstdc++ -lm -lgcc -lc -lnosys -lc -lgcc error loading plugin: 0x0002): Library not loaded: /opt/osxcross/target/bin/./x86_64-apple-darwin12/lib/libstdc++.6.dylib Platform = as mentioned in #5436 (comment) works $. However, 2.0.2 fetches the gcc8_4_r2 toolchain which still has a liblto_plugin that is linked to the /opt/osxcross absolute path so I don't see how LTO could ever work on MacOS with any of these I just tried your platform package and although I got a tonne of ranlib warnings with the same liblto_plugin/libstdc++ message, it built successfully. ![]() Updating the URL to as per the current docs then gave me 2.0.2 which has -fno-lto in platform.txt already and works fine (after the python3 changes). The same applies to the Arduino IDE as I just noticed my Boards Manager URL was set to which only has up to 1.0.6. Reason: tried: '/opt/osxcross/target/bin/./x86_64-apple-darwin12/lib/libstdc++.6.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/opt/osxcross/target/x86_64-apple-darwin12/lib/libstdc++.6.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))Īh ha, platformio-build-esp32.py in this repo at has a lot of LINKFLAG options set including -fno-lto, however the latest version of framework-arduinoespressif32 (3.10006.210326) from the PlatformIO registry has significantly less options and does not have -fno-lto.
0 Comments
Leave a Reply. |