Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete the .terra/cxx_parser directory and rerun terra if the "does not match the source" error occurs #54

Open
littleGnAl opened this issue Sep 23, 2024 · 1 comment

Comments

@littleGnAl
Copy link
Contributor

Detect the error below, delete the .terra/cxx_parser directory and rerun terra if the "does not match the source" error occurs.

CMake Error: The source "/xxx/terra_shared_configs/node_modules/@agoraio-extensions/cxx-parser/cxx/cppast_backend/CMakeLists.txt" does not match the source "/xxx/tool/terra/node_modules/@agoraio-extensions/cxx-parser/cxx/cppast_backend/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
@littleGnAl littleGnAl changed the title Delete the .terra/cxx_parser directory and rerun terra if match source error occur Delete the .terra/cxx_parser directory and rerun terra if the "does not match the source" error occurs Sep 23, 2024
@littleGnAl
Copy link
Contributor Author

Full log

+ LLVM_CONFIG_BINARY=
+ [[ ! -z '' ]]
+ echo 'Use the llvm from the system'
Use the llvm from the system
++ which llvm-config
+ LLVM_CONFIG_BINARY=/usr/local/opt/llvm@15/bin/llvm-config
+ cmake -DLLVM_CONFIG_BINARY=/usr/local/opt/llvm@15/bin/llvm-config -DLLVM_DOWNLOAD_URL= -DRUNTIME_OUTPUT_DIRECTORY=/my/path/.terra/overridenode_cxx_parser /my/path/node_modules/@agoraio-extensions/cxx-parser/cxx/cppast_backend
CMake Error: The source "/my/path/node_modules/@agoraio-extensions/cxx-parser/cxx/cppast_backend/CMakeLists.txt" does not match the source "/Users/fenglang/codes/aw/terra_shared_configs/node_modules/@agoraio-extensions/cxx-parser/cxx/cppast_backend/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
Error: Command failed: bash /my/path/node_modules/@agoraio-extensions/cxx-parser/cxx/cppast_backend/build.sh "/my/path/.terra/overridenode_cxx_parser" "--visit-headers=xxx,CustomIAudioDeviceManager.h --include-header-dirs=/my/path/node_modules/@agoraio-extensions/terra_shared_configs/headers/rtc_4.3.2/include --defines-macros="" --output-dir=/my/path/.terra/overridenode_cxx_parser/dump_json_a703d82a375166d79908f8726176e85d.json --pre-process-dir=/my/path/.terra/overridenode_cxx_parser/preProcess@a703d82a375166d79908f8726176e85d --dump-json"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant