LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-21-2014, 07:02 AM   #1
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Binutils Pass 2 build fail


Hi,

I'm currently building the temporary system. Binutils Pass 2 fails with the following error message(s):

Code:
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
make[1]: Entering directory `/mnt/lfs/sources/binutils-build'
Configuring in ./libiberty
configure: loading cache ./config.cache
configure: error: `target_alias' has changed since the previous run:
configure:   former value:  `i686-lfs-linux-gnu'
configure:   current value: `i686-pc-linux-gnu'
configure: error: `CC' has changed since the previous run:
configure:   former value:  `gcc'
configure:   current value: `i686-lfs-linux-gnu-gcc'
configure: error: in `/mnt/lfs/sources/binutils-build/libiberty':
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over
make[1]: *** [configure-libiberty] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build'
make: *** [all] Error 2
make[1]: Entering directory `/mnt/lfs/sources/binutils-build'
/bin/sh ../binutils-2.24/mkinstalldirs /tools /tools
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/bfd'
make[2]: *** No rule to make target `install'.  Stop.
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd'
make[1]: *** [install-bfd] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build'
make: *** [install] Error 2
make: Entering directory `/mnt/lfs/sources/binutils-build/ld'
make: *** No rule to make target `clean'.  Stop.
make: Leaving directory `/mnt/lfs/sources/binutils-build/ld'
make: Entering directory `/mnt/lfs/sources/binutils-build/ld'
make: *** No targets specified and no makefile found.  Stop.
make: Leaving directory `/mnt/lfs/sources/binutils-build/ld'
'ld/ld-new' -> '/tools/bin/ld-new'
Any suggestions?
 
Old 11-21-2014, 08:54 AM   #2
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
I'll answer this myself, since I just found the culprit: a stale build directory from a previous build. I'll mark this as solved.
 
  


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 2.20/gcc-4.5.1 build pass 2 reverts to targeting the host system anakinwy Linux From Scratch 2 11-11-2010 03:21 PM
binutils pass 2 build directory dbbolton Linux From Scratch 4 03-09-2010 03:42 AM
LFS binutils-build error : Pass 1 ramlnx Linux From Scratch 1 07-12-2006 07:06 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
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:40 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