LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-27-2005, 11:18 AM   #1
Flash_G
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Rep: Reputation: 0
5.14. Binutils-2.15.91.0.2 - Pass 2 error!


I have reached pass 2 of the binutils and I receive the following error when I execute make:
Code:
config.h is unchanged
make[1]: Entering directory `/mnt/lfs/sources/binutils-build/libiberty'
if [ x"-fpic" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I../../binutils-2.15.91.0.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../binutils-2.15.91.0.2/libiberty/regex.c -o pic/regex.o; \
else true; fi
In file included from ../../binutils-2.15.91.0.2/libiberty/../include/xregex.h:26,
                 from ../../binutils-2.15.91.0.2/libiberty/regex.c:197:
../../binutils-2.15.91.0.2/libiberty/../include/xregex2.h:548: warning: ISO C90 does not support `static' or type qualifiers in parameter array declarators
In file included from ../../binutils-2.15.91.0.2/libiberty/regex.c:651:
../../binutils-2.15.91.0.2/libiberty/regex.c: In function `byte_compile_range':
../../binutils-2.15.91.0.2/libiberty/regex.c:4550: warning: signed and unsigned type in conditional expression
../../binutils-2.15.91.0.2/libiberty/regex.c:4560: warning: signed and unsigned type in conditional expression
../../binutils-2.15.91.0.2/libiberty/regex.c:4560: warning: signed and unsigned type in conditional expression
Assembler messages:
FATAL: can't create pic/regex.o: No such file or directory
make[1]: *** [regex.o] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/libiberty'
make: *** [all-libiberty] Error 2
First of all I am a bit confused about the re-installation of Binutils. In Chapter 5.14.1 Re-installation of Binutils it says that you have to:
Quote:
Create a separate build directory again:
with the following command:
Code:
mkdir ../binutils-build
How can you do that when the directory already have been created in 5.4.1 Binutils-2.15.91.0.2 - Pass 1 and you are told
Quote:
Warning Do not remove the Binutils build and source directories yet. These will be needed again in their current state later in this chapter.
So I used the existing binutils-build directory from 5.4.1 pass 1 to reinstall binutils in. Is that correct and what am I doing wrong?
 
Old 06-27-2005, 01:44 PM   #2
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
After you do the "Re-adjusting the Toolchain step" it is okay to remove the binutils-build directory and recreate it.
 
Old 10-16-2005, 10:52 AM   #3
breakthestate
LQ Newbie
 
Registered: Sep 2005
Posts: 10

Rep: Reputation: 0
Thank you kjordan.
 
Old 10-19-2005, 08:57 PM   #4
Damon Spector
Member
 
Registered: Nov 2004
Distribution: Fedora Core 4
Posts: 61

Rep: Reputation: 15
Quote:
First of all I am a bit confused about the re-installation of Binutils. In Chapter 5.14.1 Re-installation of Binutils it says that you have to:

quote: Create a separate build directory again:

with the following command:

code:

mkdir ../binutils-build


How can you do that when the directory already have been created in 5.4.1 Binutils-2.15.91.0.2 - Pass 1 and you are told

quote: Warning Do not remove the Binutils build and source directories yet. These will be needed again in their current state later in this chapter.

So I used the existing binutils-build directory from 5.4.1 pass 1 to reinstall binutils in. Is that correct and what am I doing wrong?

I have the same question only about the re-installation of GCC.
 
Old 11-08-2005, 08:35 PM   #5
TGWDNGHN
Member
 
Registered: Aug 2003
Distribution: Slackware 10.0
Posts: 94
Blog Entries: 1

Rep: Reputation: 15
I had the exact same problem but apperantly is does tel you to remove the directories before those sections... see I printed out and color-coded the book, and those tings stick out in the red lol. Personally, I used to live CD and copied-and-pasted everything from the book, doing things on my own as necessary


And after like 20 failures (due to the same misreading you guys did and loads of typos) and 1000000000 hours of my life... it works!


Don't worry, read it carefully and you'll see where it tells you to remove the directories- it DOES say so, believe me I had the same problem... it's just they put it in unconvenient places... and I think those are NOT in the warning boxes like they should be (A few chapters list it in the text)
 
Old 08-20-2006, 06:02 AM   #6
eleanor
LQ Newbie
 
Registered: Aug 2006
Posts: 7

Rep: Reputation: 0
I had the same error too and removing the binutils-build/ and gcc-build/ solved the problem.

Can somebody give me a link where it says to delete these directories, because I read it carefully and didn't noticed that?

Thanks in advance
 
  


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
binutils first pass error gravesb Linux From Scratch 5 09-05-2005 01:42 AM
#Error: 5.4. Binutils-2.15.94.0.2.2 - Pass 1 ukyo Linux From Scratch 2 06-02-2005 04:37 AM
binutils-2.15.92.0.2 first pass, error rogerslin Linux From Scratch 7 12-20-2004 05:44 PM
Binutils-2.14 - Pass 1, compiler error peok Linux From Scratch 0 08-10-2004 12:30 AM
binutils-2.14 first pass, gcc error Add1Sun Linux From Scratch 3 04-29-2004 04:27 PM

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

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