admin rights need to compile esp-idf sample?
Posted: Mon Oct 10, 2022 6:53 pm
Have installed esp-idf and tools w/ offline installer and admin rights on windows.
When I try to build the blink sample with a normal (non-admin) windows user via powershell, the build fails. Project files reside in user's documents folder; user has full access privileges to esp-idf & tools folders (stored on separate drive)
CMakeError.log says:
Executing the same (again after deleting build folder), in powershell, started with admin rights, succeeds:
I understand that admin privileges may be needed for flashing (at least for Mac) but needing admin rights for compiling confuses me ---
Any idea/suggestion?
Sorry for the long post
Kind regards
Mike
When I try to build the blink sample with a normal (non-admin) windows user via powershell, the build fails. Project files reside in user's documents folder; user has full access privileges to esp-idf & tools folders (stored on separate drive)
Note: "-- Detecting C compiler ABI info - failed"PS D:\Benutzer\Mike\Documents\Projekte\esp32\blink> idf.py build
Executing action: all (aliases: build)
Running cmake in directory d:\benutzer\mike\documents\projekte\esp32\blink\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 d:\benutzer\mike\documents\projekte\esp32\blink"...
-- Found Git: C:/Espressif/tools/idf-git/2.34.2/cmd/git.exe (found version "2.34.1.windows.1")
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - broken
CMake Error at C:/Espressif/tools/cmake/3.23.1/share/cmake-3.23/Modules/CMakeTestCCompiler.cmake:69 (message):
The C compiler
"C:/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: D:/Benutzer/Mike/Documents/Projekte/esp32/blink/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Espressif/tools/ninja/1.10.2/ninja.exe cmTC_affba && [1/2] Building C object CMakeFiles/cmTC_affba.dir/testCCompiler.c.obj
[2/2] Linking C executable cmTC_affba
FAILED: cmTC_affba
cmd.exe /C "cd . && C:\Espressif\tools\xtensa-esp32-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -mlongcalls -Wno-frame-address CMakeFiles/cmTC_affba.dir/testCCompiler.c.obj -o cmTC_affba && cd ."
Das System kann den angegebenen Pfad nicht finden.
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
C:/Espressif/frameworks/esp-idf-v4.4.2/tools/cmake/project.cmake:296 (__project)
CMakeLists.txt:8 (project)
-- Configuring incomplete, errors occurred!
See also "D:/Benutzer/Mike/Documents/Projekte/esp32/blink/build/CMakeFiles/CMakeOutput.log".
See also "D:/Benutzer/Mike/Documents/Projekte/esp32/blink/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1
CMakeError.log says:
Detecting C compiler ABI info failed to compile with the following output:
Change Dir: D:/Benutzer/Mike/Documents/Projekte/esp32/blink/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Espressif/tools/ninja/1.10.2/ninja.exe cmTC_a39f8 && [1/2] Building C object CMakeFiles/cmTC_a39f8.dir/CMakeCCompilerABI.c.obj
Using built-in specs.
COLLECT_GCC=C:\Espressif\tools\xtensa-esp32-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe
Target: xtensa-esp32-elf
Configured with: /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/gcc/configure --build=x86_64-build_pc-linux-gnu --host=x86_64-host_w64-mingw32 --target=xtensa-esp32-elf --prefix=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf --with-local-prefix=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf/xtensa-esp32-elf --with-headers=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf/xtensa-esp32-elf/include --with-newlib --enable-threads=no --disable-shared --with-pkgversion='crosstool-NG esp-2021r2-patch3' --disable-__cxa_atexit --enable-cxx-flags=-ffunction-sections --disable-libgomp --disable-libmudflap --disable-libmpx --disable-libssp --disable-libquadmath --disable-libquadmath-support --with-gmp=/builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --with-mpfr=/builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --with-mpc=/builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --with-isl=/builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --enable-lto --enable-target-optspace --without-long-double-128 --disable-nls --enable-multiarch --enable-languages=c,c++ --disable-libstdcxx-verbose --enable-threads=posix --enable-gcov-custom-rtio --enable-libstdcxx-time=yes --with-gnu-ld
Thread model: posix
gcc version 8.4.0 (crosstool-NG esp-2021r2-patch3)
COLLECT_GCC_OPTIONS='-mlongcalls' '-Wno-frame-address' '-v' '-o' 'CMakeFiles/cmTC_a39f8.dir/CMakeCCompilerABI.c.obj' '-c'
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/cc1.exe -quiet -v -iprefix c:\espressif\tools\xtensa-esp32-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32-elf\bin\../lib/gcc/xtensa-esp32-elf/8.4.0/ C:/Espressif/tools/cmake/3.23.1/share/cmake-3.23/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mlongcalls -auxbase-strip CMakeFiles/cmTC_a39f8.dir/CMakeCCompilerABI.c.obj -Wno-frame-address -version -o C:\Users\Mike\AppData\Local\Temp\cc9fp5sI.s
GNU C17 (crosstool-NG esp-2021r2-patch3) version 8.4.0 (xtensa-esp32-elf)
compiled by GNU C version 6.3.0 20170516, GMP version 6.2.0, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.19-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring duplicate directory "c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/lib/gcc/../../lib/gcc/xtensa-esp32-elf/8.4.0/include"
ignoring duplicate directory "c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/lib/gcc/../../lib/gcc/xtensa-esp32-elf/8.4.0/include-fixed"
ignoring duplicate directory "c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/lib/gcc/../../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/sys-include"
ignoring duplicate directory "c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/lib/gcc/../../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/include"
#include "..." search starts here:
#include <...> search starts here:
c:\espressif\tools\xtensa-esp32-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32-elf\bin\../lib/gcc/xtensa-esp32-elf/8.4.0/include
c:\espressif\tools\xtensa-esp32-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32-elf\bin\../lib/gcc/xtensa-esp32-elf/8.4.0/include-fixed
c:\espressif\tools\xtensa-esp32-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32-elf\bin\../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/sys-include
c:\espressif\tools\xtensa-esp32-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32-elf\bin\../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/include
End of search list.
GNU C17 (crosstool-NG esp-2021r2-patch3) version 8.4.0 (xtensa-esp32-elf)
compiled by GNU C version 6.3.0 20170516, GMP version 6.2.0, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.19-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 2e89de96d13713538441c408d280c71a
COLLECT_GCC_OPTIONS='-mlongcalls' '-Wno-frame-address' '-v' '-o' 'CMakeFiles/cmTC_a39f8.dir/CMakeCCompilerABI.c.obj' '-c'
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/as.exe --traditional-format --longcalls -o CMakeFiles/cmTC_a39f8.dir/CMakeCCompilerABI.c.obj C:\Users\Mike\AppData\Local\Temp\cc9fp5sI.s
COMPILER_PATH=c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/;c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../libexec/gcc/;c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/
LIBRARY_PATH=c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/;c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/;c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/lib/
COLLECT_GCC_OPTIONS='-mlongcalls' '-Wno-frame-address' '-v' '-o' 'CMakeFiles/cmTC_a39f8.dir/CMakeCCompilerABI.c.obj' '-c'
[2/2] Linking C executable cmTC_a39f8
FAILED: cmTC_a39f8
cmd.exe /C "cd . && C:\Espressif\tools\xtensa-esp32-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -mlongcalls -Wno-frame-address -v CMakeFiles/cmTC_a39f8.dir/CMakeCCompilerABI.c.obj -o cmTC_a39f8 && cd ."
Das System kann den angegebenen Pfad nicht finden.
Using built-in specs.
COLLECT_GCC=C:\Espressif\tools\xtensa-esp32-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe
COLLECT_LTO_WRAPPER=c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/lto-wrapper.exe
Target: xtensa-esp32-elf
Configured with: /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/gcc/configure --build=x86_64-build_pc-linux-gnu --host=x86_64-host_w64-mingw32 --target=xtensa-esp32-elf --prefix=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf --with-local-prefix=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf/xtensa-esp32-elf --with-headers=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf/xtensa-esp32-elf/include --with-newlib --enable-threads=no --disable-shared --with-pkgversion='crosstool-NG esp-2021r2-patch3' --disable-__cxa_atexit --enable-cxx-flags=-ffunction-sections --disable-libgomp --disable-libmudflap --disable-libmpx --disable-libssp --disable-libquadmath --disable-libquadmath-support --with-gmp=/builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --with-mpfr=/builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --with-mpc=/builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --with-isl=/builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --enable-lto --enable-target-optspace --without-long-double-128 --disable-nls --enable-multiarch --enable-languages=c,c++ --disable-libstdcxx-verbose --enable-threads=posix --enable-gcov-custom-rtio --enable-libstdcxx-time=yes --with-gnu-ld
Thread model: posix
gcc version 8.4.0 (crosstool-NG esp-2021r2-patch3)
COMPILER_PATH=c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/;c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../libexec/gcc/;c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/
LIBRARY_PATH=c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/;c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/;c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/lib/
COLLECT_GCC_OPTIONS='-mlongcalls' '-Wno-frame-address' '-v' '-o' 'cmTC_a39f8'
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/collect2.exe -plugin c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/liblto_plugin-0.dll -plugin-opt=c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/lto-wrapper.exe -plugin-opt=-fresolution=C:\Users\Mike\AppData\Local\Temp\ccbFhVIM.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lnosys -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -o cmTC_a39f8 c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/lib/crt0.o c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/crti.o c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/crtbegin.o -Lc:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0 -Lc:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc -Lc:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/lib CMakeFiles/cmTC_a39f8.dir/CMakeCCompilerABI.c.obj -lgcc -lc -lnosys -lc -lgcc c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/crtend.o c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/crtn.o
COLLECT_GCC_OPTIONS='-mlongcalls' '-Wno-frame-address' '-v' '-o' 'cmTC_a39f8'
ninja: build stopped: subcommand failed.
Determining if the C compiler works failed with the following output:
Change Dir: D:/Benutzer/Mike/Documents/Projekte/esp32/blink/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Espressif/tools/ninja/1.10.2/ninja.exe cmTC_affba && [1/2] Building C object CMakeFiles/cmTC_affba.dir/testCCompiler.c.obj
[2/2] Linking C executable cmTC_affba
FAILED: cmTC_affba
cmd.exe /C "cd . && C:\Espressif\tools\xtensa-esp32-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -mlongcalls -Wno-frame-address CMakeFiles/cmTC_affba.dir/testCCompiler.c.obj -o cmTC_affba && cd ."
Das System kann den angegebenen Pfad nicht finden.
ninja: build stopped: subcommand failed.
Executing the same (again after deleting build folder), in powershell, started with admin rights, succeeds:
Same results using cmd console vs powershellPS D:\Benutzer\Mike\Documents\Projekte\esp32\blink> idf.py build
Executing action: all (aliases: build)
Running cmake in directory d:\benutzer\mike\documents\projekte\esp32\blink\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 d:\benutzer\mike\documents\projekte\esp32\blink"...
-- Found Git: C:/Espressif/tools/idf-git/2.34.2/cmd/git.exe (found version "2.34.1.windows.1")
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file D:/Benutzer/Mike/Documents/Projekte/esp32/blink/sdkconfig
Loading defaults file D:/Benutzer/Mike/Documents/Projekte/esp32/blink/sdkconfig.defaults...
-- Found Python3: C:/Espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe (found version "3.8.7") found components: Interpreter
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "blink" version: 1
-- Adding linker script D:/Benutzer/Mike/Documents/Projekte/esp32/blink/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_system/ld/esp32/sections.ld.in
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.4.2/components/soc/esp32/ld/esp32.peripherals.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor cmock coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_lcd esp_local_ctrl esp_netif esp_phy esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap idf_test ieee802154 jsmn json led_strip libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Espressif/frameworks/esp-idf-v4.4.2/components/app_trace C:/Espressif/frameworks/esp-idf-v4.4.2/components/app_update C:/Espressif/frameworks/esp-idf-v4.4.2/components/asio C:/Espressif/frameworks/esp-idf-v4.4.2/components/bootloader C:/Espressif/frameworks/esp-idf-v4.4.2/components/bootloader_support C:/Espressif/frameworks/esp-idf-v4.4.2/components/bt C:/Espressif/frameworks/esp-idf-v4.4.2/components/cbor C:/Espressif/frameworks/esp-idf-v4.4.2/components/cmock C:/Espressif/frameworks/esp-idf-v4.4.2/components/coap C:/Espressif/frameworks/esp-idf-v4.4.2/components/console C:/Espressif/frameworks/esp-idf-v4.4.2/components/cxx C:/Espressif/frameworks/esp-idf-v4.4.2/components/driver C:/Espressif/frameworks/esp-idf-v4.4.2/components/efuse C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp-tls C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp32 C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_adc_cal C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_common C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_eth C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_event C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_gdbstub C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_hid C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_http_client C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_http_server C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_https_ota C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_https_server C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_hw_support C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_ipc C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_lcd C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_local_ctrl C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_netif C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_phy C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_pm C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_ringbuf C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_rom C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_serial_slave_link C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_system C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_timer C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_websocket_client C:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_wifi C:/Espressif/frameworks/esp-idf-v4.4.2/components/espcoredump C:/Espressif/frameworks/esp-idf-v4.4.2/components/esptool_py C:/Espressif/frameworks/esp-idf-v4.4.2/components/expat C:/Espressif/frameworks/esp-idf-v4.4.2/components/fatfs C:/Espressif/frameworks/esp-idf-v4.4.2/components/freemodbus C:/Espressif/frameworks/esp-idf-v4.4.2/components/freertos C:/Espressif/frameworks/esp-idf-v4.4.2/components/hal C:/Espressif/frameworks/esp-idf-v4.4.2/components/heap C:/Espressif/frameworks/esp-idf-v4.4.2/components/idf_test C:/Espressif/frameworks/esp-idf-v4.4.2/components/ieee802154 C:/Espressif/frameworks/esp-idf-v4.4.2/components/jsmn C:/Espressif/frameworks/esp-idf-v4.4.2/components/json C:/Espressif/frameworks/esp-idf-v4.4.2/examples/common_components/led_strip C:/Espressif/frameworks/esp-idf-v4.4.2/components/libsodium C:/Espressif/frameworks/esp-idf-v4.4.2/components/log C:/Espressif/frameworks/esp-idf-v4.4.2/components/lwip D:/Benutzer/Mike/Documents/Projekte/esp32/blink/main C:/Espressif/frameworks/esp-idf-v4.4.2/components/mbedtls C:/Espressif/frameworks/esp-idf-v4.4.2/components/mdns C:/Espressif/frameworks/esp-idf-v4.4.2/components/mqtt C:/Espressif/frameworks/esp-idf-v4.4.2/components/newlib C:/Espressif/frameworks/esp-idf-v4.4.2/components/nghttp C:/Espressif/frameworks/esp-idf-v4.4.2/components/nvs_flash C:/Espressif/frameworks/esp-idf-v4.4.2/components/openssl C:/Espressif/frameworks/esp-idf-v4.4.2/components/openthread C:/Espressif/frameworks/esp-idf-v4.4.2/components/partition_table C:/Espressif/frameworks/esp-idf-v4.4.2/components/perfmon C:/Espressif/frameworks/esp-idf-v4.4.2/components/protobuf-c C:/Espressif/frameworks/esp-idf-v4.4.2/components/protocomm C:/Espressif/frameworks/esp-idf-v4.4.2/components/pthread C:/Espressif/frameworks/esp-idf-v4.4.2/components/sdmmc C:/Espressif/frameworks/esp-idf-v4.4.2/components/soc C:/Espressif/frameworks/esp-idf-v4.4.2/components/spi_flash C:/Espressif/frameworks/esp-idf-v4.4.2/components/spiffs C:/Espressif/frameworks/esp-idf-v4.4.2/components/tcp_transport C:/Espressif/frameworks/esp-idf-v4.4.2/components/tcpip_adapter C:/Espressif/frameworks/esp-idf-v4.4.2/components/tinyusb C:/Espressif/frameworks/esp-idf-v4.4.2/components/ulp C:/Espressif/frameworks/esp-idf-v4.4.2/components/unity C:/Espressif/frameworks/esp-idf-v4.4.2/components/usb C:/Espressif/frameworks/esp-idf-v4.4.2/components/vfs C:/Espressif/frameworks/esp-idf-v4.4.2/components/wear_levelling C:/Espressif/frameworks/esp-idf-v4.4.2/components/wifi_provisioning C:/Espressif/frameworks/esp-idf-v4.4.2/components/wpa_supplicant C:/Espressif/frameworks/esp-idf-v4.4.2/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Benutzer/Mike/Documents/Projekte/esp32/blink/build
Running ninja in directory d:\benutzer\mike\documents\projekte\esp32\blink\build
Executing "ninja all"...
[26/1035] Generating ../../partition_table/partition-table.bin
Partition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
*******************************************************************************
[1027/1035] Performing configure step for 'bootloader'
-- Found Git: C:/Espressif/tools/idf-git/2.34.2/cmd/git.exe (found version "2.34.1.windows.1")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file D:/Benutzer/Mike/Documents/Projekte/esp32/blink/sdkconfig
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.4.2/components/soc/esp32/ld/esp32.peripherals.ld
...
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Benutzer/Mike/Documents/Projekte/esp32/blink/build/bootloader
[1031/1035] Performing build step for 'bootloader'
[1/97] Generating project_elf_src_esp32.c
[2/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/soc_include_legacy_warn.c.obj
...
[96/97] Generating binary image from built executable
esptool.py v3.3.2-dev
Creating esp32 image...
Merged 1 ELF section
Successfully created esp32 image.
Generated D:/Benutzer/Mike/Documents/Projekte/esp32/blink/build/bootloader/bootloader.bin
[97/97] cmd.exe /C "cd /D D:\Benutzer\Mike\Documents\Projekte\esp32\blink\build\bootloader\esp-idf\esptool_py && C:\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe C:/Espressif/frameworks/esp-idf-v4.4.2/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 D:/Benutzer/Mike/Documents/Projekte/esp32/blink/build/bootloader/bootloader.bin"
Bootloader binary size 0x6330 bytes. 0xcd0 bytes (11%) free.
[1034/1035] Generating binary image from built executable
esptool.py v3.3.2-dev
Creating esp32 image...
Merged 2 ELF sections
Successfully created esp32 image.
Generated D:/Benutzer/Mike/Documents/Projekte/esp32/blink/build/blink.bin
[1035/1035] cmd.exe /C "cd /D D:\Benutzer\Mike\Documents\Projekte\esp32\blink\build\esp-idf\esptool_py &&...uild/partition_table/partition-table.bin D:/Benutzer/Mike/Documents/Projekte/esp32/blink/build/blink.bin"
blink.bin binary size 0x2bc00 bytes. Smallest app partition is 0x100000 bytes. 0xd4400 bytes (83%) free.
Project build complete. To flash, run this command:
C:\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe C:\Espressif\frameworks\esp-idf-v4.4.2\components\esptool_py\esptool\esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 build\bootloader\bootloader.bin 0x8000 build\partition_table\partition-table.bin 0x10000 build\blink.bin
or run 'idf.py -p (PORT) flash'
I understand that admin privileges may be needed for flashing (at least for Mac) but needing admin rights for compiling confuses me ---
Any idea/suggestion?
Sorry for the long post
Kind regards
Mike