xgdgsc opened a new issue, #17416:
URL: https://github.com/apache/tvm/issues/17416

    
   ### 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](https://github.com/apache/tvm/wiki/Issue-Triage-Labels) to find the 
relevant tags and add them below in a bullet format (example below).
   
   * needs-triage
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to