LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 01-07-2024, 04:33 PM   #1
coltson
Member
 
Registered: Oct 2010
Posts: 149

Rep: Reputation: 3
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.

Last edited by coltson; 01-07-2024 at 04:40 PM.
 
Old 01-08-2024, 07:56 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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.
 
Old 01-10-2024, 02:33 PM   #3
coltson
Member
 
Registered: Oct 2010
Posts: 149

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by Keith Hedger View Post
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
 
Old 01-10-2024, 02:45 PM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
fix the errors and again what distro are u using for the host.
 
Old 01-13-2024, 08:09 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 .

-
 
Old 01-13-2024, 08:18 AM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by knudfl View Post
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
 
Old 01-15-2024, 05:01 PM   #7
coltson
Member
 
Registered: Oct 2010
Posts: 149

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by Keith Hedger View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
suddenly vlc audio chunky. got sound then no sound then got sound then no sound.. andrewysk Linux - Newbie 4 04-21-2021 08:19 PM
nvidia display drivers installation error with binutils, binutils allready installed mandrakeBren Linux - Newbie 9 01-06-2009 12:52 PM
binutils-2.16.1 or binutils-2.17 Hern_28 Linux From Scratch 2 07-15-2007 09:05 AM
Problem on building Binutils bitrux Linux From Scratch 8 10-05-2006 10:04 AM
Installation of binutils....can't mkdir...../binutils-build hmonster Linux From Scratch 6 08-22-2004 04:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration