Comments (4)
Hi @gopakumarce !
Before GCC release 13 we had to build toolchain for every chip. Before building we just replaced files in binutils/gcc/newlib from this repository xtensa-overlays. It contains all chip-specific information.
After GCC 13 is released the repository xtensa-dynconfig used to build chip-specific dynamic libraries that contains information from xtensa-overlays. (You can find libraries xtensa_esp*.so
in the latest toolchain distribution).
Also, for backward compatibility gcc-wrappers xtensa-[esp32|esp32s2|esp32s3]-elf-*
exists in the distro. When executing they just append your command line with -mdynconfig=xtensa_[esp32|esp32s2|esp32s3].so
. And also sets env variable XTENSA_GNU_CONFIG
.
Note: in general set XTENSA_GNU_CONFIG
is enough to use the right chip-specific configuration. -mdynconfig
option needs to find the right libc
for this chip in multilibs.
Hope this helps you. If you still have any questions, I'd be happy to answer them.
from crosstool-ng.
Hi @gopakumarce !
Before GCC release 13 we had to build toolchain for every chip. Before building we just replaced files in binutils/gcc/newlib from this repository xtensa-overlays. It contains all chip-specific information.
After GCC 13 is released the repository xtensa-dynconfig used to build chip-specific dynamic libraries that contains information from xtensa-overlays. (You can find libraries
xtensa_esp*.so
in the latest toolchain distribution).Also, for backward compatibility gcc-wrappers
xtensa-[esp32|esp32s2|esp32s3]-elf-*
exists in the distro. When executing they just append your command line with-mdynconfig=xtensa_[esp32|esp32s2|esp32s3].so
. And also sets env variableXTENSA_GNU_CONFIG
. Note: in general setXTENSA_GNU_CONFIG
is enough to use the right chip-specific configuration.-mdynconfig
option needs to find the rightlibc
for this chip in multilibs.Hope this helps you. If you still have any questions, I'd be happy to answer them.
Thanks a ton @Lapshin for the response, that would have taken me a long time to figure out. So I was searching for where in the latest esp-idf (makefiles/cmakefiles) do they set XTENSA_GNU_CONFIG or pass -mdynconfig and I cant find it, do you know if they are already using xtensa-esp-elf or they are still using the wrappers ?
from crosstool-ng.
@gopakumarce , it using wrappers. for example see this file: https://github.com/espressif/esp-idf/blob/master/tools/cmake/toolchain-esp32s3.cmake#L5-L8
from crosstool-ng.
@gopakumarce , it using wrappers. for example see this file: https://github.com/espressif/esp-idf/blob/master/tools/cmake/toolchain-esp32s3.cmake#L5-L8
Thx again @Lapshin
from crosstool-ng.
Related Issues (20)
- `make install` fails by undefined symbol errors. HOT 1
- support for arm64-apple-macosx13.0.0 binaries HOT 2
- Generate latest toolchain for ESP8266 - why was support dropped as of 2020r3? HOT 5
- Please upload esp-12.2.0 to platformio registry HOT 26
- Add 8.4.0+2021r2-patch3 back to PlatformIO registry HOT 1
- esp-12.2.0_20230208 missing gdb HOT 4
- git clone modules not found `esp-toolchain-bin-wrappers`and `xtensa-dynconfig` HOT 3
- xtensa-esp32s2-elf-gcc: internal compiler error: Segmentation fault signal terminated program cc1 HOT 2
- GH Actions Build HOT 3
- Support for C++20 ranges HOT 7
- fatal error: type_traits: No such file or directory HOT 2
- 我使用Arduion编译Esp32项目时出错,换用2.0.11\2.0.12\2.0.14\3.0.0 Alpha版本的库和多个IDE版本均报错"\bits\allocator.h:46:10: fatal error: bits/c++allocator.h: No such file or directory" HOT 2
- xtensa: Size optimization regression between GCC 8.4.0 and 13.2.0 HOT 21
- Assembly code macros not working HOT 11
- Build error on google colab HOT 1
- Possible bug in xtensa-esp32-elf-g++ (crosstool-NG esp-2021r2-patch5) 8.4.0 HOT 9
- Update platformio toolchain package registry with latest releases HOT 1
- gold / lld support for parallel linking HOT 9
- Linker from esp-13.2.0-20230928 cannot locate objects or libraries that are specified with absolute paths HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crosstool-ng.