LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-22-2012, 01:01 PM   #16
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled

thx well i redid gcc and i got this:

checking for i686-Omoikane-linux-gnu-gcc... /mnt/Omoikane/sources/gcc-build/./gcc/xgcc -B/mnt/Omoikane/sources/gcc-build/./gcc/ -B/tools/i686-Omoikane-linux-gnu/bin/ -B/tools/i686-Omoikane-linux-gnu/lib/ -isystem /tools/i686-Omoikane-linux-gnu/include -isystem /tools/i686-Omoikane-linux-gnu/sys-include
checking for suffix of object files... configure: error: in `/mnt/Omoikane/sources/gcc-build/i686-Omoikane-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/mnt/Omoikane/sources/gcc-build'
make: *** [all] Error 2
 
Old 05-22-2012, 01:44 PM   #17
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,981

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
probably posting config.log may help. This kind of error (cannot compute suffix of object files) is very strange
 
Old 05-22-2012, 01:53 PM   #18
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.64. Invocation command line was

$ ../gcc-4.6.2/configure --target=i686-Omoikane-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/Omoikane/sources/gcc-4.6.2/../gcc-4.6.2/mpfr/src --with-mpfr-lib=/mnt/Omoikane/sources/gcc-4.6.2/mpfr/src/.libs

## --------- ##
## Platform. ##
## --------- ##

hostname = ubuntu
uname -m = i686
uname -r = 3.2.0-23-generic-pae
uname -s = Linux
uname -v = #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin


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

configure:2222: checking build system type
configure:2236: result: i686-pc-linux-gnu
configure:2283: checking host system type
configure:2296: result: i686-pc-linux-gnu
configure:2316: checking target system type
configure:2329: result: i686-Omoikane-linux-gnu
configure:2383: checking for a BSD-compatible install
configure:2451: result: /usr/bin/install -c
configure:2462: checking whether ln works
configure:2484: result: yes
configure:2488: checking whether ln -s works
configure:2492: result: yes
configure:2499: checking for a sed that does not truncate output
configure:2563: result: /bin/sed
configure:2572: checking for gawk
configure:2602: result: no
configure:2572: checking for mawk
configure:2588: found /usr/bin/mawk
configure:2599: result: mawk
configure:3923: checking for gcc
configure:3939: found /usr/bin/gcc
configure:3950: result: gcc
configure:4179: checking for C compiler version
configure:4188: gcc --version >&5
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
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:4199: $? = 0
configure:4188: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configure:4199: $? = 0
configure:4188: gcc -V >&5
gcc: error: unrecognized option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4199: $? = 4
configure:4188: gcc -qversion >&5
gcc: error: unrecognized option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:4199: $? = 4
configure:4219: checking for C compiler default output file name
configure:4241: gcc conftest.c >&5
configure:4245: $? = 0
configure:4282: result: a.out
configure:4298: checking whether the C compiler works
configure:4307: ./a.out
configure:4311: $? = 0
configure:4326: result: yes
configure:4333: checking whether we are cross compiling
configure:4335: result: no
configure:4338: checking for suffix of executables
configure:4345: gcc -o conftest conftest.c >&5
configure:4349: $? = 0
configure:4371: result:
configure:4377: checking for suffix of object files
configure:4399: gcc -c conftest.c >&5
configure:4403: $? = 0
configure:4424: result: o
configure:4428: checking whether we are using the GNU C compiler
configure:4447: gcc -c conftest.c >&5
configure:4447: $? = 0
configure:4456: result: yes
configure:4465: checking whether gcc accepts -g
configure:4485: gcc -c -g conftest.c >&5
configure:4485: $? = 0
configure:4526: result: yes
configure:4543: checking for gcc option to accept ISO C89
configure:4607: gcc -c -g -O2 conftest.c >&5
configure:4607: $? = 0
configure:4620: result: none needed
configure:4698: checking for g++
configure:4728: result: no
configure:4698: checking for c++
configure:4728: result: no
configure:4698: checking for gpp
configure:4728: result: no
configure:4698: checking for aCC
configure:4728: result: no
configure:4698: checking for CC
configure:4728: result: no
configure:4698: checking for cxx
configure:4728: result: no
configure:4698: checking for cc++
configure:4728: result: no
configure:4698: checking for cl.exe
configure:4728: result: no
configure:4698: checking for FCC
configure:4728: result: no
configure:4698: checking for KCC
configure:4728: result: no
configure:4698: checking for RCC
configure:4728: result: no
configure:4698: checking for xlC_r
configure:4728: result: no
configure:4698: checking for xlC
configure:4728: result: no
configure:4752: checking for C++ compiler version
configure:4761: g++ --version >&5
../gcc-4.6.2/configure: line 4763: g++: command not found
configure:4772: $? = 127
configure:4761: g++ -v >&5
../gcc-4.6.2/configure: line 4763: g++: command not found
configure:4772: $? = 127
configure:4761: g++ -V >&5
../gcc-4.6.2/configure: line 4763: g++: command not found
configure:4772: $? = 127
configure:4761: g++ -qversion >&5
../gcc-4.6.2/configure: line 4763: g++: command not found
configure:4772: $? = 127
configure:4776: checking whether we are using the GNU C++ compiler
configure:4795: g++ -c conftest.cpp >&5
../gcc-4.6.2/configure: line 1739: g++: command not found
configure:4795: $? = 127
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. */
|
| int
| main ()
| {
| #ifndef __GNUC__
| choke me
| #endif
|
| ;
| return 0;
| }
configure:4804: result: no
configure:4813: checking whether g++ accepts -g
configure:4833: g++ -c -g conftest.cpp >&5
../gcc-4.6.2/configure: line 1739: g++: command not found
configure:4833: $? = 127
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. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4848: g++ -c conftest.cpp >&5
../gcc-4.6.2/configure: line 1739: g++: command not found
configure:4848: $? = 127
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. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4864: g++ -c -g conftest.cpp >&5
../gcc-4.6.2/configure: line 1739: g++: command not found
configure:4864: $? = 127
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. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4874: result: no
configure:4963: checking for gnatbind
configure:4993: result: no
configure:5055: checking for gnatmake
configure:5085: result: no
configure:5104: checking whether compiler driver understands Ada
configure:5127: result: no
configure:5136: checking how to compare bootstrapped objects
configure:5161: result: cmp --ignore-initial=16 $$f1 $$f2
configure:5177: checking for objdir
configure:5192: result: .libs
configure:7228: checking for default BUILD_CONFIG
configure:7260: result:
configure:7750: checking for bison
configure:7766: found /usr/bin/bison
configure:7777: result: bison -y
configure:7798: checking for bison
configure:7814: found /usr/bin/bison
configure:7825: result: bison
configure:7845: checking for gm4
configure:7875: result: no
configure:7845: checking for gnum4
configure:7875: result: no
configure:7845: checking for m4
configure:7861: found /usr/bin/m4
configure:7872: result: m4
configure:7892: checking for flex
configure:7908: found /usr/bin/flex
configure:7919: result: flex
configure:7940: checking for flex
configure:7956: found /usr/bin/flex
configure:7967: result: flex
configure:7987: checking for makeinfo
configure:8003: found /usr/bin/makeinfo
configure:8014: result: makeinfo
configure:8048: checking for expect
configure:8078: result: no
configure:8097: checking for runtest
configure:8127: result: no
configure:8242: checking for ar
configure:8258: found /usr/bin/ar
configure:8269: result: ar
configure:8383: checking for as
configure:8399: found /usr/bin/as
configure:8410: result: as
configure:8524: checking for dlltool
configure:8554: result: no
configure:8665: checking for ld
configure:8681: found /usr/bin/ld
configure:8692: result: ld
configure:8806: checking for lipo
configure:8836: result: no
configure:8947: checking for nm
configure:8963: found /usr/bin/nm
configure:8974: result: nm
configure:9088: checking for ranlib
configure:9104: found /usr/bin/ranlib
configure:9115: result: ranlib
configure:9224: checking for strip
configure:9240: found /usr/bin/strip
configure:9251: result: strip
configure:9360: checking for windres
configure:9390: result: no
configure:9501: checking for windmc
configure:9531: result: no
configure:9642: checking for objcopy
configure:9658: found /usr/bin/objcopy
configure:9669: result: objcopy
configure:9783: checking for objdump
configure:9799: found /usr/bin/objdump
configure:9810: result: objdump
configure:9924: checking for i686-Omoikane-linux-gnu-cc
configure:9954: result: no
configure:9924: checking for i686-Omoikane-linux-gnu-gcc
configure:9954: result: no
configure:10085: checking for i686-Omoikane-linux-gnu-c++
configure:10115: result: no
configure:10085: checking for i686-Omoikane-linux-gnu-g++
configure:10115: result: no
configure:10085: checking for i686-Omoikane-linux-gnu-cxx
configure:10115: result: no
configure:10085: checking for i686-Omoikane-linux-gnu-gxx
configure:10115: result: no
configure:10246: checking for i686-Omoikane-linux-gnu-gcc
configure:10276: result: no
configure:10402: checking for i686-Omoikane-linux-gnu-gcj
configure:10432: result: no
configure:10563: checking for i686-Omoikane-linux-gnu-gfortran
configure:10593: result: no
configure:10724: checking for i686-Omoikane-linux-gnu-gccgo
configure:10754: result: no
configure:10854: checking for ar
configure:10887: result: no
configure:10965: checking for i686-Omoikane-linux-gnu-ar
configure:10995: result: no
configure:11084: checking for as
configure:11117: result: no
configure:11195: checking for i686-Omoikane-linux-gnu-as
configure:11225: result: no
configure:11314: checking for dlltool
configure:11347: result: no
configure:11425: checking for i686-Omoikane-linux-gnu-dlltool
configure:11455: result: no
configure:11544: checking for ld
configure:11577: result: no
configure:11655: checking for i686-Omoikane-linux-gnu-ld
configure:11685: result: no
configure:11774: checking for lipo
configure:11807: result: no
configure:11885: checking for i686-Omoikane-linux-gnu-lipo
configure:11915: result: no
configure:12004: checking for nm
configure:12037: result: no
configure:12115: checking for i686-Omoikane-linux-gnu-nm
configure:12145: result: no
configure:12234: checking for objdump
configure:12267: result: no
configure:12345: checking for i686-Omoikane-linux-gnu-objdump
configure:12375: result: no
configure:12464: checking for ranlib
configure:12497: result: no
configure:12575: checking for i686-Omoikane-linux-gnu-ranlib
configure:12605: result: no
configure:12694: checking for strip
configure:12727: result: no
configure:12805: checking for i686-Omoikane-linux-gnu-strip
configure:12835: result: no
configure:12924: checking for windres
configure:12957: result: no
configure:13035: checking for i686-Omoikane-linux-gnu-windres
configure:13065: result: no
configure:13154: checking for windmc
configure:13187: result: no
configure:13265: checking for i686-Omoikane-linux-gnu-windmc
configure:13295: result: no
configure:13362: checking where to find the target ar
configure:13399: result: pre-installed
configure:13404: checking where to find the target as
configure:13441: result: pre-installed
configure:13446: checking where to find the target cc
configure:13469: result: just compiled
configure:13488: checking where to find the target c++
configure:13528: result: pre-installed
configure:13533: checking where to find the target c++ for libstdc++
configure:13573: result: pre-installed
configure:13578: checking where to find the target dlltool
configure:13615: result: pre-installed
configure:13620: checking where to find the target gcc
configure:13643: result: just compiled
configure:13662: checking where to find the target gcj
configure:13702: result: pre-installed
configure:13707: checking where to find the target gfortran
configure:13747: result: pre-installed
configure:13752: checking where to find the target gccgo
configure:13792: result: pre-installed
configure:13797: checking where to find the target ld
configure:13834: result: pre-installed
configure:13839: checking where to find the target lipo
configure:13865: result: pre-installed
configure:13870: checking where to find the target nm
configure:13907: result: pre-installed
configure:13912: checking where to find the target objdump
configure:13949: result: pre-installed
configure:13954: checking where to find the target ranlib
configure:13991: result: pre-installed
configure:13996: checking where to find the target strip
configure:14033: result: pre-installed
configure:14038: checking where to find the target windres
configure:14075: result: pre-installed
configure:14080: checking where to find the target windmc
configure:14117: result: pre-installed
configure:14150: checking whether to enable maintainer-specific portions of Makefiles
configure:14159: result: no
configure:14192: checking whether -fkeep-inline-functions is supported
configure:14211: gcc -c -g -O2 -fkeep-inline-functions conftest.c >&5
configure:14211: $? = 0
configure:14212: result: yes
configure:14409: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.64. Invocation command line was

CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status

on ubuntu
 
Old 05-22-2012, 03:41 PM   #19
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Can you post the output of of version-check

Code:
configure:2572: checking for gawk
configure:2602: result: no
configure:2572: checking for mawk
configure:2588: found /usr/bin/mawk
configure:2599: result: mawk
 
Old 05-22-2012, 06:27 PM   #20
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
gawk 3.1.8
 
Old 05-22-2012, 11:05 PM   #21
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
ok i restarted ubuntu added 2 more gb to the virtual machine and now its giving me a different error:


In file included from /usr/include/stdio.h:28:0,
from ../../../gcc-4.6.2/libgcc/../gcc/tsystem.h:87,
from ../../../gcc-4.6.2/libgcc/../gcc/libgcc2.c:29:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
make[3]: *** [_muldi3.o] Error 1
make[3]: Leaving directory `/mnt/Omoikane/sources/gcc-build/i686-pc-linux-gnu/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/mnt/Omoikane/sources/gcc-build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/mnt/Omoikane/sources/gcc-build'
make: *** [all] Error 2
 
