question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

xtensa-esp32s2-elf-gcc: error: unrecognized command line option '-Wdocumentation'

See original GitHub issue

Hi!

I have the following CMakeLists.txt

cmake_minimum_required(VERSION 3.16.0)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(esp32s2-ulp-test)

and this platformio.ini


[env:default]
platform = https://github.com/platformio/platform-espressif32.git
board = esp32doit-devkit-v1
framework = espidf
board_build.mcu = esp32s2

Unfortunately pio run gives me:

Compiling .pio/build/default/mbedtls/mbedtls/library/aesni.o
xtensa-esp32s2-elf-gcc: error: unrecognized command line option '-Wdocumentation'

I tried to remove these errors by not compiling mbedtls, but this doesn’t seem possible (it’s just used too much…)

I was mix and matching cmake configurations with another project, that includes the arduino platform (which works for esp32s2), unfortunately I’m neither fluent nor good in the IDF to spot the error here.

I’ve also tried

cmake_minimum_required(VERSION 3.16.0)

set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_C_COMPILER_WORKS 1)
set(CMAKE_CXX_COMPILER_WORKS 1)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(esp32s2-ulp-test  C CXX)

SET(CMAKE_C_COMPILER "$ENV{HOME}/.platformio/packages/toolchain-xtensa32s2/bin/xtensa-esp32s2-elf-gcc")
SET(CMAKE_CXX_COMPILER "$ENV{HOME}/.platformio/packages/toolchain-xtensa32s2/bin/xtensa-esp32s2-elf-g++")
SET(CMAKE_CXX_FLAGS "-mlongcalls -std=gnu++11 -fexceptions -fno-rtti -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -O2 -fstack-protector -MMD")
SET(CMAKE_C_FLAGS "-mlongcalls -std=gnu99 -Wno-old-style-declaration -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -O2 -fstack-protector -MMD")

But it seems I cannot remove the “-Wdocumentation” to my knowledge.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
valeroscommented, Mar 1, 2021

Only the ESP-IDF integration is affected, all other frameworks can be used with CLion.

0reactions
markus-seidlcommented, Mar 1, 2021

Thanks for the prompt answer! I’ve came from the Arduino Expressif PlatfomIO platform, which didn’t have any problems (or maybe I was just lucky).

Read more comments on GitHub >

github_iconTop Results From Across the Web

cc: error: unrecognized command line option '-NDEBUG' #25
cc: error: unrecognized command line option '-NDEBUG' #25 ... This is a bug in the configure script, it seems. There, you have this...
Read more >
unrecognized command line option "-std=c++11" for GCC 4.8.1
I am using mingw obtained via mingw-get from http://www.mingw.org/wiki/Getting_Started. I can not confirm your problem. It might have something to do with ...
Read more >
Clang Compiler User's Manual
Command Line Options. Options to Control Error and Warning Messages. Formatting of Diagnostics; Individual Warning Groups. Options to Control Clang Crash ...
Read more >
week 46.2016 mpi comlie error: unrecognized command line ...
Hi,. I am trying to compile weekly build 46.2016 using "./scons.py bin -j3 mode=release extras=mpi" and get this error: error: unrecognized ...
Read more >
Documentation error in configuring the WebSphere ... - IBM
Symptom. The WebSphere Application Server on z/OS does not start properly and reports the following message: JVMJ9VM007E Command-line option unrecognised: - ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found