Re: [lfs-support] gcc error cannot compute suffix of files

2017-06-14 Thread Bruce Dubbs

Isaac D. Cohen wrote:

Hi,

I installed gawk. But the compilation still fails. Here is the error:

checking for suffix of object files... configure: error: in
`/media/isaac/LFS/Source_Code/build-gcc/i686-elf/libgcc':
configure: error: cannot compute suffix of object files: cannot
compile
See `config.log' for more details.
Makefile:12212: recipe for target 'configure-target-libgcc' failed

And here is the part that I posted last time from config.log:

/media/isaac/LFS/Source_Code/build-gcc/./gcc/as: 106: exec: -o: not
found
configure:3465: $? = 1
configure:3653: checking for suffix of object files
configure:3675: /media/isaac/LFS/Source_Code/build-gcc/./gcc/xgcc
-B/media/isaac/LFS/Source_Code/build-gcc/./gcc/
-B/tools/i686-elf/bin/ -B/tools/i686-elf/lib/ -isystem
/tools/i686-elf/include -isystem /tools/i686-elf/sys-include
-c -g -O2 conftest.c >&5
/media/isaac/LFS/Source_Code/build-gcc/./gcc/as: 106: exec: -o: not
found
configure:3679: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/";
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3693: error: in
`/media/isaac/LFS/Source_Code/build-gcc/i686-elf/libgcc':
configure:3696: error: cannot compute suffix of object files: cannot
compile

I still don't understand what's causing the error and what I can do about it.


gawk was not your only error. Repost the current output of version-check.sh.

  -- Bruce


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


Re: [lfs-support] gcc error cannot compute suffix of files

2017-06-14 Thread Isaac D. Cohen
Hi,

I installed gawk. But the compilation still fails. Here is the error:

checking for suffix of object files... configure: error: in
 `/media/isaac/LFS/Source_Code/build-gcc/i686-elf/libgcc':
configure: error: cannot compute suffix of object files: cannot
 compile
See `config.log' for more details.
Makefile:12212: recipe for target 'configure-target-libgcc' failed

And here is the part that I posted last time from config.log:

/media/isaac/LFS/Source_Code/build-gcc/./gcc/as: 106: exec: -o: not
 found
configure:3465: $? = 1
configure:3653: checking for suffix of object files
configure:3675: /media/isaac/LFS/Source_Code/build-gcc/./gcc/xgcc
 -B/media/isaac/LFS/Source_Code/build-gcc/./gcc/ 
-B/tools/i686-elf/bin/ -B/tools/i686-elf/lib/ -isystem 
/tools/i686-elf/include -isystem /tools/i686-elf/sys-include 
-c -g -O2 conftest.c >&5
/media/isaac/LFS/Source_Code/build-gcc/./gcc/as: 106: exec: -o: not
 found
configure:3679: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/";
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3693: error: in
 `/media/isaac/LFS/Source_Code/build-gcc/i686-elf/libgcc':
configure:3696: error: cannot compute suffix of object files: cannot
 compile

I still don't understand what's causing the error and what I can do about it.

Thank you very much,
Isaac D. Cohen

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


Re: [lfs-support] gcc error cannot compute suffix of files

2017-06-14 Thread Pierre Labastie
On 14/06/2017 07:39, Isaac D. Cohen wrote:
> Hi,
> 
> Yes, the script in section 2.2 returns "G++ compilation OK". Here is
> the full output:
> 
> bash, version 4.3.48(1)-release
> /bin/sh -> /bin/dash

That is important: glibc and gcc rely on some "bashism's", that dash lacks.
> ERROR: /bin/sh does not point to bash
> Binutils: (GNU Binutils) 2.28
> 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
> gawk: not an option: --version

This is not the expected ouput: --version *is* an option for gawk. I guess
gawk is not installed. Yhe installation process relies on gawk.

> /usr/bin/awk -> /usr/bin/mawk

This also is a problem: awk should point to gawk.

> gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
> g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
> (Ubuntu GLIBC 2.23-0ubuntu7) 2.23
> grep (GNU grep) 2.25
> gzip 1.6
> Linux version 4.11.3-041103-generic (kernel@gomeisa) (gcc version
> 6.3.0 20170519 (Ubuntu/Linaro 6.3.0-18ubuntu2) ) #201705251233 SMP
> Thu May 25 16:34:52 UTC 2017
> m4 (GNU M4) 1.4.17
> GNU Make 4.1
> GNU patch 2.7.5
> Perl version='5.22.1';
> sed (GNU sed) 4.2.2
> tar (GNU tar) 1.28
> texi2any (GNU texinfo) 6.1
> xz (XZ Utils) 5.1.0alpha
> g++ compilation OK
> 
> The only error I see is that /bin/sh points to /bin/dash instead of
> /bin/bash. But I don't see how that would be relevant here, if
> anywhere.
> 
> Thank you very much,
> Isaac D. Cohen
> 
> 

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