xtensa-esp32s2-elf-gcc: error: unrecognized command line option '-Wdocumentation'
See original GitHub issueHi!
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:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Only the ESP-IDF integration is affected, all other frameworks can be used with CLion.
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).