参数列表太长。构建 Hubbub HTML 解析库。执行程序

发布于 2024-09-17 07:26:36 字数 903 浏览 4 评论 0原文

当我尝试在我的系统(Fedora)上构建这个库时

Linux localhost.localdomain 2.6.33.8-149.fc13.i686 #1 SMP Tue Aug 17 22:45:56 UTC 2010 i686 i686 i386 GNU/Linux

,我得到一长串错误,其中这是最后几行:

build/makefiles/Makefile.top:542: warning: overriding commands for target `build-Linux-Linux-release-lib-static/src_charset_detect.o'
build/makefiles/Makefile.top:542: warning: ignoring old commands for target `build-Linux-Linux-release-lib-static/src_charset_detect.o'
 COMPILE: src/hubbub.c
cc: error trying to exec '/usr/libexec/gcc/i686-redhat-linux/4.4.4/cc1': execv: Argument list too long
make: *** [build-Linux-Linux-release-lib-static/src_hubbub.o] Error 1

您可以下载 makefile 这个错误似乎在这里:

http://www.touspassagers.org/downloadable/Makefile.top

我想我只需要分解execv 的参数所以没有那么多。如何在该文件出现的每个实例的上下文中执行此操作?我听说 xargs 是可行的方法;但我不知道如何使用它。我对 bash 还很陌生。

When I attempt to build this library on my system (Fedora)

Linux localhost.localdomain 2.6.33.8-149.fc13.i686 #1 SMP Tue Aug 17 22:45:56 UTC 2010 i686 i686 i386 GNU/Linux

I get a long list of errors of which this is the last few lines:

build/makefiles/Makefile.top:542: warning: overriding commands for target `build-Linux-Linux-release-lib-static/src_charset_detect.o'
build/makefiles/Makefile.top:542: warning: ignoring old commands for target `build-Linux-Linux-release-lib-static/src_charset_detect.o'
 COMPILE: src/hubbub.c
cc: error trying to exec '/usr/libexec/gcc/i686-redhat-linux/4.4.4/cc1': execv: Argument list too long
make: *** [build-Linux-Linux-release-lib-static/src_hubbub.o] Error 1

You can download the makefile this error appears to be in here:

http://www.touspassagers.org/downloadable/Makefile.top

I think I just need to break up the arguments to execv so there aren't so many. How do I do this in the context of this file in each instance in which it appears? I hear xargs is the way to go; but I don't know how to use it. I'm pretty new to bash.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

嘿看小鸭子会跑 2024-09-24 07:26:36

将 gcc 升级到至少 4.5.0 后重试

我认为此错误已修复 在该版本中。

Try again after upgrading gcc to at least 4.5.0

I think this bug was fixed in that release.

旧故 2024-09-24 07:26:36

基于 dreamlax 发现环境列表也很重要,您可以在开始构建过程之前检查环境并删除过长的变量,甚至尝试 env -i build-command< /em>。

On the basis of dreamlax's finding that the environment list also matters, you can check the environment prior to starting the build process and remove excessively long variables, or even try env -i build-command.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文