参数列表太长。构建Hubbub HTML解析库。 execv

时间:2010-09-02 01:38:08

标签: c bash makefile xargs

当我尝试在我的系统(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很新。

2 个答案:

答案 0 :(得分:0)

将gcc升级到至少4.5.0

后再试一次

我认为该版本中的错误是fixed

答案 1 :(得分:0)

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