Old 05-23-2012, 04:36 PM   #22
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi kiyoshi7 FYI

I have just loaded ubuntu 12.10 updated made it compliant, I have built binutils-2.22 pass1 no errors, I have just run make gcc-4.6.2 no errors, I checked the config.log at gawk.
Code:
configure:2572: checking for gawk
configure:2588: found /usr/bin/gawk
configure:2599: result: gawk
configure:3923: checking for gcc
yours shows
Code:
configure:2572: checking for gawk
configure:2602: result: no
configure:2572: checking for mawk
configure:2588: found /usr/bin/mawk
configure:2599: result: mawk
Pls put output of version-check.sh

I,m not building in a VM but I,m sure that wont make a difference

This could be your problem
 
Old 05-24-2012, 07:08 AM   #23
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Can you also post the .bashrc for lfs
 
Old 05-24-2012, 04:06 PM   #24
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
sorry i was without internet yesturday. well i looked for the .bashrc file but i couldnt find it and the version-check i will get back to you on that since the computer that im using for lfs still int connected to the internet :/
 
Old 05-24-2012, 04:10 PM   #25
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

.bashrc is in lfs home dir you can find it with ls -al

It was created in chapter 4.4
 
Old 05-25-2012, 10:48 AM   #26
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
ok i copied and pasted version-check on the terminal and i got this sorry for not cleaning it up...



