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

启用asan并安装assimp时报错 #5314

Closed
Candlend opened this issue Sep 22, 2024 · 1 comment · Fixed by #5321
Closed

启用asan并安装assimp时报错 #5314

Candlend opened this issue Sep 22, 2024 · 1 comment · Fixed by #5321
Labels

Comments

@Candlend
Copy link

Xmake 版本

2.9.5

操作系统版本和架构

Windows 11 23H2

描述问题

xrepo install -f "asan=true" assimp安装失败

期待的结果

启用asan并安装assimp成功

工程配置

set_policy("build.sanitizer.address", true)
add_requires("assimp")

附加信息和错误日志

xrepo install -f "asan=true" assimp
checking for Microsoft Visual Studio (x64) version ... 2022
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
-> assimp v5.4.2 [runtimes:"MT", asan:y]
please input: y (y/n/m)
y
=> install assimp v5.4.2 .. failed

LINK : warning LNK4044: 无法识别的选项“/fsanitize=address”;已忽略
assimp-vc143-mtd.lib(Importer.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“2”不匹配值“0”(_8FCA86DA0F1149108737A7927B309A60.o 中)
assimp-vc143-mtd.lib(Importer.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MTd_StaticDebug”不匹配值“MT_StaticRelease”(_8FCA86DA0F1149108737A7927B309A60.o 中)
assimp-vc143-mtd.lib(Version.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“2”不匹配值“0”(_8FCA86DA0F1149108737A7927B309A60.o 中)
assimp-vc143-mtd.lib(Version.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MTd_StaticDebug”不匹配值“MT_StaticRelease”(_8FCA86DA0F1149108737A7927B309A60.o 中)
assimp-vc143-mtd.lib(AssertHandler.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“2”不匹配值“0”(_8FCA86DA0F1149108737A7927B309A60.o 中)
assimp-vc143-mtd.lib(AssertHandler.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MTd_StaticDebug”不匹配值“MT_StaticRelease”(_8FCA86DA0F1149108737A7927B309A60.o 中)
assimp-vc143-mtd.lib(BaseProcess.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“2”不匹配值“0”(_8FCA86DA0F1149108737A7927B309A60.o 中)
assimp-vc143-mtd.lib(BaseProcess.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MTd_StaticDebug”不匹配值“MT_StaticRelease”(_8FCA86DA0F1149108737A7927B309A60.o 中)
assimp-vc143-mtd.lib(scene.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“2”不匹配值“0”(_8FCA86DA0F1149108737A7927B309A60.o 中)
assimp-vc143-mtd.lib(scene.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MTd_StaticDebug”不匹配值“MT_StaticRelease”(_8FCA86DA0F1149108737A7927B309A60.o 中)
assimp-vc143-mtd.lib(DefaultLogger.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“2”不匹配值“0”(_8FCA86DA0F1149108737A7927B309A60.o 中)
assimp-vc143-mtd.lib(DefaultLogger.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MTd_StaticDebug”不匹配值“MT_StaticRelease”(_8FCA86DA0F1149108737A7927B309A60.o 中)
assimp-vc143-mtd.lib(ScenePreprocessor.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“2”不匹配值“0”(_8FCA86DA0F1149108737A7927B309A60.o 中)
assimp-vc143-mtd.lib(ScenePreprocessor.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MTd_StaticDebug”不匹配值“MT_StaticRelease”(_8FCA86DA0F1149108737A7927B309A60.o 中)
assimp-vc143-mtd.lib(BaseImporter.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“2”不匹配值“0”(_8FCA86DA0F1149108737A7927B309A60.o 中)
assimp-vc143-mtd.lib(BaseImporter.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MTd_StaticDebug”不匹配值“MT_StaticRelease”(_8FCA86DA0F1149108737A7927B309A60.o 中)
if you want to get more verbose errors, please see:
-> C:\Users\user\AppData\Local.xmake\cache\packages\2409\a\assimp\v5.4.2\installdir.failed\logs\install.txt
error: install failed!
error: execv(C:\Users\user\xmake\xmake.exe require -j 26 --extra={system=false,configs={asan=true}} assimp) failed(-1)

@Candlend Candlend added the bug label Sep 22, 2024
@waruqi waruqi transferred this issue from xmake-io/xrepo Sep 22, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: An error occurs when enabling asan and installing assimp

@star-hengxing star-hengxing linked a pull request Sep 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants