GithubHelp home page GithubHelp logo

Comments (11)

waruqi avatar waruqi commented on August 18, 2024

patch /FS 呢

https://github.com/xmake-io/xmake-repo/blob/2989c39b82d4ca991ec8327b8042029be2d8a91e/packages/s/snmalloc/xmake.lua#L24

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on August 18, 2024

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


What about patch /FS?

https://github.com/xmake-io/xmake-repo/blob/2989c39b82d4ca991ec8327b8042029be2d8a91e/packages/s/snmalloc/xmake.lua#L24

from xmake.

star-hengxing avatar star-hengxing commented on August 18, 2024

cmake + debug + ninja 会设置 /FS,但依然报错。
而且我发现只是 jobs 为 1,也是一样的报错

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on August 18, 2024

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.

waruqi avatar waruqi commented on August 18, 2024

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.

Issues-translate-bot avatar Issues-translate-bot commented on August 18, 2024

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.

star-hengxing avatar star-hengxing commented on August 18, 2024

嗯,不过目前仓库里有 11 个包需要这样 workaround,那感觉 xmake 这边优化下拷贝 pdb 的逻辑可能更好

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on August 18, 2024

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.

waruqi avatar waruqi commented on August 18, 2024

嗯,不过目前仓库里有 11 个包需要这样 workaround,那感觉 xmake 这边优化下拷贝 pdb 的逻辑可能更好

主要还是 cmake 生成的 build.ninja 不会自动创建 build/pdb 目录,导致 /Fdpdb/ 会让 cl.exe 生成 pdb/v140.pdb 写入失败。。

另外一种办法就是提前帮它创建好 build/pdb 目录,就行了

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on August 18, 2024

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.

waruqi avatar waruqi commented on August 18, 2024

可以试下 这个 patch #5365

from xmake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.