[SOLVED] lfs 6.7 book ch 5.4 binutils 2.20.1 pass 1 error:error: ppl_c.h: No such file or directory
Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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 */
- 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).
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;
| }
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.