root@ubuntu:~# export LC_ALL=C
root@ubuntu:~# bash --version | head -n1 | cut -d" " -f2-4
bash, version 4.2.24(1)-release
root@ubuntu:~# echo "/bin/sh -> `readlink -f /bin/sh`"
/bin/sh -> /bin/dash
root@ubuntu:~# echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
Binutils: (GNU Binutils for Ubuntu) 2.22
root@ubuntu:~# bison --version | head -n1
bison++ Version 1.21.9-1, adapted from GNU bison by coetmeur@icdc.fr
root@ubuntu:~# if [ -e /usr/bin/yacc ];
> then echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`";
> else echo "yacc not found"; fi
/usr/bin/yacc -> /usr/bin/bison++.yacc
root@ubuntu:~#
root@ubuntu:~# bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,6-
bzip2, Version 1.0.6, 6-Sept-2010.
root@ubuntu:~# echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
Coreutils: 8.13
root@ubuntu:~# diff --version | head -n1
diff (GNU diffutils) 3.2
root@ubuntu:~# find --version | head -n1
find (GNU findutils) 4.4.2
root@ubuntu:~# gawk --version | head -n1
GNU Awk 3.1.8
root@ubuntu:~# if [ -e /usr/bin/awk ];
> then echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`";
> else echo "awk not found"; fi
/usr/bin/awk -> /usr/bin/gawk
root@ubuntu:~#
root@ubuntu:~# gcc --version | head -n1
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
root@ubuntu:~# ldd --version | head -n1 | cut -d" " -f2- # glibc version
(Ubuntu EGLIBC 2.15-0ubuntu10) 2.15
root@ubuntu:~# grep --version | head -n1
grep (GNU grep) 2.10
root@ubuntu:~# gzip --version | head -n1
gzip 1.4
root@ubuntu:~# cat /proc/version
Linux version 3.2.0-23-generic-pae (buildd@palmer) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu4) ) #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012
root@ubuntu:~# m4 --version | head -n1
m4 (GNU M4) 1.4.16
root@ubuntu:~# make --version | head -n1
GNU Make 3.81
root@ubuntu:~# patch --version | head -n1
patch 2.6.1
root@ubuntu:~# echo Perl `perl -V:version`
Perl version='5.14.2';
root@ubuntu:~# sed --version | head -n1
GNU sed version 4.2.1
root@ubuntu:~# tar --version | head -n1
tar (GNU tar) 1.26
root@ubuntu:~# echo "Texinfo: `makeinfo --version | head -n1`"
Texinfo: makeinfo (GNU texinfo) 4.13
root@ubuntu:~# xz --version | head -n1
xz (XZ Utils) 5.1.0alpha
root@ubuntu:~#
root@ubuntu:~# echo 'main(){}' > dummy.c && gcc -o dummy dummy.c
root@ubuntu:~# if [ -x dummy ]
> then echo "gcc compilation OK";
> else echo "gcc compilation failed"; fi
gcc compilation OK
root@ubuntu:~# rm -f dummy.c dummy

