LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 782|回复: 5

jobserver not available!

[复制链接]
发表于 2009-4-7 18:48:22 | 显示全部楼层 |阅读模式
make 的时候出现:
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule
查make手册:
`warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.'
In order for make processes to communicate, the parent will pass information to the child.  Since this could result in problems if the child process isn't actually a make, the parent will only do this if it thinks the child is a make.  The parent uses the normal algorithms to determine this (see How the MAKE Variable Works).  If the makefile is constructed such that the parent doesn't know the child is a make process, then the child will receive only part of the information necessary.  In this case, the child will generate this warning message and proceed with its build in a sequential manner.     不大好看懂,有大侠帮忙解释下吗?
发表于 2009-4-8 09:57:45 | 显示全部楼层
为什么用 "-j1"?
为什么不试试 "-j2" "-j3"?
"-jN" 中 N 理论最优值是 "2 * cpu + 1",多核可以看作多个 cpu。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-8 12:31:13 | 显示全部楼层
Post by 聚焦深空;1971236
为什么用 "-j1"?
为什么不试试 "-j2" "-j3"?
"-jN" 中 N 理论最优值是 "2 * cpu + 1",多核可以看作多个 cpu。
我用的是archlinux,/etc/makepkg.conf里就用的-j3,我在制作软件包的时候,arch的makepkg用的是fakeroot状态,会出现这样的提示,如果只是简单的./configure ,make -j3则没有这样的提示。而且makepkg的时候,ld找不到某个库文件,不管怎么设置,它都找不到!想想也不知道是什么地方没设置好!
P.S:貌似问错了地方,不过只是想问问那个make的问题,所以跑到这儿来问!
回复 支持 反对

使用道具 举报

发表于 2009-4-8 13:07:12 | 显示全部楼层
那您 make install 时,去掉 "-j" 试试。
archlinux 那么多人用,别人怎么没您这样的问题,到 archlinux 官网问问吧?

找不到库文件,那要看您把库放什么地方,非标准的话要使用 LD_LIBRARY_PATH PKG_CONFIG_PATH 指明路径,或配置时指明。

不知 archlinux 使用的是不是 debian 的 fakeroot 软件包,或许您应报 bug 去。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-8 14:51:57 | 显示全部楼层
Post by 聚焦深空;1971313
那您 make install 时,去掉 "-j" 试试。
archlinux 那么多人用,别人怎么没您这样的问题,到 archlinux 官网问问吧?

找不到库文件,那要看您把库放什么地方,非标准的话要使用 LD_LIBRARY_PATH PKG_CONFIG_PATH 指明路径,或配置时指明。

不知 archlinux 使用的是不是 debian 的 fakeroot 软件包,或许您应报 bug 去。
恩!是用的debian的!已经把能有的路径都加进去了!现在貌似没有jobserver那个提示了,只是在编译cryptsetup这个包时ld找不到-lgcrypt,已google了,不过那些方法均不凑效!
回复 支持 反对

使用道具 举报

发表于 2009-4-10 12:58:28 | 显示全部楼层
要留意某几个包用 -jN 会出问题
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表