Comments (11)
patch /FS 呢
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
What about patch /FS?
from xmake.
cmake + debug + ninja 会设置 /FS,但依然报错。
而且我发现只是 jobs 为 1,也是一样的报错
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
cmake + debug + ninja will set /FS, but still report an error.
And I found that only if jobs is 1, the same error is reported.
from xmake.
cmake + debug + ninja 会设置 /FS,但依然报错。 而且我发现只是 jobs 为 1,也是一样的报错
你说的是 backward-cpp 包么,/Fdpdb\ /FS
这个包的 flags 不对,/Fd
后面应该跟一个可写的 pdb file,例如 /Fdxxx.pdb
而不是 pdb/
目录。。如果 /Fd
后面不是跟的不是可写的 pdb 文件,写入失败,就会报这个错,即使设置了 /FS
所以,其实这个还是 这个包的 cmake 配置,或者 cmake 本身有问题
cl.exe /nologo /TP -DBACKWARD_HAS_BACKTRACE=0 -DBACKWARD_HAS_BACKTRACE_SYMBOL=0 -DBACKWARD_HAS_BFD=0 -DBACKWARD_HAS_DW=0 -DBACKWARD_HAS_DWARF=0 -DBACKWARD_HAS_LIBUNWIND=0 -DBACKWARD_HAS_UNWIND=0 -IC:\Users\wangrunqing\AppData\Local.xmake\cache\packages\2407\b\backward-cpp\v1.6\source /DWIN32 /D_WINDOWS /W3 /GR /EHsc /DWIN32 /D_WINDOWS /W3 /GR /EHsc /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\backward_object.dir\backward.cpp.obj /Fdpdb\ /FS -c C:\Users\wangrunqing\AppData\Local.xmake\cache\packages\2407\b\backward-cpp\v1.6\source\backward.cpp
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
cmake + debug + ninja will set /FS, but still report an error. And I found that only if jobs is 1, the same error is reported.
Are you talking about the backward-cpp package? The flags of /Fdpdb\ /FS
are wrong. /Fd
should be followed by a writable pdb file, such as /Fdxxx.pdb
instead of the pdb/
directory. . If /Fd
is not followed by a pdb file that is not writable and the writing fails, this error will be reported, even if /FS
is set.
So, in fact, this is still the cmake configuration of this package, or there is a problem with cmake itself.
cl.exe /nologo /TP -DBACKWARD_HAS_BACKTRACE=0 -DBACKWARD_HAS_BACKTRACE_SYMBOL=0 -DBACKWARD_HAS_BFD=0 -DBACKWARD_HAS_DW=0 -DBACKWARD_HAS_LIBUNWIND=0 -DBACKWARD_HAS_UNWIND=0 -IC:\Users \wangrunqing\AppData\Local.xmake \cache\packages\2407\b\backward-cpp\v1.6\source /DWIN32 /D_WINDOWS /W3 /GR /EHsc /DWIN32 /D_WINDOWS /W3 /GR /EHsc /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles \backward_object.dir\backward.cpp.obj /Fdpdb\ /FS -c C:\Users\wangrunqing\AppData\Local.xmake\cache\packages\2407\b\backward-cpp\v1.6\source\backward .cpp
from xmake.
嗯,不过目前仓库里有 11 个包需要这样 workaround,那感觉 xmake 这边优化下拷贝 pdb 的逻辑可能更好
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
Well, there are currently 11 packages in the warehouse that require this kind of workaround. I feel that it might be better for xmake to optimize the logic of copying pdb here.
from xmake.
嗯,不过目前仓库里有 11 个包需要这样 workaround,那感觉 xmake 这边优化下拷贝 pdb 的逻辑可能更好
主要还是 cmake 生成的 build.ninja 不会自动创建 build/pdb
目录,导致 /Fdpdb/
会让 cl.exe 生成 pdb/v140.pdb
写入失败。。
另外一种办法就是提前帮它创建好 build/pdb 目录,就行了
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
Hmm, but there are currently 11 packages in the warehouse that require this kind of workaround. I feel that it might be better for xmake to optimize the logic of copying pdb here.
The main reason is that the build.ninja generated by cmake does not automatically create the build/pdb
directory, causing /Fdpdb/
to cause cl.exe to generate pdb/v140.pdb
and fail to write. .
Another way is to create the build/pdb directory for it in advance.
from xmake.
可以试下 这个 patch #5365
from xmake.
Related Issues (20)
- windows 环境下,生成 CMakeLists.txt 文件,使用 cmake + Ninja + tcc 编译时报错 HOT 11
- xmake将xmake test程序的stdout输出存入/tmp导致/tmp目录被塞满 HOT 13
- Allow wildcards in target:add("files", ...) HOT 1
- 设置本地编译器`gnu-rm`实际变成`gcc` HOT 7
- 在if判断内通过set_config设置qt路径无效 HOT 3
- xmake fails to find host macOS toolchain HOT 5
- 使用远程库构建时updating repositories阶段存在版本管理相关报错导致失败 HOT 3
- xmake test 在windows平台无法正确同时设置多个add_test("test",{run_timeout(1000)}) HOT 7
- gnu-rm下,汇编文件week函数无法被同名文件覆盖 HOT 4
- xrepo 很多 action 都失效了,会提示找不到 xmake.lua HOT 5
- mktemp usage messages during configure HOT 2
- Error-prone xmake behaviour when locating system packages HOT 2
- wrong include flag when using system llvm HOT 2
- Build failure when output of `uname -m` contains a space (e.g. on PowerPC Macs) HOT 2
- msvc 编译模块报错:attempt to concatenate a nil value (local 'bmifile') HOT 3
- cmakelists 生成不支持编译器 flags HOT 1
- Add os.timestamp api HOT 7
- Incorrect PKG_CONFIG_PATH path separator with meson HOT 4
- tests/projects/package/llvm_dev/xmake.lua 示例无法正常构建,报错LINK : fatal error LNK1181: 无法打开输入文件“MLIRAMX.lib” HOT 1
- Generated Cmakelists file seems to be wrong when you use conditional add_files()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmake.