You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correction of build script, because of linking problem:
esp-idf/main/_swiftcode.o: can't link soft-float modules with single-float modules
failed to merge target specific data of file esp-idf/main/_swiftcode.o
The solution is to add -Xcc -march=rv32imafc -Xcc -mabi=ilp32f to the swiftc command line to ensure the Swift compiler uses the same architecture and ABI as the C and C++ compilers.
Plus, add -Xlinker -march=rv32imafc -Xlinker -mabi=ilp32f to pass these flags to the linker.
The build of ESP32 Led strip example for ESP32-P4 which is RISC-V IMACF requires:
Correction in linker mentioned in esp32-led-strip-sdk unable to build in VS Code using PlatformIO #17 (comment)
Correction of build script, because of linking problem:
The solution is to add
-Xcc -march=rv32imafc -Xcc -mabi=ilp32fto the swiftc command line to ensure the Swift compiler uses the same architecture and ABI as the C and C++ compilers.Plus, add
-Xlinker -march=rv32imafc -Xlinker -mabi=ilp32fto pass these flags to the linker.Updated
main/CMakeLists.txtlook like this: