Skip to content

ESP32-C6 build fails: missing variant include path for pins_arduino.h #46

Closed

Description

@zackees

Summary

fbuild fails to compile Arduino ESP32 core files for the esp32c6 board because the variant include directory (variants/esp32c6/) is not added to the compiler include paths. This causes a fatal error when compiling Arduino.h:

Arduino.h:43:10: fatal error: pins_arduino.h: No such file or directory

Reproduction

fbuild build --board esp32-c6-devkitc-1 --example Blink

The board JSON correctly specifies "variant": "esp32c6", but fbuild's ESP32 orchestrator does not resolve this into the corresponding variant include path.

Expected Behavior

fbuild should read build.variant from the board JSON and add the framework's variants/<variant>/ directory to the include paths, the same way PlatformIO does. PlatformIO builds for esp32c6 succeed — this is fbuild-specific.

Evidence

Board JSON

{
  "build": {
    "core": "esp32",
    "mcu": "esp32c6",
    "variant": "esp32c6"
  }
}

TDD Approach (RED → GREEN)

This issue should be validated with a test that:

  1. RED: Attempts an fbuild compile for esp32c6 and asserts it succeeds — currently fails
  2. GREEN: After fixing the variant include resolution, the same test passes

Suggested test: compile a minimal sketch (void setup(){} void loop(){}) targeting esp32c6 and assert exit code 0.

Workaround

FastLED has temporarily removed esp32c6 from FBUILD_BOARDS so it falls back to PlatformIO. See cross-referenced FastLED issue.

Cross-Reference

  • FastLED tracking issue: (will be filed at FastLED/FastLED and linked here)

Activity

  1. zackees commented on Apr 15, 2026

    @zackees
    MemberAuthor

    Cross-reference: FastLED tracking issue is FastLED/FastLED#2259. Once this is fixed, FastLED will re-enable esp32c6 in fbuild and verify CI passes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions