Submitted by Admin on

One day the idea to create the app for my Kindle came on my mind. I was need to install toolchain and SDK.

According to the documentation everything should be fine and no interaction to process needed. Developers made really good progress on automatization for install process.
[https://kindlemodding.org/kindle-dev/gtk-tutorial/prerequisites.html] (https://kindlemodding.org/kindle-dev/gtk-tutorial/prerequisites.html)

But suddenly on the 20th minute building ended with an error:


[INFO ]  Installing core C gcc compiler: done in 706.82s (at 20:33)
[INFO ]  =================================================================
[INFO ]  Installing C library
[INFO ]    =================================================================
[INFO ]    Building for multilib 1/1: ''
[EXTRA]      Configuring C library
[EXTRA]      Building C library
[EXTRA]      Installing C library
[ERROR]      make[3]: *** [Makefile:193: /home/user/x-tools/arm-kindlepw2-linux-gnueabi/arm-kindlepw2-linux-gnueabi/sysroot/usr/share/info/libc.info] Error 1
[ERROR]      make[2]: *** [Makefile:207: manual/subdir_install] Error 2
[ERROR]      make[1]: *** [Makefile:15: install] Error 2
[ERROR]   
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Building for multilib 1/1: '''
[ERROR]  >>        called in step 'Installing C library'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@378]
[ERROR]  >>        called from: glibc_backend_once[scripts/build/libc/glibc.sh@363]
[ERROR]  >>        called from: CT_IterateMultilibs[scripts/functions@1610]
[ERROR]  >>        called from: glibc_main[scripts/build/libc/glibc.sh@87]
[ERROR]  >>        called from: do_libc_main[scripts/build/libc.sh@33]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@710]

And somewhere in the logs there was an error

texi2any (XS parser): bug: parent hv not already set

I found some info on the net and the issue was with makeinfo command and texi2any version. I had

$ makeinfo --version
texi2any (GNU texinfo) 7.1

For my custom Ubuntu the latest version was 7.1-3build2

$ apt list -a texinfo
Listing... Done
texinfo/noble,noble,now 7.1-3build2 all [installed]
$ which texi2any 
/usr/bin/texi2any

Time to build the program from the source https://ftp.gnu.org/gnu/texinfo/!

$ wget https://ftp.gnu.org/gnu/texinfo/texinfo-7.2.tar.gz
$ tar zxvf texinfo-7.2.tar.gz
$ cd texinfo-7.2
$ test -f configure || ./bootstrap
$ ./configure
$ make
$ sudo make install
$ bash

After success installation the correct versions should be:

$ which texi2any 
/usr/local/bin/texi2any
$ texi2any --version
texi2any (GNU texinfo) 7.2

After executing the building of toolchain again it ended with success flag.

$ ./gen-tc.sh kindlepw2

[INFO ]  Build completed at 20260119.202139
[INFO ]  (elapsed: 44:10.93)
Теги