-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Unable to cross-compile for 32 bit arm #17239
Comments
Hi, |
@stlevkov, I'm experiencing this issue as well.
I tried looking at the build logs that you were passing, but I wasn't seeing which toolchains were being used. I thought I'd make fixes myself and issue my first-ever PR, but after following the "Contributing Guidelines", and running the I then came across this lengthy thread espressif/esp-idf#9511 which refers to https://docs.espressif.com/projects/esp-idf/en/release-v5.0/esp32/migration-guides/release-5.x/gcc.html#int32-t-and-uint32-t-for-xtensa-compiler. I'll admit I built my own toolchain for my RISC-V esp32-c3, but for due-diligence, I went ahead and downloaded their release of EDIT0: Odd, while walking through the definitions starting with EDIT1: And for my first PR ever that I was going to submit: https://github.com/vindicatorr/connectedhomeip/commit/edf0287a885a1fb8ab9ca7c3066fd5698be5d6f3 EDIT2: Welp, I pulled the EDIT3: Ugh, I guess there's incompatibilties between esp-idf and compiler versions. For example, static asserts no longer requiring a "message" component, or std=gnu++20 not being built-in or something. |
Problem
The project was successfully compiled for bridge and chip-tool using this commit:
commit [c2be9bc]
But after switching to a new:
commit [e92157a]
expected behavior
No errors during compilation
actual behavior
error: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’
system configuration
Architecture: armv7l Cortex-A8
Log:
`../../third_party/connectedhomeip/src/platform/Linux/DeviceInfoProviderImpl.cpp:62:68: note: format string is defined here
62 | ChipLogProgress(DeviceLayer, "Get the fixed label with index:%ld at endpoint:%d", mIndex, mEndpoint);`
Proposed Solution
use "%zd", instead of %ld, for site_t of mIndex argument
The text was updated successfully, but these errors were encountered: