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

spdk 使用Makefile编译,执行configure失败 #2808

Closed
re2zero opened this issue Sep 13, 2022 · 2 comments
Closed

spdk 使用Makefile编译,执行configure失败 #2808

re2zero opened this issue Sep 13, 2022 · 2 comments
Labels
Milestone

Comments

@re2zero
Copy link

re2zero commented Sep 13, 2022

Xmake 版本

2.7.1

操作系统版本和架构

Deepin 20.7

描述问题

spdk项目中,不存在 xmake.lua 脚本(默认使用Makefile),执行xmake,检测到存在configure,在调用执行时出错,但是在终端下复制要执行的命令则无错。

$ xmake
note: configure found, try building it or you can run `xmake f --trybuild=` to set buildsystem (pass -y or --confirm=y/n/d to skip confirm)?
please input: y (y/n)
y
checking for platform ... linux
checking for architecture ... x86_64
trap: ERR: bad trap
error: execv(sh ./configure --prefix=/home/zero/work/openfree/spdk-github/build/artifacts) failed(1)
zero@zero-PC:~/work/openfree/spdk-github$ xmake --version
xmake v2.7.1+202209091006, A cross-platform build utility based on Lua
Copyright (C) 2015-present Ruki Wang, tboox.org, xmake.io

手动执行无错:

$ ./configure --prefix=/home/zero/work/openfree/spdk-github/build/artifacts
Using default SPDK env in /home/zero/work/openfree/spdk-github/lib/env_dpdk
Using default DPDK in /home/zero/work/openfree/spdk-github/dpdk/build
Configuring ISA-L (logfile: /home/zero/work/openfree/spdk-github/isa-l/spdk-isal.log)...done.
Creating mk/config.mk...done.
Creating mk/cc.flags.mk...done.
Type 'make' to build.
...

不确定是不是普遍现象,或则和终端有关?
代码中出错应该在 sandbox_os.execv - >  os.execv

可以帮助分析分析,谢谢

### 期待的结果

无错误,执行成功。

### 工程配置

_No response_

### 附加信息和错误日志

_No response_
@re2zero re2zero added the bug label Sep 13, 2022
@waruqi
Copy link
Member

waruqi commented Sep 13, 2022

sh 的问题 sh ./configure 会跪,得用 bash,目前内部默认调用了 sh

@waruqi waruqi added this to the v2.7.2 milestone Sep 13, 2022
@waruqi
Copy link
Member

waruqi commented Sep 13, 2022

应该可以了

@waruqi waruqi closed this as completed Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants