MinGW“制作”开始很慢
经过一番痛苦和磨难后,我设法安装了 MinGW 在计算机上而不是网络上工作所需的一切。
它工作了几天,但现在我在发出“make”命令来构建我的项目后,在任何事情开始发生之前都经历了很长的延迟。
我尝试禁用网络,如下所示: 为什么 MinGW 非常慢? 但这没有帮助。
请注意,缓慢的并不是实际的编译/链接进度,而是这些进程的启动似乎需要很长时间。 5-10 分钟。除非我刚刚这样做,然后它会在 10-30 秒内开始。
我知道,过去将这些磁带加载到 Commodore 上需要花费更长的时间,但多年来我已经变得不耐烦了。
有什么想法吗?
After some pain and suffering, i managed to install everything necessary for MinGW to work on a computer not on the network.
It worked nicely for a couple days, but now I'm experiencing very long delays before anything starts to happen after i give the "make" command to build my project.
I tried disabling the network, as suggested here: Why is MinGW very slow?
But it didn't help.
Note that it's not the actual compilation / linking progress that is slow, but the startup of those processes seems to take forever. 5-10 minutes. Except if i just did it, then it starts in 10-30 seconds.
I know, it used to take a lot longer to load those tapes on Commodore, but over the years I have grown impatient.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试执行
make -r
(没有隐式规则)。对我来说,单个 cpp 文件的时间是 30 秒和零点几秒之间的差异。说明:
我很久以前就遇到了 MinGW 提出的同样的问题。我使用
make -d
进行调查。很明显,make
对每个依赖文件使用了无数的隐式规则 - 如果我的文件依赖于shared_ptr.hpp,那么make
检查shared_ptr.hpp(o| c|cc|v|f|r|.. 和许多其他组合)。当然这些文件不存在。看起来在 Windows 平台上检查文件修改时间/存在(当它并不真正存在时)比在 Linux 上慢得多(因为在 Linux 上我没有看到有/没有-r开关)。
Try doing
make -r
(without implicit rules). For me it was a difference between 30 seconds and fraction of a second for single cpp file.Explanation:
I've had the same problem MinGW make long ago. I've used
make -d
to investigate. It was then obvious thatmake
uses a gazillion of implicit rules for every dependency file - if my file had dep on shared_ptr.hpp thenmake
checked for shared_ptr.hpp(o|c|cc|v|f|r|.. and dozens other combinations). Of course those files didn't exist. It looks like checking for file mod time/existence (when it doesn't really exist) on Windows platform is a lot slower than on Linux (becouse with Linux i didn't see any difference with/without-r
switch).