apache / tvm

Open deep learning compiler stack for cpu, gpu and specialized accelerators
https://tvm.apache.org/
Apache License 2.0
11.83k stars 3.48k forks source link

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

Open xgdgsc opened 2 months ago

xgdgsc commented 2 months ago

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).