Last edited by kiyoshi7; 05-25-2012 at 10:49 AM.
 
Old 05-25-2012, 11:09 AM   #27
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
ok i compaired what i have to the list in the lfs book you sent me and i found out the prolem, i think, i was just looking to see if i have the components and didnt worry about the versions here is the list i made:

bash 3.2 have 4.2.24
binutils 2.17 have 2.22
bison 2.3 have bison++ 1.21.9
bzip 1.0.4 have 1.0.6
coreutils 6.9 have 8.13
Diffutils-2.8.1 have 3.2
findutils 4.2.31 have 4.4.2
Gawk-3.1.5 have 3.1.8
Gcc-4.1.2 have 4.6.3
glibc 2.5.1 have 2.15
Grep-2.5.1a have 2.10
gzip 1.3.12 have 1.4
Linux Kernel-2.6.25 have 3.2.0
M4-1.4.10 have1.4.16
Make-3.81 have 3.81
Patch-2.5.4 have 2.6.1
Perl-5.8.8 have 5.14.2
Sed-4.1.5 have 4.2.1
Tar-1.18 have 1.26
Texinfo-4.9 have 4.13
Xz-5.0.3 have 5.1.0 alfa


when i ran ls -al i got this:
drwx------ 23 root root 4096 May 25 08:45 .
drwxr-xr-x 23 root root 4096 May 20 21:45 ..
-rw------- 1 root root 1590 May 22 20:34 .ICEauthority
-rw------- 1 root root 51 May 22 20:34 .Xauthority
drwx------ 3 root root 4096 May 21 19:38 .adobe
-rw------- 1 root root 8700 May 25 08:45 .bash_history
-rw-r--r-- 1 root root 3106 Apr 19 02:15 .bashrc
drwx------ 12 root root 4096 May 21 19:40 .cache
drwx------ 10 root root 4096 May 22 11:49 .config
drwx------ 3 root root 4096 May 20 17:18 .dbus
-rw-r--r-- 1 root root 26 May 22 20:34 .dmrc
drwx------ 3 root root 4096 May 22 20:34 .gconf
drwx------ 4 root root 4096 May 21 19:34 .gnome2
-rw------- 1 root root 0 May 22 16:49 .goutputstream-AHMMEW
-rw-r--r-- 1 root root 107 May 22 20:34 .gtk-bookmarks
dr-x------ 2 root root 0 May 22 20:34 .gvfs
drwxr-xr-x 3 root root 4096 May 21 19:34 .local
drwx------ 3 root root 4096 May 21 19:38 .macromedia
drwx------ 3 root root 4096 May 21 19:34 .mission-control
drwx------ 4 root root 4096 May 21 19:38 .mozilla
-rw-r--r-- 1 root root 140 Apr 19 02:15 .profile
drwx------ 2 root root 4096 May 22 20:34 .pulse
-rw------- 1 root root 256 May 20 16:44 .pulse-cookie
drwx------ 4 root root 4096 May 22 08:58 .thumbnails
-rw------- 1 root root 33908 May 25 09:21 .xsession-errors
-rw------- 1 root root 26795 May 22 20:29 .xsession-errors.old
drwxr-xr-x 3 root root 4096 May 25 09:13 Desktop
drwxr-xr-x 2 root root 4096 May 21 19:34 Documents
drwxr-xr-x 2 root root 4096 May 22 19:33 Downloads
drwxr-xr-x 2 root root 4096 May 21 19:34 Music
drwxr-xr-x 2 root root 4096 May 21 19:34 Pictures
drwxr-xr-x 2 root root 4096 May 21 19:34 Public
drwxr-xr-x 2 root root 4096 May 21 19:34 Templates
drwxr-xr-x 2 root root 4096 May 21 19:34 Videos
-rw-r--r-- 1 root root 1260 May 25 08:38 version-check.sh

