2012-02-22 37 views
2

我正在使用this tutorial来创建交叉编译器。将newlib移植到交叉编译器中

我跟着gcc交叉编译教程去了porting newlib。一切正常,直到我试图通过发行

make all install

编译它,当我得到了以下错误:

WARNING: makeinfo' is missing on your system. You should only need it if you modified a .texi '或.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy制作'(AIX, DU,IRIX)。您可能需要安装Texinfo' package or the GNU make'软件包。从任何GNU归档站点抓取。

编译停止。

我使用的是Ubuntu 11.10。

我曾尝试:

- 使用不同的GCC,binutils的和newlib版本(约5种不同的组合)

-installing的Texinfo

-correcting MAKEINFO路径

我的交叉编译器不需要newlib就能完美工作,只是它当然不能包含库。

+0

通过读取配置文件来检查此警告弹出的原因。 – 2012-02-23 02:59:21

回答

1

即使您安装了makeinfo,它也可能无法识别新版本。以下补丁可用。复制并保存为“configure.patch”,将其保存在配置脚本所在的位置,然后键入“patch -p1 < configure.patch”。

--- newlib-1.14.0-bak/configure 2008-06-10 20:49:16.918036351 +0200 
+++ newlib-1.14.0/configure 2008-06-10 21:21:35.750035824 +0200 
@@ -3542,7 +3542,7 @@ 
    # For an installed makeinfo, we require it to be from texinfo 4.2 or 
    # higher, else we use the "missing" dummy. 
    if ${MAKEINFO} --version \ 
-  | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])' >/dev/null 2>&1; then 
+  | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.([2-9]|[1-9][0-9])|[5-9])' >/dev/null 2>&1; then 
     : 
    else 
     MAKEINFO="$MISSING makeinfo"