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

[Bug] build fail when build directory contains space #17416

Open
xgdgsc opened this issue Sep 25, 2024 · 0 comments
Open

[Bug] build fail when build directory contains space #17416

xgdgsc opened this issue Sep 25, 2024 · 0 comments
Labels
needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug

Comments

@xgdgsc
Copy link

xgdgsc commented Sep 25, 2024

Expected behavior

build work no matter build folder name

Actual behavior

build fail when build directory contains space

shows:

[main] 正在生成文件夹: /home/user1/doc/a/apache-tvm-src-v0.17.0.rc0/build-Release-GCC 9.3.1 
[build] 正在启动生成
[proc] 执行命令: /n1/env_centos/7.6/cmake/cmake-3.27.1-linux-x86_64/bin/cmake --build "/home/user1/doc/a/apache-tvm-src-v0.17.0.rc0/build-Release-GCC 9.3.1" --config Release --target tvm_runtime -j 30 --
[build] [  0%] Performing install step for 'project_libbacktrace'
[build] [  0%] Built target tvm_libinfo_objs
[build] make[4]: 警告: jobserver 不存在: 使用 -j1。添加 “+” 到父 make 的规则。
[build]  /usr/bin/mkdir -p '/home/user1/doc/a/apache-tvm-src-v0.17.0.rc0/build-Release-GCC 9.3.1/libbacktrace/lib'
[build]  /bin/sh ./libtool   --mode=install /usr/bin/install -c   libbacktrace.la '/home/user1/doc/a/apache-tvm-src-v0.17.0.rc0/build-Release-GCC 9.3.1/libbacktrace/lib'
[build] libtool: install: /usr/bin/install -c .libs/libbacktrace.lai /home/user1/doc/a/apache-tvm-src-v0.17.0.rc0/build-Release-GCC 9.3.1/libbacktrace/lib/libbacktrace.la
[build] /usr/bin/install: target '9.3.1/libbacktrace/lib/libbacktrace.la' is not a directory
[build] make[5]: *** [install-libLTLIBRARIES] 错误 1
[build] make[4]: *** [install-am] 错误 2
[build] gmake[3]: *** [libbacktrace/src/project_libbacktrace-stamp/project_libbacktrace-install] 错误 2
[build] gmake[2]: *** [CMakeFiles/project_libbacktrace.dir/all] 错误 2
[build] gmake[1]: *** [CMakeFiles/tvm_runtime.dir/rule] 错误 2
[build] gmake: *** [tvm_runtime] 错误 2
[proc] 命令“/n1/env_centos/7.6/cmake/cmake-3.27.1-linux-x86_64/bin/cmake --build "/home/user1/doc/a/apache-tvm-src-v0.17.0.rc0/build-Release-GCC 9.3.1" --config Release --target tvm_runtime -j 30 --”已退出,代码为 2
[driver] 生成完毕: 00:00:00.366
[build] 生成已完成,退出代码为 2

Environment

Centos 7 devtoolset-9 tvm v0.17.0

Steps to reproduce

use vscode and cmake-tools extension set Build Directory to

${workspaceFolder}/build-${buildType}-${buildKit}

use a buildKit that contains space like build-Release-GCC 9.3.1.

use config

${workspaceFolder}/build-${buildType}

thus build-Release as build folder , it builds just fine.

Triage

Please refer to the list of label tags here to find the relevant tags and add them below in a bullet format (example below).

  • needs-triage
@xgdgsc xgdgsc added needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug labels Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug
Projects
None yet
Development

No branches or pull requests

1 participant