On 25/09/2016 06:53 μμ, smith.aaron wrote:
Hi,
After much experimentation and reading around I have ended up back with
the same problem I had originally, so I am replying to your queries
regarding my original problem, which is that I can't compile binutils-2.2.7.
Thanks so much for your help. I hope I have emailed this to the right
people, I am reading up on mailing list etiquette too!
Thanks again,
Aaron

Thanos said:

g"The error in config.log should be after the line:

checking for C compiler default output file name

Copy and paste that part."

The 'checking for  compiler version' line occurs twice in my config.log.
First time I assume is fine:

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 ompiler version occurs is where I guess the
problem is:

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


Thanos/Bruce posted similar:
"Also, do this test:

$ cat > test.c << "EOF"
int
main ()
{

;
return 0;
}
EOF

$ gcc test.c

You should have an a.out executable.

$ ./a.out

$ echo $?

This should output 0 "

Here is what happened at this point:

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!

        Hi everyone,

        Have run into difficulty trying to install binutils at the start
        of LFS chapter 5. I spent the last two days slowly re-reading up
        to chapter five, googling around, and correcting any mistakes I
        found, but to no avail. I found plenty online close to
        describing my specific symptoms, but nothing that exactly
        addressed it, or enabled me to figure the problem out.

        First here is the terminal output where I encounter the problem:

            !Y+lfs@kali:/mnt/sda7/sources/binutils-2.27/build$
            ../configure --prefix=/tools            \
             >              --with-sysroot=$LFS        \
             >              --with-lib-path=/tools/lib \
             >              --target=$LFS_TGT          \
             >              --disable-nls              \
             >              --disable-werror
            checking build system type... i686-pc-linux-gnu
            checking host system type... i686-pc-linux-gnu
            checking target system type... i686-lfs-linux-gnu
            checking for a BSD-compatible install... /bin/install -c
            checking whether ln works... yes
            checking whether ln -s works... yes
            checking for a sed that does not truncate output... /bin/sed
            checking for gawk..Unless. gawk
            checking for gcc... gcc
            checking for C compiler default output file name...
            configure: error: in `/mnt/sda7/sources/binutils-2.27/build':
            configure: error: C compiler cannot create executables
            See `config.log' for more details.
            lfs@kali:/mnt/sda7/sources/binutils-2.27/build$




        Here is the output of version-check.sh. Hopefully I am just
        including this for reference/to show everything is ok in this
        regard...

            bash, version 4.3.46(1)-release
            /bin/sh -> /bin/bash
            Binutils: (GNU Binutils for Debian) 2.26.1
            bison (GNU Bison) 3.0.4
            /usr/bin/yacc -> /usr/bin/bison.yacc
            bzip2,  Version 1.0.6, 6-Sept-2010.
            Coreutils:  8.25
            diff (GNU diffutils) 3.3
            find (GNU findutils) 4.7.0-git
            GNU Awk 4.1.3, API: 1.1 (GNU MPFR 3.1.4-p2, GNU MP 6.1.1)
            /usr/bin/awk -> /usr/bin/gawk
            gcc (Debian 6.1.1-11) 6.1.1 20160802
            g++ (Debian 6.1.1-11) 6.1.1 20160802
            (Debian GLIBC 2.23-5) 2.23
            grep (GNU grep) 2.25
            gzip 1.6
            Linux version 4.6.0-kali1-686-pae ([email protected]) (gcc
            version 5.4.0 20160609 (Debian 5.4.0-6) ) #1 SMP Debian
            4.6.4-1kali1 (2016-07-21)
            m4 (GNU M4) 1.4.17
            GNU Make 4.1
            GNU patch 2.7.5
            Perl version='5.22.2';
            sed (GNU sed) 4.2.2
            tar (GNU tar) 1.29
            texi2any (GNU texinfo) 6.1
            xz (XZ Utils) 5.1.0alpha
            g++ compilation OK


Hi Smith

I think there is a problem with your host's gcc. Actually you seem to
have two gcc versions installed. In config.log binutils configure found

> configure:4386: gcc --version >&5
> gcc (Debian 5.3.1-13) 5.3.1 20160323

and the version-check.sh found

>             gcc (Debian 6.1.1-11) 6.1.1 20160802
>             g++ (Debian 6.1.1-11) 6.1.1 20160802

Did you uninstall one version and installed the other?
I think that you have to uninstall all gcc versions with your host's
package manager and then install the package build-essential.
But that's just a guess. I don't know how your distribution's
package management work.


--
Thanos
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to