LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   lfs 6.7 book ch 5.4 binutils 2.20.1 pass 1 error:error: ppl_c.h: No such file or directory (http://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-6-7-book-ch-5-4-binutils-2-20-1-pass-1-error-error-ppl_c-h-no-such-file-or-directory-866298/)

frank zhu 03-03-2011 05:07 PM

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...

frank zhu 03-03-2011 05:14 PM

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,

druuna 03-04-2011 03:35 AM

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).

frank zhu 03-04-2011 09:18 AM

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;
| }

druuna 03-04-2011 11:21 AM

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.

frank zhu 03-04-2011 12:00 PM

Thanks for your reply Druuna. I will continue then. Not sure whether to Mark this "solved" or not.

druuna 03-04-2011 12:23 PM

Quote:

Originally Posted by frank zhu (Post 4279027)
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.


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