Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Build fails if using WiFi #11634

Closed
Closed
Assignees
Labels
Status: Needs investigationWe need to do some research before taking next steps on this issue
@axtar

Description

Board

ESP32

Device Description

ESP32 custom device

Hardware Configuration

n/a

Version

v3.3.0

IDE Name

VS Code

Operating System

Window 11

Flash frequency

40 Mhz

PSRAM enabled

yes

Upload speed

115200

Description

Build fails with undefined reference to __wrap_esp_log_write and undefined reference to __wrap_esp_log_writev if using WiFi.

Sketch

#include "Arduino.h"
#include "Wifi.h"
void setup() {
 Serial.begin(115200);
 WiFi.softAP("xxx", "yyy");
}
void loop() {
 Serial.println("Hello world!");
 delay(1000);
}

Debug Message

[1600/1603] Linking CXX executable main.elf 
FAILED: main.elf
C:\WINDOWS\system32\cmd.exe /C "cd . && C:\Users\testmaker\.espressif\tools\xtensa-esp-elf\esp-14.2.0_20241119\xtensa-esp-elf\bin\xtensa-esp32-elf-g++.exe -mlongcalls -Wno-frame-address -fno-builtin-memcpy -fno-builtin-memset -fno-builtin-bzero -fno-builtin-stpcpy -fno-builtin-strncpy -nostartfiles -Wl,--cref -Wl,--defsym=IDF_TARGET_ESP32=0 -Wl,--Map=D:/esp/test/hello_world/build/main.map -Wl,--no-warn-rwx-segments -Wl,--orphan-handling=warn -fno-rtti -fno-lto -Wl,--gc-sections -Wl,--warn-common -T esp32.peripherals.ld -T esp32.rom.ld -T esp32.rom.api.ld -T esp32.rom.libgcc.ld -T esp32.rom.newlib-data.ld -T esp32.rom.syscalls.ld -T esp32.rom.libc-funcs.ld -T esp32.rom.newlib-reent-funcs.ld -T memory.ld -T sections.ld @CMakeFiles\main.elf.rsp -o main.elf && cd ."
C:/Users/testmaker/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld.exe: esp-idf/esp_wifi/libesp_wifi.a(esp_adapter.c.obj):(.data.g_wifi_osi_funcs+0x150): undefined reference to `__wrap_esp_log_write'
C:/Users/testmaker/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld.exe: esp-idf/esp_wifi/libesp_wifi.a(esp_adapter.c.obj):(.data.g_wifi_osi_funcs+0x154): undefined reference to `__wrap_esp_log_writev'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Other Steps to Reproduce

No other steps. It compiles if Log Level is set to "No output" or "Use external log wrapper" is enabled

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

Labels

Status: Needs investigationWe need to do some research before taking next steps on this issue

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /