LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Error in part 5.4.1 of the book, editing the binutils configure file (https://www.linuxquestions.org/questions/linux-from-scratch-13/error-in-part-5-4-1-of-the-book-editing-the-binutils-configure-file-932275/)

HeadOnAPike 03-02-2012 12:16 AM

Error in part 5.4.1 of the book, editing the binutils configure file
 
First of all, I was confused by this:

Quote:

The Binutils documentation recommends building Binutils outside of the source directory in a dedicated build
directory:
mkdir -v ../binutils-build
cd ../binutils-build
I wasn't sure where I was supposed to put that, so I just put it in the /mnt/lfs/sources directory and then put the uncompressed binutils folder in that directory, so it looked like this:

/mnt/lfs/sources/binutils-build/binutils-2.21.1

seemed kinda redundant, I feel like I'm missing something. Anyway, I ran this part:

Quote:

../binutils-2.21.1/configure \
--target=$LFS_TGT --prefix=/tools \
--disable-nls --disable-werror
and got the following output:

Quote:

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... Invalid configuration 'i686-lfs-linux-gun': machine 'i686-lfs-linux' not recognized
configure: error: /bin/bash binutils-2.21.1/config.sub i686-lfs-linux-gun failed
Not sure what this means and am afraid to continue.

druuna 03-02-2012 12:45 AM

Hi,

All the commands given in the book assume you have untarred the specific package and are standing in the newly created directory (General Instructions. Second important box).

In case of binutils:
Code:

cd $LFS/sources
tar xf binutils-2.21.1a.tar.bz2
cd binutils-2.21.1
mkdir -v ../binutils-build
cd ../binutils-build

../binutils-2.21.1/configure \
    --target=$LFS_TGT --prefix=/tools \
    --disable-nls --disable-werror
.
.

Hope this helps.

HeadOnAPike 03-02-2012 03:03 AM

I ran that exact code and still got the same error. :(

druuna 03-02-2012 06:44 AM

Hi,
Quote:

Originally Posted by HeadOnAPike (Post 4616653)
I ran that exact code and still got the same error.

Did you fully remove the previous attempt and start with a clean sheet?

You always need to remove the package directory (and possibly build directory), freshly untar the package.

I also see this: checking target system type... Invalid configuration 'i686-lfs-linux-gun': machine 'i686-lfs-linux' not recognized. That should be gnu, not gun.
Could you have made a typo?

Hope this helps.

HeadOnAPike 03-02-2012 04:49 PM

Yup, I fully removed the previous attempt and reextracted the tar file. No, it's not a typo:

http://i.imgur.com/3q3hY.jpg

stoat 03-02-2012 09:18 PM

Quote:

Originally Posted by HeadOnAPike

No, it's not a typo...

It's a typo. And it's probably the LFS_TGT environment variable in your ~/.bashrc file. Go back to section 4.4. (Setting Up the Environment) and double-check your ~/.bashrc.

basava 05-25-2013 07:49 AM

Quote:

Originally Posted by druuna (Post 4616764)
Hi,
Did you fully remove the previous attempt and start with a clean sheet?

You always need to remove the package directory (and possibly build directory), freshly untar the package.

I also see this: checking target system type... Invalid configuration 'i686-lfs-linux-gun': machine 'i686-lfs-linux' not recognized. That should be gnu, not gun.
Could you have made a typo?

Hope this helps.

Are you trying to build LFS using VMWARE???

druuna 05-25-2013 08:21 AM

@basava: ????

This thread is over a year old and the OP hasn't logged in for a year.

You also quoted a reply to the original question.


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