Skip to content

Compilation fails for Arduino 3: fatal error: Network.h: No such file or directory #9782

@mathieucarbou

Description

@mathieucarbou

Board

esp32dev

Device Description

N/A

Hardware Configuration

N/A

Version

v3.0.1

IDE Name

PlatformIO

Operating System

N/A

Flash frequency

N/A

PSRAM enabled

yes

Upload speed

N/A

Description

Can be reproduced with Arduino 3.0.0 and 3.0.1

This happens only when these settings are set:

  • lib_ldf_mode = deep+
  • lib_ldf_mode = chain+

When chain or deep is used, compilation succeeds.

Was working with Arduino 2.x

Is it possible that the network layer refactoring impacts the compilation wen C/C++ Preprocessor conditional syntax. is processed ?

PIO project setup

framework = arduino
platform = espressif32@6.7.0
platform_packages=
  platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.1
  platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.1/esp32-arduino-libs-3.0.1.zip

Debug Message

Compilation error:

   39 | #include "Network.h"
      |          ^~~~~~~~~~~
compilation terminated.
In file included from /Users/mat/.platformio/packages/framework-arduinoespressif32@src-c4332d380c103569bb66c530e15d287f/libraries/WiFi/src/WiFiSTA.h:29,
                 from /Users/mat/.platformio/packages/framework-arduinoespressif32@src-c4332d380c103569bb66c530e15d287f/libraries/WiFi/src/WiFi.h:33,
                 from /Users/mat/.platformio/packages/framework-arduinoespressif32@src-c4332d380c103569bb66c530e15d287f/libraries/WiFi/src/WiFiGeneric.cpp:25:
/Users/mat/.platformio/packages/framework-arduinoespressif32@src-c4332d380c103569bb66c530e15d287f/libraries/WiFi/src/WiFiGeneric.h:39:10: fatal error: Network.h: No such file or directory

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions