Fix ESP32-S2 firmware build errors#2
Merged
Conversation
Agent-Logs-Url: https://github.com/Tecnologic/cymon/sessions/2e0ada59-da81-4ccd-abe0-ed2795c3b25e Co-authored-by: Tecnologic <1442404+Tecnologic@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
Tecnologic
May 22, 2026 16:46
View session
Owner
|
@copilot build still fails |
…uppress GCC -Wmissing-field-initializers Agent-Logs-Url: https://github.com/Tecnologic/cymon/sessions/00860418-9a53-448e-a63a-0332acd88ec0 Co-authored-by: Tecnologic <1442404+Tecnologic@users.noreply.github.com>
Contributor
Author
The root cause was GCC's |
Owner
|
@copilot fix build errors and verify that pipeline is green |
… flags Agent-Logs-Url: https://github.com/Tecnologic/cymon/sessions/de85d3bc-198e-4652-9792-13665d807d86 Co-authored-by: Tecnologic <1442404+Tecnologic@users.noreply.github.com>
…stdbit.h absence Agent-Logs-Url: https://github.com/Tecnologic/cymon/sessions/de85d3bc-198e-4652-9792-13665d807d86 Co-authored-by: Tecnologic <1442404+Tecnologic@users.noreply.github.com>
…rols stdlib.h inclusion order Agent-Logs-Url: https://github.com/Tecnologic/cymon/sessions/de85d3bc-198e-4652-9792-13665d807d86 Co-authored-by: Tecnologic <1442404+Tecnologic@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Tecnologic/cymon/sessions/de85d3bc-198e-4652-9792-13665d807d86 Co-authored-by: Tecnologic <1442404+Tecnologic@users.noreply.github.com>
Contributor
Author
Both pipelines are now green on commit
|
Tecnologic
approved these changes
May 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Four
-Werrorcompilation failures in the ESP-IDF firmware build.Changes
src/main.cpp— Remove invalid capture ofstaticlocaltransportin theSetRxCallbacklambda.src/main.cpp— Add#include "esp_efuse_table.h"to bringESP_EFUSE_OPTIONAL_UNIQUE_IDinto scope.src/web/web_server.cpp— Explicitly initialize all sevenhttpd_uri_tfields in every URI entry to silence-Werror=missing-field-initializers.lib/libcanard/canard_pio.c(new) — PlatformIO/ESP-IDF wrapper forcanard.cthat pre-includes<stdlib.h>with_GNU_SOURCEand_BSD_SOURCEsuppressed. This prevents Espressif's picolibc from declaringlong int random(void), which conflicts with libcanard's internalstatic uint64_t random(canard_t*, uint64_t)(ESP-IDF'sassert.hunconditionally includesstdlib.h, surfacing the conflict).lib/libcanard/library.json(new) — Compiles onlycanard_pio.cviasrcFilter, uses-std=c11to avoid the C23stdbit.hrequirement absent from the Xtensa toolchain, and-Wno-errorto suppress the ESP-IDF toolchain's-fuse-cxa-atexit(a C++-only flag incorrectly present in the sharedcflagsresponse file).lib/o1heap/library.json(new) — Same-std=c11and-Wno-errorflags to fix the identical-fuse-cxa-atexitissue for o1heap.