LinuxQuestions.org
Help answer threads with 0 replies.
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 11-17-2014, 04:11 PM   #1
dave0504
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Rep: Reputation: Disabled
Question binutils-2.24 Pass 2


Hi all,

as a way to become more familiar with linux and terminal im wokring through LFS 7.6. I'm currently having a problem with binutils pass2, section 5.9 of LFS.

My file system on my drive is as follows:

/mnt/lfs/sources
/mnt/lfs/binutils-build
/mnt/lfs/binutils-2.24

After preparing for compilation, I'm hitting problems with the make procedure and getting the following output at the end:

checking size of char... 0
checking for type equivalent to int8_t... configure: error: no 8-bit type, please report a bug
make[1]: *** [configure-bfd] Error 1
make[1]: Leaving directory `/mnt/lfs/binutils-build'
make: *** [all] Error 2





when trying to run make install I get:

make[1]: Entering directory `/mnt/lfs/binutils-build'
/bin/sh ../binutils-2.24/mkinstalldirs /tools /tools
make[2]: Entering directory `/mnt/lfs/binutils-build/bfd'
make[2]: *** No rule to make target `install'. Stop.
make[2]: Leaving directory `/mnt/lfs/binutils-build/bfd'
make[1]: *** [install-bfd] Error 2
make[1]: Leaving directory `/mnt/lfs/binutils-build'
make: *** [install] Error 2



Would really appreciate any help as I've gone back twice and started from scratch but keep hitting the same problems...

Last edited by dave0504; 11-17-2014 at 04:13 PM. Reason: version info added
 
Old 11-17-2014, 05:02 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Why do you have /mnt/lfs/binutils-build and not /mnt/lfs/sources/binutils-build
And the same for binutils-2.24

everything should be within /mnt/lfs/sources

Last edited by spiky0011; 11-17-2014 at 05:04 PM.
 
Old 11-18-2014, 12:50 AM   #3
dave0504
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Starting from sources foreach package as 5.3 states, the first two lines ot be executed in terminal are:

mkdir -v ../binutils-build
cd ../binutils-build


which creates the folder in /mnt/lfs, not sources. I assumed that this was correct and moved binutils-2.24 from the sources folder to /mnt/lfs/ in order for the compilation instructions to run through.

I'm guessing the above is a typo in the instructions and should be:

mkdir -v ./binutils-build
cd ./binutils-build
 
Old 11-18-2014, 01:27 AM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

No thats not quite correct, Chapter 5.3 last important note,
Untar tarball cd into untared dir, "binutils-2.24" follow book.
So that would put you in /mnt/lfs/sources/binutils-2.24 then instructions in book. You must have done it this way preivous packages, If your not sure how you did the packages before I would do them again

FYI
If configure or make fail it's not worth running make install.

Last edited by spiky0011; 11-18-2014 at 01:43 AM.
 
Old 11-18-2014, 01:17 PM   #5
dave0504
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks, I did it that other way for all the other packages, the instructions online for binutils just threw me a bit I guess. Will try it from inside /sources/ and post back shortly
 
Old 11-18-2014, 01:28 PM   #6
dave0504
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Angry

after chaning the directorys as above, im still encountering a problem with make. The config runs through fine, but make is still giving the below error:

checking for type equivalent to int8_t... configure: error: no 8-bit type, please report a bug
make[1]: *** [configure-bfd] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build'
make: *** [all] Error 2



Any help appreciated.
 
Old 11-18-2014, 02:28 PM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Well i would like to think that your host passed
http://www.linuxfromscratch.org/lfs/.../hostreqs.html version-script

And that you removed the previuos binutils dirs as you redid that part.
Something must of gone wrong in previous packages.
 
Old 11-18-2014, 03:34 PM   #8
dave0504
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
After doing some further googling, i think the fault is from the GCC package not including some of the .h files. Going to try and re-install again and see where i get
 
Old 11-22-2014, 05:00 AM   #9
dave0504
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Solved, problem was with the GCC package.
 
  


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
pass 2 of binutils giraf Linux From Scratch 2 07-18-2010 08:34 PM
5.3. Binutils-2.17 - Pass 1 willz06jw Linux From Scratch 5 09-24-2008 02:54 AM
questions on GCC-3.4.3 - Pass 2 and Binutils-2.15.94.0.2.2 - Pass 2 satimis Linux From Scratch 7 12-26-2005 09:23 PM
Binutils-pass 1 v. 6.1 microsoft/linux Linux From Scratch 10 09-04-2005 07:27 AM
binutils-2.15.92.0.2 first pass, error rogerslin Linux From Scratch 7 12-20-2004 05:44 PM

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

All times are GMT -5. The time now is 12:50 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