LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Problem building binutils-2.23.2 (and then textinfo) (https://www.linuxquestions.org/questions/linux-from-scratch-13/problem-building-binutils-2-23-2-and-then-textinfo-4175732559/)

coltson 01-07-2024 04:33 PM

Problem building binutils-2.23.2 (and then textinfo)
 
Hi. Following chapter 5.15.1 of Cross-Compiled Linux from Scratch. which is binutils compilation, I end facing:

Code:

WARNING: `makeinfo' is missing on your system.  You should only need it if
        you modified a `.texi' or `.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 `make' (AIX,
        DU, IRIX).  You might want to install the `Texinfo' package or
        the `GNU make' package.  Grab either from any GNU archive site.
make[3]: *** [bfd.info] Error 1
make[3]: Leaving directory `/mnt/clfs/sources/binutils-2.23.2/build/bfd/doc'
Making info in po
make[3]: Entering directory `/mnt/clfs/sources/binutils-2.23.2/build/bfd/po'
make[3]: Nothing to be done for `info'.
make[3]: Leaving directory `/mnt/clfs/sources/binutils-2.23.2/build/bfd/po'
make[3]: Entering directory `/mnt/clfs/sources/binutils-2.23.2/build/bfd'
make[3]: Nothing to be done for `info-am'.
make[3]: Leaving directory `/mnt/clfs/sources/binutils-2.23.2/build/bfd'
make[2]: *** [info-recursive] Error 1
make[2]: Leaving directory `/mnt/clfs/sources/binutils-2.23.2/build/bfd'

I then proceeded to install textinfo as recommended by the warning.

However, I am confronted by these errors:

Quote:

........
terminal.c:(.text+0x144): undefined reference to `tgoto'
/usr/bin/ld: Dwarf Error: found dwarf version '24576', this reader only handles version 2 and 3 information.
terminal.c:(.text+0x155): undefined reference to `tputs'
/usr/bin/ld: Dwarf Error: found dwarf version '0', this reader only handles version 2 and 3 information.
terminal.c:(.text+0x189): undefined reference to `tputs'
/usr/bin/ld: Dwarf Error: found dwarf version '0', this reader only handles version 2 and 3 information.
terminal.o: In function `terminal_get_screen_size':
terminal.c:(.text+0x59c): undefined reference to `tgetnum'
/usr/bin/ld: Dwarf Error: found dwarf version '0', this reader only handles version 2 and 3 information.
terminal.c:(.text+0x5c1): undefined reference to `tgetnum'
/usr/bin/ld: Dwarf Error: found dwarf version '1537', this reader only handles version 2 and 3 information.
terminal.o: In function `terminal_initialize_terminal':
terminal.c:(.text+0x65d): undefined reference to `tgetent'
/usr/bin/ld: Dwarf Error: found dwarf version '0', this reader only handles version 2 and 3 information.
terminal.c:(.text+0x676): undefined reference to `tgetstr'
......
......
Any idea on these errors? Like from where these functions are supossed to be? Also, is this error really serious? It is happening in the doc folder, so I wonder if I could issue make install and see if it works.

Keith Hedger 01-08-2024 07:56 AM

Any particular reason you are using cross lfs?
As a general rule you should NOT ignore errors so early in the build as they can cause subtle problems later on.
Please also post version of LFS book you are using, what host you are using and the output of the version test script.

coltson 01-10-2024 02:33 PM

Quote:

Originally Posted by Keith Hedger (Post 6475398)
Any particular reason you are using cross lfs?

32bit support.

Quote:

Please also post version of LFS book you are using, what host you are using and the output of the version test script.
cross linux from scratch 2.1.2, x86_64-cross-linux-gnu.

Code:

The following packages could not be found:
scripth.sh: line 21: patch: command not found
scripth.sh: line 24: makeinfo: command not foun


Keith Hedger 01-10-2024 02:45 PM

fix the errors and again what distro are u using for the host.

knudfl 01-13-2024 08:09 AM

Ref. #3

Missing patch command : Install the package patch
Missing makeinfo command : Install the package texinfo

I.e. the package name is texinfo, not textinfo .

-

Keith Hedger 01-13-2024 08:18 AM

Quote:

Originally Posted by knudfl (Post 6476441)
Ref. #3

Missing patch command : Install the package patch
Missing makeinfo command : Install the package texinfo

I.e. the package name is texinfo, not textinfo .

-

There's an echo in here :)

coltson 01-15-2024 05:01 PM

Quote:

Originally Posted by Keith Hedger (Post 6475875)
fix the errors and again what distro are u using for the host.

That's what I am trying to do, but all these stranger errors showed up. Apparently they are caused due to readline and ncurses..... I might try to install both. However, I already built ncurses on my host system, so perhaps would be better to try to install texinfo on it, instead on clfs isolated environment, even if I will never use it for non clfs use


All times are GMT -5. The time now is 12:19 PM.