Skip to contentSkip to conversation

Crosstool-NG fix

Buildroot Superseded Thomas Petazzoni 3 participants 6 messages Mar 24, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#1 lore raw

PATCH 1/2 texinfo: new host package

The makeinfo program from texinfo is needed to get Crosstool-NG to build properly a toolchain. Long term, it would be great if Crosstool-NG supported building without texinfo, simply by disabling the build of documentation.

---
 package/texinfo/texinfo.mk |   14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 package/texinfo/texinfo.mk
package/texinfo/texinfo.mk new file +14 -0
new file mode 100644
index 0000000..54d18b6
@@ -0,0 +1,14 @@
+#############################################################
+#
+# texinfo
+#
+#############################################################
+
+# We are intentionally not using the latest version 5.x, because it
+# causes issues with the documentation building process when creating
+# a toolchain with the Crosstool-NG backend.
+
+TEXINFO_VERSION = 4.13a
+TEXINFO_SITE = $(BR2_GNU_MIRROR)/texinfo
+
+$(eval $(host-autotools-package))
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 1/2 texinfo: new host package

Hi Thomas,

Quoted 4 lines

The makeinfo program from texinfo is needed to get Crosstool-NG to build properly a toolchain. Long term, it would be great if Crosstool-NG supported building without texinfo, simply by disabling the build of documentation.

Just curious, isn't possible for the Crosstool-NG build to disable the doc, with something like Gustavo did here for GCC:

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

Cheers,
Vivien

#3 lore raw

PATCH 1/2 texinfo: new host package

Dear Vivien Didelot,

Quoted 4 lines · Vivien Didelot

Just curious, isn't possible for the Crosstool-NG build to disable the doc, with something like Gustavo did here for GCC:

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

Yes, it should be possible. Normally, we enabled the "Remove documentation" option from Crosstool-NG, which should tell Crosstool-NG to not build the documentation. But in practice, Crosstool-NG configure script still wants a makeinfo program. Even if you fake it by passing /bin/true as the makeinfo program, then the build process of binutils fails during the construction of its info pages. So it looks like Crosstool-NG does not disable entirely the generation of documentation, or something else is going one.

Introducing this texinfo package is only a short-term solution, until the proper way of disabling the documentation generation in Crosstool-NG is found.

Best regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#4 lore raw

PATCH 2/2 crosstool-ng: add missing dependencies

In reply to Thomas Petazzoni
---
 package/crosstool-ng/crosstool-ng.mk |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
package/crosstool-ng/crosstool-ng.mk +5 -1
index 3b207a2..2d93f90 100644
@@ -3,6 +3,10 @@ CROSSTOOL_NG_SOURCE            = crosstool-ng-$(CROSSTOOL_NG_VERSION).tar.bz2
 CROSSTOOL_NG_SITE              = http://crosstool-ng.org/download/crosstool-ng/
 CROSSTOOL_NG_INSTALL_TARGET    = NO
 CROSSTOOL_NG_MAKE              = $(MAKE1)
-HOST_CROSSTOOL_NG_DEPENDENCIES = $(if $(BR2_CCACHE),host-ccache) host-gawk host-automake host-gperf
+
+HOST_CROSSTOOL_NG_DEPENDENCIES = \
+	$(if $(BR2_CCACHE),host-ccache) host-gawk \
+	host-automake host-gperf host-bison host-flex \
+	host-texinfo
 
 $(eval $(host-autotools-package))
Signature · 1 line
1.7.9.5