Modify

Opened 5 years ago

Last modified 16 months ago

#13039 reopened defect

toolchain build fails due to texinfo strictness

Reported by: dgolle@… Owned by: developers
Priority: high Milestone: Chaos Calmer 15.05
Component: toolchain Version: Trunk
Keywords: Cc: xm@…

Description

Building the toolchain recently started failing with an error:

	makeinfo --split-size=5000000 --no-split -I . -I /home/public/source/openwrt/build_dir/toolchain-mipsel_r2_gcc-4.6-linaro_uClibc-0.9.33.2/gcc-linaro-4.6-2012.12/gcc/doc \
		-I /home/public/source/openwrt/build_dir/toolchain-mipsel_r2_gcc-4.6-linaro_uClibc-0.9.33.2/gcc-linaro-4.6-2012.12/gcc/doc/include -o doc/cpp.info /home/public/source/openwrt/build_dir/toolchain-mipsel_r2_gcc-4.6-linaro_uClibc-0.9.33.2/gcc-linaro-4.6-2012.12/gcc/doc/cpp.texi; \
fi
/home/public/source/openwrt/build_dir/toolchain-mipsel_r2_gcc-4.6-linaro_uClibc-0.9.33.2/gcc-linaro-4.6-2012.12/gcc/doc/cppopts.texi:777: @itemx must follow @item

(fixing it in this one occasion is not enough, it keeps failing in many other places)
This is probably because texinfo was recently updated to version 5.0 on my system:

[daniel@earthship openwrt]$ which makeinfo
/usr/bin/makeinfo
[daniel@earthship openwrt]$ ls -l /usr/bin/makeinfo
lrwxrwxrwx 1 root root 8 Feb 17 08:32 /usr/bin/makeinfo -> texi2any
[daniel@earthship openwrt]$ ls -l /usr/bin/texi2any
-rwxr-xr-x 1 root root 51835 Feb 17 08:32 /usr/bin/texi2any
[daniel@earthship openwrt]$ texi2any --version
texi2any (GNU texinfo) 5.0

Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

I guess the easiest way to solve this is to ship texinfo as part of the OpenWrt toolchain or just don't build the documentation for gcc.

Attachments (0)

Change History (9)

comment:1 Changed 5 years ago by anonymous

same here:
toolchain-arm_v6_gcc-4.6-linaro_uClibc-0.9.33.2_eabi

comment:2 Changed 5 years ago by dgolle@…

I manually downgraded to texinfo-4.13a, and that indeed solves the problem.

comment:3 Changed 5 years ago by luka

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r35807.

comment:4 Changed 5 years ago by clemens-john@…

  • Resolution fixed deleted
  • Status changed from closed to reopened

This problem still exists in the attitude_adjustment branch.

comment:5 follow-up: Changed 4 years ago by anonymous

texinfo (>=5) breaks gcc makeinfo.
Indeed downgrading texinfo (<5) temporary fixes the issue, but a good solution might be to disable the doc generation, as we did for Buildroot. See:

http://git.buildroot.net/buildroot/commit/?id=62322acb2ce186d544ab21fe253ccc8561a68a48

comment:6 in reply to: ↑ 5 Changed 4 years ago by vivien.didelot@…

Replying to anonymous:

texinfo (>=5) breaks gcc makeinfo.
Indeed downgrading texinfo (<5) temporary fixes the issue, but a good solution might be to disable the doc generation, as we did for Buildroot. See:

http://git.buildroot.net/buildroot/commit/?id=62322acb2ce186d544ab21fe253ccc8561a68a48

The following patch solves the problem for me:

diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk
index c18a330..a8d7ca1 100644
--- a/toolchain/gcc/common.mk
+++ b/toolchain/gcc/common.mk
@@ -111,6 +111,7 @@ GCC_CONFIGURE:= \
                --build=$(GNU_HOST_NAME) \
                --host=$(GNU_HOST_NAME) \
                --target=$(REAL_GNU_TARGET_NAME) \
+               MAKEINFO=missing \
                --with-gnu-ld \
                --enable-target-optspace \
                --disable-libgomp \

I can send it to the ml if it is worth it.

Vivien Didelot <vivien.didelot@…>

comment:7 follow-up: Changed 4 years ago by florian

Yes please send this patch, it looks like a much more sustainable solution, thanks!

comment:8 in reply to: ↑ 7 Changed 4 years ago by vivien.didelot@…

Replying to florian:

Yes please send this patch, it looks like a much more sustainable solution, thanks!

Hi Florian, here's the link to the patch: http://patchwork.openwrt.org/patch/3605/
Cheers!

comment:9 Changed 16 months ago by anonymous

советы - хуита, на 10.03.1 не действует

Add Comment

Modify Ticket

Action
as reopened .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.