LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-21-2017, 03:36 PM   #1
hariskar
Member
 
Registered: Feb 2017
Distribution: Gentoo, Linux From Scratch
Posts: 53

Rep: Reputation: Disabled
Fatal error in make binutils


It is my 1st try with LFS after some time with Gentoo. I try to install stable 8.1. I am in chapter 5.4.

Code:
/mnt/lfs/sources/binutils-2.29/binutils/build $ make
if [ -r sysinfo.c ]; then \
  gcc -c -I. -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -I../../zlib   sysinfo.c ; \
else \
  gcc -c -I. -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -I../../zlib   ../sysinfo.c ; \
fi
gcc -c -I. -I.. -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -I../../zlib   ../syslex_wrap.c
In file included from ../syslex_wrap.c:25:0:
syslex.c: In function 'yy_get_next_buffer':
syslex.c:1226:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
gcc   -o sysinfo sysinfo.o syslex_wrap.o
./sysinfo -d <../sysroff.info >sysroff.h
Making info in doc
make[1]: Entering directory '/mnt/lfs/sources/binutils-2.29/binutils/build/doc'
if test -f cxxfilt.man; then \
  man=cxxfilt.man; \
else \
  man=../../doc/cxxfilt.man; \
fi; \
sed -e 's/@PROGRAM@/c++filt/' \
    -e 's/cxxfilt/c++filt/' < $man \
        > c++filt.1
make[1]: Leaving directory '/mnt/lfs/sources/binutils-2.29/binutils/build/doc'
Making info in po
make[1]: Entering directory '/mnt/lfs/sources/binutils-2.29/binutils/build/po'
make[1]: Nothing to be done for 'info'.
make[1]: Leaving directory '/mnt/lfs/sources/binutils-2.29/binutils/build/po'
make[1]: Entering directory '/mnt/lfs/sources/binutils-2.29/binutils/build'
make[1]: Nothing to be done for 'info-am'.
make[1]: Leaving directory '/mnt/lfs/sources/binutils-2.29/binutils/build'
make  all-recursive
make[1]: Entering directory '/mnt/lfs/sources/binutils-2.29/binutils/build'
Making all in doc
make[2]: Entering directory '/mnt/lfs/sources/binutils-2.29/binutils/build/doc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/mnt/lfs/sources/binutils-2.29/binutils/build/doc'
Making all in po
make[2]: Entering directory '/mnt/lfs/sources/binutils-2.29/binutils/build/po'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/mnt/lfs/sources/binutils-2.29/binutils/build/po'
make[2]: Entering directory '/mnt/lfs/sources/binutils-2.29/binutils/build'
gcc -DHAVE_CONFIG_H -I. -I..  -I. -I.. -I../bfd -I../../bfd -I../../include -DLOCALEDIR="\"/tools/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -I../../zlib -g -O2 -MT size.o -MD -MP -MF .deps/size.Tpo -c -o size.o ../size.c
In file included from ../size.c:31:0:
../sysdep.h:28:20: fatal error: bfdver.h: No such file or directory
 #include "bfdver.h"
                    ^
compilation terminated.
make[2]: *** [Makefile:962: size.o] Error 1
make[2]: Leaving directory '/mnt/lfs/sources/binutils-2.29/binutils/build'
make[1]: *** [Makefile:1004: all-recursive] Error 1
make[1]: Leaving directory '/mnt/lfs/sources/binutils-2.29/binutils/build'
make: *** [Makefile:663: all] Error 2

Code:
~ $ sh version-check.sh
bash, version 4.4.12(1)-release
/bin/sh -> /bin/bash
Binutils: (Gentoo 2.29.1 p2) 2.29.1
bison (GNU Bison) 3.0.4
/usr/bin/yacc -> /usr/bin/yacc.bison
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.28
diff (GNU diffutils) 3.6
find (GNU findutils) 4.6.0
GNU Awk 4.2.0, API: 2.0
/usr/bin/awk -> /usr/bin/gawk
gcc (Gentoo 6.4.0 p1.0) 6.4.0
g++ (Gentoo 6.4.0 p1.0) 6.4.0
(Gentoo 2.25-r7 p11) 2.25
grep (GNU grep) 3.1
gzip 1.8
Linux version 4.13.8-gentoo (root@gentoo) (gcc version 6.4.0 (Gentoo 6.4.0 p1.0)) #1 SMP Thu Oct 19 06:03:57 EEST 2017
m4 (GNU M4) 1.4.18
GNU Make 4.2.1
GNU patch 2.7.5
Perl version='5.26.1';
sed (GNU sed) 4.4
tar (GNU tar) 1.29
texi2any (GNU texinfo) 6.5
xz (XZ Utils) 5.2.3
g++ compilation OK

Last edited by hariskar; 10-21-2017 at 04:02 PM.
 
Old 10-21-2017, 10:14 PM   #2
hariskar
Member
 
Registered: Feb 2017
Distribution: Gentoo, Linux From Scratch
Posts: 53

Original Poster
Rep: Reputation: Disabled
Could this warning at the end of configure be relevant?

Code:
configure: WARNING: unrecognized options: --with-sysroot, --with-lib-path
 
Old 10-22-2017, 08:44 PM   #3
sr_ls_boy
Member
 
Registered: Apr 2015
Posts: 105

Rep: Reputation: Disabled
I would make sure that LFS & LFS_TGT are set correctly.
Those two are set in sec. 4.4 of the book.


LFS=/mnt/lfs
LFS_TGT=$(uname -m)-lfs-linux-gnu
 
Old 10-22-2017, 08:56 PM   #4
sr_ls_boy
Member
 
Registered: Apr 2015
Posts: 105

Rep: Reputation: Disabled
You ran configure from the wrong directory.

You ran it in
binutils-2.29/binutils/build

run it in
binutils-2.29/build
 
2 members found this post helpful.
  


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
[SOLVED] binutils make error getanshub4u Linux From Scratch 15 10-13-2012 04:10 AM
[SOLVED] binutils - error during make basheer Linux From Scratch 10 09-26-2010 11:47 PM
make error for binutils 2.17 uberapa Linux - Software 0 06-08-2007 09:11 AM
error in binutils make gobi_dgm Linux - Software 4 09-21-2006 09:58 AM
make error with binutils gravesb Linux From Scratch 2 10-15-2005 02:48 PM

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

All times are GMT -5. The time now is 08:53 PM.

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