LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-18-2012, 04:28 AM   #1
k84834
Member
 
Registered: Aug 2012
Posts: 142

Rep: Reputation: Disabled
Unhappy binutils make problem : error: `YACC' has changed since the previous run


Hi
in chapter 5 of LFS book, at "5.4. Binutils-2.22 - Pass 1" point, I run "configure" and "make" commands for binutils but don't run "make install", and understand some of host system requirements aren't in my system, I run version-check.sh file and fix problems with these guides, then I rerun configure and make commands for binutils package so I encounter with below errors by running make command:


checking whether basename is declared... (cached) yes
checking whether stpcpy is declared... (cached) yes
checking linker --as-needed support... (cached) yes
checking for cos in -lm... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/opcodes'
make all-recursive
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/opcodes'
Making all in .
make[4]: Entering directory `/mnt/lfs/sources/binutils-build/opcodes'
make[4]: Leaving directory `/mnt/lfs/sources/binutils-build/opcodes'
Making all in po
make[4]: Entering directory `/mnt/lfs/sources/binutils-build/opcodes/po'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/mnt/lfs/sources/binutils-build/opcodes/po'
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/opcodes'
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/opcodes'
Configuring in ./binutils
configure: loading cache ./config.cache
configure: error: `YACC' has changed since the previous run:
configure: former value: `/mnt/lfs/sources/binutils-2.22/missing bison -y'
configure: current value: `bison -y'
configure: error: in `/mnt/lfs/sources/binutils-build/binutils':
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-binutils] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build'
make: *** [all] Error 2
lfs@UBUNTU-32bit:/mnt/lfs/sources/binutils-build$

what should I do for fixing these errors?
 
Old 08-18-2012, 04:34 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Did you remove the /mnt/lfs/sources/binutils-build and /mnt/lfs/sources/binutils-2.22 directories before you retried?

You should; Always remove the source directory and unpack again after something went wrong. This to ensure a clean source. In short:
Code:
cd $LFS/sources
rm -rf binutils-build binutils-2.22
tar xf binutils-2.22.tar.bz2
cd binutils-2.22
<follow steps in chapter>
 
1 members found this post helpful.
Old 08-18-2012, 05:09 AM   #3
k84834
Member
 
Registered: Aug 2012
Posts: 142

Original Poster
Rep: Reputation: Disabled
thanks again druuna . has been solved
 
Old 08-18-2012, 05:51 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Can you put up the [SOLVED] tag (first post -> Thread Tools -> Mark this thread 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
[SOLVED] Binutils error: Source directory already configured; run make distclean there first?! PhoenixzeroX Linux From Scratch 4 06-03-2012 09:44 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 05:43 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