Last edited by kiyoshi7; 05-25-2012 at 11:24 AM. Reason: correction
 
Old 05-26-2012, 01:42 AM   #28
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Ok can you post the out put of version-check even tho you show all correct,
Code:
 version-check-sh >> /home/user/result
this will leave you a file in user home dir
and post what you have in .bashrc, did you copy and paste it from the book!!!

Just to ask did you make version-check.sh executable then run it as a script from /bin????

I find it strange how it finds mawk and not gawk.

Also I think there is something wrong with .bashrc and how you setup lfs.

Last edited by spiky0011; 05-26-2012 at 02:10 AM.
 
Old 05-26-2012, 02:18 AM   #29
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Things I noticed:
Quote:
Originally Posted by kiyoshi7 View Post
/bin/sh -> /bin/dash
/bin/sh should be a symbolic or hard link to bash

Quote:
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Gcc-4.1.2 (Versions greater than 4.6.2 are not recommended as they have not been tested)

Quote:
(Ubuntu EGLIBC 2.15-0ubuntu10) 2.15
Glibc-2.5.1 (Versions greater than 2.14.1 are not recommended as they have not been tested). I'm not 100% sure if this is a problem (no personal experience).
 
Old 05-26-2012, 02:29 AM   #30
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi drunna
I have built using these 2 On my ubuntu upto gcc, I was wondering why the OP log showed using mawk not gawk, when I checked mine it was using gawk.
The only other thing was OP uses "/mnt/Omoikane/sources not lfs would this be creating problems?

Thks for looking
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with GCC unihiekka Linux - Software 4 07-12-2006 09:59 AM
Problems Compiling Problems With GCC And C++ phnxbn Linux - Software 0 11-02-2004 05:49 PM
GCC problems natm Linux - Newbie 8 10-17-2004 09:42 PM
Problems with gcc spooodini Linux - Software 5 10-31-2003 12:40 PM
gcc problems 2k. Linux From Scratch 1 07-19-2003 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration