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

CMake Error: The source directory "/root/build" does not exist. #257

Open
pariskang opened this issue Jan 27, 2024 · 0 comments
Open

CMake Error: The source directory "/root/build" does not exist. #257

pariskang opened this issue Jan 27, 2024 · 0 comments

Comments

@pariskang
Copy link

您好,我在鲲鹏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
-bash: cd: root: No such file or directory
(chatglm) root@15-0-0-62:
# cd /root
(chatglm) root@15-0-0-62:# cmake -B build
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:
# cmake --build build -j --config Release
Unknown argument -j
Usage: cmake --build

[options] [-- [native-options]]
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++ --version
g++ (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.

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