LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 03-03-2011, 05:07 PM   #1
frank zhu
LQ Newbie
 
Registered: Mar 2011
Posts: 10

Rep: Reputation: 0
lfs 6.7 book ch 5.4 binutils 2.20.1 pass 1 error:error: ppl_c.h: No such file or directory


Hi,

Thanks for your help or any hint..

I was following LFS book & source version 6.7. Used liveCD 6.3.


------------------------------------------------

This is the output of the version-check.sh

bash, version 3.2.17(1)-release
/bin/sh -> /bin/bash
Binutils: version 2.17
bison (GNU Bison) 2.3
/usr/bin/yacc -> /usr/bin/yacc
bzip2, Version 1.0.4, 20-Dec-2006.
Coreutils: 6.9
diff (GNU diffutils) 2.8.1
GNU find version 4.2.31
GNU Awk 3.1.5
/usr/bin/awk -> /usr/bin/gawk
gcc (GCC) 4.1.2
GNU C Library stable release version 2.5.1
grep (GNU grep) 2.5.1
gzip 1.3.12
Linux version 2.6.22.5 (root@kerrek) (gcc version 4.1.2) #1 SMP Sat Dec 29 22:40:37 GMT 2007
m4 (GNU M4) 1.4.10
GNU Make 3.81
patch 2.5.4
Perl version='5.8.8';
GNU sed version 4.1.5
tar (GNU tar) 1.18
Texinfo: makeinfo (GNU texinfo) 4.9
Compilation OK

please see the issue down below...

Last edited by frank zhu; 03-04-2011 at 03:20 PM.
 
Old 03-03-2011, 05:14 PM   #2
frank zhu
LQ Newbie
 
Registered: Mar 2011
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,
continue on my first post...

config.log

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.64. Invocation command line was

$ ../binutils-2.20.1/configure --target=i686-lfs-linux-gnu --prefix=/tools --disable-nls --disable-werror

## --------- ##
## Platform. ##
## --------- ##

hostname = lfslivecd
uname -m = i686
uname -r = 2.6.22.5
uname -s = Linux
uname -v = #1 SMP Sat Dec 29 22:40:37 GMT 2007

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /tools/bin
PATH: /bin
PATH: /usr/bin

...

configure:5534: checking for version 0.10 of PPL
configure:5551: gcc -c -g -O2 conftest.c >&5
conftest.c:9:19: error: ppl_c.h: No such file or directory
conftest.c: In function 'main':
conftest.c:15: error: 'choke' undeclared (first use in this function)
conftest.c:15: error: (Each undeclared identifier is reported only once
conftest.c:15: error: for each function it appears in.)
conftest.c:15: error: expected ';' before 'me'
configure:5551: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include "ppl_c.h"
| int
| main ()
| {
|
| #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR != 10
| choke me
| #endif
|
| ;
| return 0;
| }
configure:5555: result: no
configure:5627: checking for correct version of CLooG
configure:5644: gcc -c -g -O2 conftest.c >&5
conftest.c:9:25: error: cloog/cloog.h: No such file or directory
conftest.c: In function 'main':
conftest.c:15: error: 'choke' undeclared (first use in this function)
conftest.c:15: error: (Each undeclared identifier is reported only once
conftest.c:15: error: for each function it appears in.)
conftest.c:15: error: expected ';' before 'me'
configure:5644: $? = 1
configure: failed program was:
| /* confdefs.h */

...


Maybe this leads to the real problem.

thanks,

Last edited by frank zhu; 03-03-2011 at 05:28 PM.
 
Old 03-04-2011, 03:35 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

The above isn't very clear.

- Which chapter are you stuck. You mention chapter 5.9 (binutils 2.20.1), but also mention pass 1 (which is chapter 5.4). You also mention having done all steps before step 5.10 (chapter 5.10 is gcc pass 2).

- Can you post the actual error message that was shown (including 10-15 lines before it),

- Did you remove the previous source and build directories (assuming you are doing pass 2).
 
1 members found this post helpful.
Old 03-04-2011, 09:18 AM   #4
frank zhu
LQ Newbie
 
Registered: Mar 2011
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,

Sorry there was ambiguity in last post. I will try to explain as clear as possible this time.

The first time when I built lfs, I followed lfs book 6.7 till ch 5:10 - gcc pass 2. The error was "fatal error ac_nonexistent.h not exist".

The second time when I built lfs, I examine more carefully and found an error even in step 1, ch5:4 - binutils pass 1.

From now on, everything refers to second time build.

The build process appears not to have any error message, however, when I check the config.log I found the following error,

..
conftest.c:9:19: error: ppl_c.h: No such file or directory
..

I guess this error may lead to problem for further build steps. Therefore, I want to resolve it even binutils seem to be built fine.

