Hi all,
So I am gong through linux from scratch and have hit this problem compiling binutils-2.27.
I was advised that the problem will be found around the line containing 'checking for C compiler...' in the created config.log file. Here are the relevant excerpts:
The 'checking for compiler...' line occurs twice in my config.log. First time I assume is fine:
Quote:
configure:4377: checking for C compiler version
configure:4386: gcc --version >&5
gcc (Debian 5.3.1-13) 5.3.1 20160323
|
Second time the 'checking for compiler...' occurs is where I guess the problem is:
Quote:
configure:4417: checking for C compiler default output file name
configure:4439: gcc conftest.c >&5
gcc: error trying to exec 'cc1': execvp: No such file or directory
configure:4443: $? = 1
configure:4480: result:
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. */
|
I believe this test might help clarify the situation:
Quote:
$ cat > test.c << "EOF"
int
main ()
{
;
return 0;
}
EOF
$ gcc test.c
|
I was told I should have an a.out executable.
which should output 0 "
Here is what happened at this point:
Quote:
lfs@kali:/mnt/lfs/sources/binutils-2.27/build$ cat > test.c << "EOF" > int > main () > { > > ; > return 0; > } > EOF lfs@kali:/mnt/lfs/sources/binutils-2.27/build$ gcc test.c gcc: error trying to exec 'cc1': execvp: No such file or directory lfs@kali:/mnt/lfs/sources/binutils-2.27/build$ ./a.out bash: ./a.out: No such file or directory lfs@kali:/mnt/lfs/sources/binutils-2.27/build$ echo $? 127
|
Thanks again!