On Sunday, July 01, 2012 20:16:16 Ken Moffat wrote:
> On Sun, Jul 01, 2012 at 03:53:11PM +0100, spiky wrote:
> > On 01/07/12 09:32, Archie Arevalo wrote:
-+- snip -+-
> > 
> > Can you post the output of version-check, And if you have built gcc
> > before did you remove the gcc dir and gcc-build dir then start with a
> > fresh untar gcc dir.
> 
>  Apart from that, I think this is probably the wrong config.log :
> from memory, gcc and binutils run configure scripts in several
> directories, and each will create its own config.log.  Perhaps there
> is one in libgcc/ ?
> 
>  If you are building in /mnt/lfs/sources You can try e.g.
> 'find /mnt/lfs/sources -name config.log'
> 
>  Within the log, search for 'cannot compute suffix' (e.g. in
> 'vim/view' or 'less' you could use '/cannot\ compute\ suffix' :
> the error message from the compiler or linker will be just before
> that.
> 
> ĸen

@spiky:

> $ sh ./version-check.sh 
> bash, version 4.1.0(2)-release
> /bin/sh -> /bin/bash
> Binutils: (Linux/GNU Binutils) 2.21.52.0.2.20110610
> bison (GNU Bison) 2.5
> /usr/bin/yacc -> /usr/bin/yacc.bison
> bzip2,  Version 1.0.6, 6-Sept-2010.
> Coreutils:  8.7
> diff (GNU diffutils) 3.2
> find (GNU findutils) 4.5.9
> GNU Awk 3.1.8
> /usr/bin/awk -> /bin/gawk
> gcc (GCC) 4.5.2
> (GNU libc) 2.13
> grep (GNU grep) 2.12
> gzip 1.4
> Linux version 3.2.18-pclos1.bfs ([email protected]) (gcc version 4.5.2 (GCC) ) 
> #1 
SMP PREEMPT Tue May 22 04:05:24 CEST 2012
> m4 (GNU M4) 1.4.16
> GNU Make 3.81
> patch 2.6.1
> Perl version='5.10.1';
> GNU sed version 4.2.1
> tar (GNU tar) 1.26
> Texinfo: makeinfo (GNU texinfo) 4.13
> xz (XZ Utils) 5.0.3
> gcc compilation OK

After a first fail, I deleted both /gcc-4.6.2 and gcc-build and untar the 
tarballs as per the instructions, and tried again with the same results.

@Ken Moffat

> lfs:/mnt/lfs/sources/gcc-build$ find -name config.log
> ./lto-plugin/config.log
> ./gcc/config.log
> ./gmp/config.log
> ./config.log
> ./fixincludes/config.log
> ./mpfr/config.log
> ./libdecnumber/config.log
> ./zlib/config.log
> ./libcpp/config.log
> ./i686-lfs-linux-gnu/libgcc/config.log
> ./build-i686-pc-linux-gnu/fixincludes/config.log
> ./build-i686-pc-linux-gnu/libiberty/config.log
> ./mpc/config.log
> ./libiberty/config.log
> ./intl/config.log

> lfs:/mnt/lfs/sources/gcc-build$ cat i686-lfs-linux-gnu/libgcc/config.log > 
~/libgcc-configlog.txt

On the host ...

## ----------- ##
## Core tests. ##
## ----------- ##

configure:1742: creating cache ./config.cache
configure:1903: checking for --enable-version-specific-runtime-libs
configure:1916: result: no
configure:1964: checking for a BSD-compatible install
configure:2032: result: /usr/bin/install -c
configure:2048: checking for gawk
configure:2075: result: gawk
configure:2095: checking build system type
configure:2109: result: i686-pc-linux-gnu
configure:2129: checking host system type
configure:2142: result: i686-lfs-linux-gnu
configure:2245: checking for i686-lfs-linux-gnu-ar
configure:2272: result: i686-lfs-linux-gnu-ar
configure:2337: checking for i686-lfs-linux-gnu-lipo
configure:2364: result: i686-lfs-linux-gnu-lipo
configure:2429: checking for i686-lfs-linux-gnu-nm
configure:2456: result: /mnt/lfs/sources/gcc-build/./gcc/nm
configure:2521: checking for i686-lfs-linux-gnu-ranlib
configure:2548: result: i686-lfs-linux-gnu-ranlib
configure:2613: checking for i686-lfs-linux-gnu-strip
configure:2640: result: i686-lfs-linux-gnu-strip
configure:2702: checking whether ln -s works
configure:2706: result: yes
configure:2723: checking for i686-lfs-linux-gnu-gcc
configure:2750: result: /mnt/lfs/sources/gcc-build/./gcc/xgcc -
B/mnt/lfs/sources/gcc-build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/ -
B/tools/i686-lfs-linux-gnu/lib/ -isystem /tools/i686-lfs-linux-gnu/include -
isystem /tools/i686-lfs-linux-gnu/sys-include   
configure:3019: checking for C compiler version
configure:3028: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-
build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/ -B/tools/i686-lfs-linux-gnu/lib/ 
-isystem /tools/i686-lfs-linux-gnu/include -isystem /tools/i686-lfs-linux-
gnu/sys-include    --version >&5
xgcc (GCC) 4.6.2
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3039: $? = 0
configure:3028: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-
build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/ -B/tools/i686-lfs-linux-gnu/lib/ 
-isystem /tools/i686-lfs-linux-gnu/include -isystem /tools/i686-lfs-linux-
gnu/sys-include    -v >&5
Reading specs from /mnt/lfs/sources/gcc-build/./gcc/specs
COLLECT_GCC=/mnt/lfs/sources/gcc-build/./gcc/xgcc
COLLECT_LTO_WRAPPER=/mnt/lfs/sources/gcc-build/./gcc/lto-wrapper
Target: i686-lfs-linux-gnu
Configured with: ../gcc-4.6.2/configure --target=i686-lfs-linux-gnu --
prefix=/tools --disable-nls --disable-shared --disable-multilib --disable-
decimal-float --disable-threads --disable-libmudflap --disable-libssp --disable-
libgomp --disable-libquadmath --disable-target-libiberty --disable-target-zlib 
--enable-languages=c --without-ppl --without-cloog --with-mpfr-
include=/mnt/lfs/sources/gcc-build/../gcc-4.6.2/mpfr/src --with-mpfr-
lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs
Thread model: single
gcc version 4.6.2 (GCC) 
configure:3039: $? = 0
configure:3028: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-
build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/ -B/tools/i686-lfs-linux-gnu/lib/ 
-isystem /tools/i686-lfs-linux-gnu/include -isystem /tools/i686-lfs-linux-
gnu/sys-include    -V >&5
xgcc: error: unrecognized option '-V'
xgcc: fatal error: no input files
compilation terminated.
configure:3039: $? = 1
configure:3028: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-
build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/ -B/tools/i686-lfs-linux-gnu/lib/ 
-isystem /tools/i686-lfs-linux-gnu/include -isystem /tools/i686-lfs-linux-
gnu/sys-include    -qversion >&5
xgcc: error: unrecognized option '-qversion'
xgcc: fatal error: no input files
compilation terminated.
configure:3039: $? = 1
configure:3055: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-
build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/ -B/tools/i686-lfs-linux-gnu/lib/ 
-isystem /tools/i686-lfs-linux-gnu/include -isystem /tools/i686-lfs-linux-
gnu/sys-include    -o conftest -g -O2   conftest.c  >&5
/mnt/lfs/sources/gcc-build/./gcc/as: line 87: exec: --: invalid option
exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...]
configure:3058: $? = 1
configure:3246: checking for suffix of object files
configure:3268: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-
build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/ -B/tools/i686-lfs-linux-gnu/lib/ 
-isystem /tools/i686-lfs-linux-gnu/include -isystem /tools/i686-lfs-linux-
gnu/sys-include    -c -g -O2  conftest.c >&5
/mnt/lfs/sources/gcc-build/./gcc/as: line 87: exec: --: invalid option
exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...]
configure:3272: $? = 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:3286: error: in `/mnt/lfs/sources/gcc-build/i686-lfs-linux-
gnu/libgcc':
configure:3289: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

What do you make of it?

Thank you both and kind regards,
Archie Arevalo
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to