硬汉嵌入式论坛

 找回密码
 立即注册
查看: 725|回复: 2
收起左侧

[其它] esp32-c3 mdf 用vscode编译一直报错

[复制链接]

2

主题

23

回帖

29

积分

新手上路

积分
29
发表于 2022-6-24 08:56:46 | 显示全部楼层 |阅读模式
有没有大佬也在玩esp32,想用mesh组网,乐鑫有提供一个mdf开发库,也是基于idf的,idf的例程在vscode编译没问题,但是mdf编译没有一次通过,应该是哪里配置或者工具链没装好。电脑已经装了cmake和mingw64。错误如下:
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/mingw64/bin/c++.exe
Build flags:
Id flags:  

The output was:
1
cc1plus.exe: fatal error: CMakeCXXCompilerId.cpp: No such file or directory
compilation terminated.


Detecting CXX compiler ABI info failed to compile with the following output:
Change Dir: E:/code/vscode/test/router/build/CMakeFiles/CMakeTmp

Run Build Command(s):E:/code/vscode/tools/ninja/1.10.2/ninja.exe cmTC_2e5e3 && [1/2] Building CXX object CMakeFiles/cmTC_2e5e3.dir/CMakeCXXCompilerABI.cpp.obj

FAILED: CMakeFiles/cmTC_2e5e3.dir/CMakeCXXCompilerABI.cpp.obj

C:\mingw64\bin\c++.exe   -v -o CMakeFiles/cmTC_2e5e3.dir/CMakeCXXCompilerABI.cpp.obj -c E:/code/vscode/tools/cmake/3.20.3/share/cmake-3.20/Modules/CMakeCXXCompilerABI.cpp

Using built-in specs.

COLLECT_GCC=C:\mingw64\bin\c++.exe

Target: x86_64-w64-mingw32

Configured with: ../../../src/gcc-8.1.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysroot=/c/mingw810/x86_64-810-win32-seh-rt_v6-rev0/mingw64 --enable-shared --enable-static --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=win32 --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpc=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-isl=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-pkgversion='x86_64-win32-seh-rev0, Built by MinGW-W64 project' --with-bugurl=https://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-win32-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-win32-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS=' -I/c/mingw810/x86_64-810-win32-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' LDFLAGS='-pipe -fno-ident -L/c/mingw810/x86_64-810-win32-seh-rt_v6-rev0/mingw64/opt/lib -L/c/mingw810/prerequisites/x86_64-zlib-static/lib -L/c/mingw810/prerequisites/x86_64-w64-mingw32-static/lib '

Thread model: win32

gcc version 8.1.0 (x86_64-win32-seh-rev0, Built by MinGW-W64 project)

COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_2e5e3.dir/CMakeCXXCompilerABI.cpp.obj' '-c' '-shared-libgcc' '-mtune=core2' '-march=nocona'

C:/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/cc1plus.exe -quiet -v -iprefix C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/ -U_REENTRANT E:/code/vscode/tools/cmake/3.20.3/share/cmake-3.20/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mtune=core2 -march=nocona -auxbase-strip CMakeFiles/cmTC_2e5e3.dir/CMakeCXXCompilerABI.cpp.obj -version -o C:\Users\Administrator\AppData\Local\Temp\ccpeZdTO.s

GNU C++14 (x86_64-win32-seh-rev0, Built by MinGW-W64 project) version 8.1.0 (x86_64-w64-mingw32)

        compiled by GNU C version 8.1.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.18-GMP



GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072

ignoring duplicate directory "C:/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++"

ignoring duplicate directory "C:/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32"

ignoring duplicate directory "C:/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward"

ignoring duplicate directory "C:/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.1.0/include"

ignoring nonexistent directory "C:/mingw810/x86_64-810-win32-seh-rt_v6-rev0/mingw64C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../include"

ignoring duplicate directory "C:/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed"

ignoring duplicate directory "C:/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/include"

ignoring nonexistent directory "C:/mingw810/x86_64-810-win32-seh-rt_v6-rev0/mingw64/mingw/include"

#include "..." search starts here:

#include <...> search starts here:

C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++

C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32

C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward

C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include

C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed

C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/include

End of search list.

GNU C++14 (x86_64-win32-seh-rev0, Built by MinGW-W64 project) version 8.1.0 (x86_64-w64-mingw32)

        compiled by GNU C version 8.1.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.18-GMP



GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072

Compiler executable checksum: 768151575aea5e2fb63ae2dd7f500530

COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_2e5e3.dir/CMakeCXXCompilerABI.cpp.obj' '-c' '-shared-libgcc' '-mtune=core2' '-march=nocona'

C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/as.exe -v -o CMakeFiles/cmTC_2e5e3.dir/CMakeCXXCompilerABI.cpp.obj C:\Users\Administrator\AppData\Local\Temp\ccpeZdTO.s

GNU assembler version 2.30 (x86_64-w64-mingw32) using BFD version (GNU Binutils) 2.30

Assembler messages:

Fatal error: can't create CMakeFiles/cmTC_2e5e3.dir/CMakeCXXCompilerABI.cpp.obj: No such file or directory

ninja: build stopped: subcommand failed.






回复

使用道具 举报

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
111540
QQ
发表于 2022-6-24 13:35:18 | 显示全部楼层
帮顶,没整过。
回复

使用道具 举报

3

主题

69

回帖

78

积分

初级会员

积分
78
发表于 2022-6-24 13:51:22 | 显示全部楼层
你没发现日志显示用了x86_x64的gcc来编译吗
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-11-1 06:57 , Processed in 0.204928 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表