To answer your question,
- There was no actual error message beside the config errors, do you want to more lines in config.log? ( see below)
- There aren't any build directories since it's the first build. And I do remove previous build & source directory during my build.

Thanks,

== more from config.log ==

configure:4613: $? = 0
configure:4602: g++ -v >&5
Using built-in specs.
Target: i486-pc-linux-gnu
Configured with: ../gcc-4.1.2/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --enable-static --disable-multilib
Thread model: posix
gcc version 4.1.2
configure:4613: $? = 0
configure:4602: g++ -V >&5
g++: '-V' option must have argument
configure:4613: $? = 1
configure:4602: g++ -qversion >&5
g++: unrecognized option '-qversion'
g++: no input files
configure:4613: $? = 1
configure:4617: checking whether we are using the GNU C++ compiler
configure:4636: g++ -c conftest.cpp >&5
configure:4636: $? = 0
configure:4645: result: yes
configure:4654: checking whether g++ accepts -g
configure:4674: g++ -c -g conftest.cpp >&5
configure:4674: $? = 0
configure:4715: result: yes
configure:4804: checking for gnatbind
configure:4834: result: no
configure:4896: checking for gnatmake
configure:4926: result: no
configure:4945: checking whether compiler driver understands Ada
configure:4968: result: no
configure:4977: checking how to compare bootstrapped objects
configure:5002: result: cmp --ignore-initial=16 $$f1 $$f2
configure:5534: checking for version 0.10 of PPL
configure:5551: gcc -c -g -O2 conftest.c >&5
conftest.c:9:19: error: ppl_c.h: No such file or directory
conftest.c: In function 'main':
conftest.c:15: error: 'choke' undeclared (first use in this function)
conftest.c:15: error: (Each undeclared identifier is reported only once
conftest.c:15: error: for each function it appears in.)
conftest.c:15: error: expected ';' before 'me'
configure:5551: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include "ppl_c.h"
| int
| main ()
| {
|
| #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR != 10
| choke me
| #endif
|
| ;
| return 0;
| }
configure:5555: result: no
configure:5627: checking for correct version of CLooG
configure:5644: gcc -c -g -O2 conftest.c >&5
conftest.c:9:25: error: cloog/cloog.h: No such file or directory
conftest.c: In function 'main':
conftest.c:15: error: 'choke' undeclared (first use in this function)
conftest.c:15: error: (Each undeclared identifier is reported only once
conftest.c:15: error: for each function it appears in.)
conftest.c:15: error: expected ';' before 'me'
configure:5644: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include "cloog/cloog.h"
| int
| main ()
| {
|
| #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
| choke me
| #endif
|
| ;
| return 0;
| }

Last edited by frank zhu; 03-04-2011 at 09:48 AM.
 
Old 03-04-2011, 11:21 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

If the ./config ....., make, make check and make install steps do not return any errors: Continue.

I am not (yet?) interested in the log file. What I want to see is the error message that was given when running ./config... or make or make check.

Hope this helps.
 
1 members found this post helpful.
Old 03-04-2011, 12:00 PM   #6
frank zhu
LQ Newbie
 
Registered: Mar 2011
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for your reply Druuna. I will continue then. Not sure whether to Mark this "solved" or not.
 
Old 03-04-2011, 12:23 PM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Quote:
Originally Posted by frank zhu View Post
Thanks for your reply Druuna.
You're welcome

Quote:
I will continue then. Not sure whether to Mark this "solved" or not.
Mayb a bit of extra info will help:

When you build a package a lot of checks are done during the configure step. The creator of a package needs to take a lot of things into account when checking, for example, dependencies. Not all the dependency checks will succeed, some are bound to "fail" (read: not find anything), this 'cause you use system X, not Y, but checks are present for system Y.

In general it is safe to assume that if the configure step does not throw an error and stops all is fine.

You might run into other problems, but I'm kinda sure that the ppl_c.h issue is solved.
 
1 members found this post helpful.
  


Reply

Tags
lfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LFS 6.6 - Chapter 5.5 - make[2]: *** [buildgetconstants.o] Error 1 - GCC Pass 1 malikcpp Linux From Scratch 3 06-29-2010 09:09 AM
gcc second pass does not compile. LFS version 6.4 5.12 arielsegal Linux From Scratch 18 06-15-2009 12:12 PM
LFS GCC - first pass install error arnuld Linux From Scratch 2 12-20-2006 08:59 AM
Error Compiling GCC (1st Pass) in LFS 6.0 TGWDNGHN Linux From Scratch 1 06-30-2005 09:57 PM
gcc make error in ch5.5 of LFS 6.0 Barnette Linux From Scratch 5 01-03-2005 12:09 PM


All times are GMT -5. The time now is 04:20 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration