CMake Error: The source directory "/root/build" does not exist.
pariskang opened this issue · comments
您好,我在鲲鹏920(arm)上部署chatglm3-6b-32k,但cmake -B build出现以下问题,帮我看看如何解决,谢谢(gcc g++ 7.5.0 cmake version 3.28.1):
(chatglm) root@15-0-0-62:~# /opt/cmake/bin/cmake --version
cmake version 3.28.1
CMake suite maintained and supported by Kitware (kitware.com/cmake).
(chatglm) root@15-0-0-62:# cd root# cd /root
-bash: cd: root: No such file or directory
(chatglm) root@15-0-0-62:
(chatglm) root@15-0-0-62:# cmake -B build# cmake --build build -j --config Release
CMake Error: The source directory "/root/build" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
(chatglm) root@15-0-0-62:
Unknown argument -j
Usage: cmake --build
Options: = Project binary directory to be built. --target = Build instead of default targets. May only be specified once. --config = For multi-configuration tools, choose . --clean-first = Build target 'clean' first, then build. (To clean only, use --target 'clean'.) --use-stderr = Ignored. Behavior is default in CMake >= 3.0. -- = Pass remaining options to the native tool. (chatglm) root@15-0-0-62:~# gcc --version gcc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
(chatglm) root@15-0-0-62:# g++ --version18.04) 7.5.0
g++ (Ubuntu/Linaro 7.5.0-3ubuntu1
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.