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!
---- On Sat, 03 Sep 2016 19:00:01 +0000
<[email protected]> wrote ----
Send lfs-support mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.linuxfromscratch.org/listinfo/lfs-support
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of lfs-support digest..."
Today's Topics:
1. Multilib support (Rob)
2. Re: Probably simple binutils installation issue (Kerry Cox)
3. Re: Probably simple binutils installation issue (Thanos Baloukas)
4. Re: Probably simple binutils installation issue (Bruce Dubbs)
5. Re: Multilib support (Thanos Baloukas)
6. Re: Multilib support (Hazel Russman)
7. Re: Multilib support (Thanos Baloukas)
========================= Forwarded message =========================
Subject: [lfs-support] Multilib support
From: "Rob"<[email protected]>
Date: Fri, 02 Sep 2016 14:06:29 -0500
To: <[email protected]>
------------------------- Contents -------------------------
In chapter 6 of LFS, we have
"--disable-multilib"
specified in the configure instructions. What will happen if I don't include
that? I have some programs that I want to run which are 32 bit, and require 32
bit libs.
====================== End of Forwarded Mail ======================
========================= Forwarded message =========================
Subject: Re: [lfs-support] Probably simple binutils installation issue
From: "Kerry Cox"<[email protected]>
Date: Fri, 2 Sep 2016 14:32:48 -0600
To: "LFS Support List"<[email protected]>
------------------------- Contents -------------------------
I had the same issue using version 7.9 with my University Linux class. I had
them roll back to version 7.8 and no issues.My 2 cents.
Kerry
On Friday, September 2, 2016, smith.aaron <[email protected]> wrote:
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... 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
Finally, here is the config.log mentioned in the terminal. I think I cut and
paste the right bit of it. Overall it was very big and I am not sure of mailing
list etiquette, so tried to just get the relevant bit. I am confident I have
entered any other commands correctly (except that of course I am having this
problem, so...!)
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... gawk
checking for gcc... gcc
checking for C compiler defa
Any help will be greatly appreciated! Thanks for the book and community -
although I have run into trouble here I think it is going to be of great help
for me.
--
---
Kerry Cox, Ph.D.
Neumont University Faculty
http://www.neumont.edu
Work: 801.302.2861
Cell: 801.554.7706
[email protected]
====================== End of Forwarded Mail ======================
========================= Forwarded message =========================
Subject: Re: [lfs-support] Probably simple binutils installation issue
From: "Thanos Baloukas"<[email protected]>
Date: Fri, 2 Sep 2016 23:48:30 +0300
To: <[email protected]>
------------------------- Contents -------------------------
On 02/09/2016 09:26 μμ, smith.aaron wrote:
> 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... 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
>
>
> Finally, here is the config.log mentioned in the terminal. I think I cut
> and paste the right bit of it. Overall it was very big and I am not sure
> of mailing list etiquette, so tried to just get the relevant bit. I am
> confident I have entered any other commands correctly (except that of
> course I am having this problem, so...!)
>
>
> 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... gawk
> checking for gcc... gcc
> checking for C compiler defa
>
>
> Any help will be greatly appreciated! Thanks for the book and community
> - although I have run into trouble here I think it is going to be of
> great help for me.
>
>
You posted the configure output, not config.log
config.log is created by the configure script,
not redirecting it's output.
The error in config.log should be after the line:
checking for C compiler default output file name
Copy and paste that part.
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
--
Thanos
====================== End of Forwarded Mail ======================
========================= Forwarded message =========================
Subject: Re: [lfs-support] Probably simple binutils installation issue
From: "Bruce Dubbs"<[email protected]>
Date: Fri, 2 Sep 2016 16:06:04 -0500
To: "LFS Support List"<[email protected]>
------------------------- Contents -------------------------
smith.aaron wrote:
> 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 \
>
> &gt; --with-sysroot=$LFS \
>
> &gt; --with-lib-path=/tools/lib \
>
> &gt; --target=$LFS_TGT \
>
> &gt; --disable-nls \
>
> &gt; --disable-werror
> configure: error: in `/mnt/sda7/sources/binutils-2.27/build':
>
> configure: error: C compiler cannot create executables
>
> See `config.log' for more details.
What does this give you on the host?
$ cat > hello.c << EOF
#include <stdio.h>
int main()
{
printf("Hello World\n");
return 0;
}
EOF
$ gcc -o hello hello.c
$ ./hello
-- Bruce
====================== End of Forwarded Mail ======================
========================= Forwarded message =========================
Subject: Re: [lfs-support] Multilib support
From: "Thanos Baloukas"<[email protected]>
Date: Sat, 3 Sep 2016 02:21:44 +0300
To: <[email protected]>
------------------------- Contents -------------------------
On 02/09/2016 10:06 μμ, Rob wrote:
> In chapter 6 of LFS, we have
> "--disable-multilib"
> specified in the configure instructions. What will happen if I don't
include that? I have some programs that I want to run which are 32 bit, and
require 32 bit libs.
>
AFAIK omitting this is needed to build a multilib compiler,
but it's not enough. It needs more to achieve this. Try Google.
--
Thanos
====================== End of Forwarded Mail ======================
========================= Forwarded message =========================
Subject: Re: [lfs-support] Multilib support
From: "Hazel Russman"<[email protected]>
Date: Sat, 3 Sep 2016 07:35:04 +0100
To: <[email protected]>
------------------------- Contents -------------------------
On Sat, 3 Sep 2016 02:21:44 +0300
Thanos Baloukas <[email protected]> wrote:
> On 02/09/2016 10:06 μμ, Rob wrote:
> > In chapter 6 of LFS, we have
> > "--disable-multilib"
> > specified in the configure instructions. What will happen if I don't
include that? I have some programs that I want to run which are 32 bit, and
require 32 bit libs.
> >
> AFAIK omitting this is needed to build a multilib compiler,
> but it's not enough. It needs more to achieve this. Try Google.
>
> --
> Thanos
> --
I don't think you can do multilib in LFS. You need to use CLFS.
Hazel
====================== End of Forwarded Mail ======================
========================= Forwarded message =========================
Subject: Re: [lfs-support] Multilib support
From: "Thanos Baloukas"<[email protected]>
Date: Sat, 3 Sep 2016 10:35:42 +0300
To: <[email protected]>
------------------------- Contents -------------------------
On 03/09/2016 09:35 πμ, Hazel Russman wrote:
> On Sat, 3 Sep 2016 02:21:44 +0300
> Thanos Baloukas <[email protected]> wrote:
>
>> On 02/09/2016 10:06 μμ, Rob wrote:
>>> In chapter 6 of LFS, we have
>>> "--disable-multilib"
>>> specified in the configure instructions. What will happen if I
don't include that? I have some programs that I want to run which are 32 bit,
and require 32 bit libs.
>>>
>> AFAIK omitting this is needed to build a multilib compiler,
>> but it's not enough. It needs more to achieve this. Try Google.
>>
>> --
>> Thanos
>> --
> I don't think you can do multilib in LFS. You need to use CLFS.
>
> Hazel
>
This is what I meant saying "it needs more to achieve this".
Not sure about CLFS. Sometime ago Armin's instructions on
https://github.com/elkrejzi
worked for me. I don't know if they still do.
--
Thanos
====================== End of Forwarded Mail ======================
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
--
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