Re: [lfs-support] GCC compilation,Pass 1

2013-04-09 Thread francisco martinez
Thanks for you reply @ william, but i must say that i got tired of it, and
started over , and the mistake didnt appear,Thanks anyways thoght


2013/4/8 William Harrington berzerk...@cox.net


 On Apr 7, 2013, at 8:11 PM, francisco martinez wrote:

  @William Harrington i see, thanks a lot william, i was looking at
  the other one.

 Your configure line:

 ../gcc-4.7.2/configure --target=i686-lfs-linux-gnu --prefix=/tools --
 with-sysroot=/mnt/lfs --with-newlib --without-headers --with-local-
 prefix=/tools --with-native-system-header-dir=/tools/include --disable-
 nls --disable-shared --disable-multilib --disable-decimal-float --
 disable-threads --disable-libmudflap --disable-libssp --disable-
 libgomp --disable-libquadmath --enable-languages=c --with-mpfr-
 include=/mnt/lfs/sources/gcc-build/../gcc-4.7.2/mpfr/src --with-mpfr-
 lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs

 The book's configure line:

 ../gcc-4.7.2/configure --target=$LFS_TGT --prefix=/tools  --with-
 sysroot=$LFS --with-newlib --without-headers --with-local-prefix=/
 tools --with-native-system-header-dir=/tools/include --disable-nls --
 disable-shared --disable-multilib --disable-decimal-float --disable-
 threads --disable-libmudflap --disable-libssp --disable-libgomp --
 disable-libquadmath--enable-languages=c --with-mpfr-include=$(pwd)/../
 gcc-4.7.2/mpfr/src --with-mpfr-lib=$(pwd)/mpfr/src/.libs

 Looks okay:

   this is what caused the error:

 configure:3371: /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:3374: $? = 1
 configure:3562: checking for suffix of object files
 configure:3584: /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:3588: $? = 1

 You can view this thread, but not sure where to go from there.
 http://www.mail-archive.com/lfs-support@linuxfromscratch.org/msg17752.html

 SIncerely,

 William Harrington
 --
 http://linuxfromscratch.org/mailman/listinfo/lfs-support
 FAQ: http://www.linuxfromscratch.org/lfs/faq.html
 Unsubscribe: See the above information page

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


Re: [lfs-support] GCC compilation,Pass 1

2013-04-08 Thread William Harrington

On Apr 7, 2013, at 8:11 PM, francisco martinez wrote:

 @William Harrington i see, thanks a lot william, i was looking at  
 the other one.

Your configure line:

../gcc-4.7.2/configure --target=i686-lfs-linux-gnu --prefix=/tools -- 
with-sysroot=/mnt/lfs --with-newlib --without-headers --with-local- 
prefix=/tools --with-native-system-header-dir=/tools/include --disable- 
nls --disable-shared --disable-multilib --disable-decimal-float -- 
disable-threads --disable-libmudflap --disable-libssp --disable- 
libgomp --disable-libquadmath --enable-languages=c --with-mpfr- 
include=/mnt/lfs/sources/gcc-build/../gcc-4.7.2/mpfr/src --with-mpfr- 
lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs

The book's configure line:

../gcc-4.7.2/configure --target=$LFS_TGT --prefix=/tools  --with- 
sysroot=$LFS --with-newlib --without-headers --with-local-prefix=/ 
tools --with-native-system-header-dir=/tools/include --disable-nls -- 
disable-shared --disable-multilib --disable-decimal-float --disable- 
threads --disable-libmudflap --disable-libssp --disable-libgomp -- 
disable-libquadmath--enable-languages=c --with-mpfr-include=$(pwd)/../ 
gcc-4.7.2/mpfr/src --with-mpfr-lib=$(pwd)/mpfr/src/.libs

Looks okay:

  this is what caused the error:

configure:3371: /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:3374: $? = 1
configure:3562: checking for suffix of object files
configure:3584: /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:3588: $? = 1

You can view this thread, but not sure where to go from there. 
http://www.mail-archive.com/lfs-support@linuxfromscratch.org/msg17752.html

SIncerely,

William Harrington
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[lfs-support] GCC compilation,Pass 1

2013-04-07 Thread francisco martinez
The version of the book being used (in this case 7.3)
• The host distribution and version being used to create LFS : Debian
• The output from the Section vii, “Host System Requirements” [xviii] :
bash, version 4.1.5(1)-release
/bin/sh - /bin/bash
Binutils: (GNU Binutils for Debian) 2.20.1-system.20100303
bison (GNU Bison) 2.4.1
/usr/bin/yacc - /usr/bin/bison
bzip2,  Version 1.0.5, 10-Dec-2007.
Coreutils:  8.5
diff (GNU diffutils) 3.0
find (GNU findutils) 4.4.2
GNU Awk 3.1.7
/usr/bin/awk - /usr/bin/gawk
gcc (Debian 4.4.5-8) 4.4.5
(Debian EGLIBC 2.11.3-4) 2.11.3
GNU grep 2.6.3
gzip 1.3.12
Linux version 2.6.32-5-686 (Debian 2.6.32-48squeeze1) (da...@debian.org)
(gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Feb 25 01:04:36 UTC 2013
m4 (GNU M4) 1.4.14
GNU Make 3.81
patch 2.6
Perl version='5.10.1';
GNU sed version 4.2.1
tar (GNU tar) 1.23
Texinfo: makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.0.0
gcc compilation OK

• The package or section the problem was encountered in : GCC first
compilation
• The exact error message or symptom being received :
checking for suffix of object files .. configure: error : in
`/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc ' :
configure : error : cannot compute suffix of object files: cannot compile
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
• Note whether you have deviated from the book at all : didnt deviate.


i found this solution :

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/mpc/lib/

on stack overflow, but i am not sure where should i add it, maybe the
bashrc? i also wondered and saw some mails, and looking at the revised my
symbolic links, but i find them correct, or at least as the book says.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] GCC compilation,Pass 1

2013-04-07 Thread William Harrington


On Apr 7, 2013, at 2:27 PM, francisco martinez wrote:

checking for suffix of object files .. configure: error : in `/mnt/ 
lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc ' :
configure : error : cannot compute suffix of object files: cannot  
compile



View the config.log at /mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/ 
libgcc and find out why it failed.

That'll give us more info that is needed.

Sincerely,
William Harrington-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] GCC compilation,Pass 1

2013-04-07 Thread Bruce Dubbs
francisco martinez wrote:

 • The package or section the problem was encountered in : GCC first
 compilation
 • The exact error message or symptom being received :
 checking for suffix of object files .. configure: error : in
 `/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc ' :
 configure : error : cannot compute suffix of object files: cannot compile
 make[1]: *** [configure-target-libgcc] Error 1
 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
 • Note whether you have deviated from the book at all : didnt deviate.



 i found this solution :

 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/mpc/lib/

 on stack overflow, but i am not sure where should i add it, maybe the
 bashrc? i also wondered and saw some mails, and looking at the revised my
 symbolic links, but i find them correct, or at least as the book says.

mpc shouldn't have anything to do with configure finding the correct 
object suffix.  There should be a config.log that may give you more details.

   -- Bruce


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


Re: [lfs-support] GCC compilation,Pass 1

2013-04-07 Thread francisco martinez
here is my config log


2013/4/7 Bruce Dubbs bruce.du...@gmail.com

 francisco martinez wrote:

  • The package or section the problem was encountered in : GCC first
  compilation
  • The exact error message or symptom being received :
  checking for suffix of object files .. configure: error : in
  `/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc ' :
  configure : error : cannot compute suffix of object files: cannot compile
  make[1]: *** [configure-target-libgcc] Error 1
  make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
  • Note whether you have deviated from the book at all : didnt deviate.
 


  i found this solution :
 
  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/mpc/lib/
 
  on stack overflow, but i am not sure where should i add it, maybe the
  bashrc? i also wondered and saw some mails, and looking at the revised my
  symbolic links, but i find them correct, or at least as the book says.

 mpc shouldn't have anything to do with configure finding the correct
 object suffix.  There should be a config.log that may give you more
 details.

-- Bruce


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



config.log
Description: Binary data
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] GCC compilation,Pass 1

2013-04-07 Thread Bruce Dubbs
francisco martinez wrote:
 here is my config log


 2013/4/7 Bruce Dubbs bruce.du...@gmail.com

 francisco martinez wrote:

 • The package or section the problem was encountered in : GCC first
 compilation
 • The exact error message or symptom being received :
 checking for suffix of object files .. configure: error : in
 `/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc ' :
 configure : error : cannot compute suffix of object files: cannot compile
 make[1]: *** [configure-target-libgcc] Error 1
 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
 • Note whether you have deviated from the book at all : didnt deviate.

Well your log has:

configure:4230: checking for suffix of object files
configure:4252: gcc -c   conftest.c 5
configure:4256: $? = 0
configure:4277: result: o

That doesn't show a problem.

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


Re: [lfs-support] GCC compilation,Pass 1

2013-04-07 Thread Ken Moffat
On Sun, Apr 07, 2013 at 05:28:04PM -0500, Bruce Dubbs wrote:
 francisco martinez wrote:
  here is my config log
 
 
  2013/4/7 Bruce Dubbs bruce.du...@gmail.com
 
  francisco martinez wrote:
 
  • The package or section the problem was encountered in : GCC first
  compilation
  • The exact error message or symptom being received :
  checking for suffix of object files .. configure: error : in
  `/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc ' :
  configure : error : cannot compute suffix of object files: cannot compile
  make[1]: *** [configure-target-libgcc] Error 1
  make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
  • Note whether you have deviated from the book at all : didnt deviate.
 
 Well your log has:
 
 configure:4230: checking for suffix of object files
 configure:4252: gcc -c   conftest.c 5
 configure:4256: $? = 0
 configure:4277: result: o
 
 That doesn't show a problem.
 
-- Bruce
 Both binutils and gcc are slightly unusual - they run configure in
multiple directories (gcc may also run it more than once during its
various stages).  So, what francisco needs to look at is the
_newest_ config.log

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] GCC compilation,Pass 1

2013-04-07 Thread francisco martinez
@Ken : Thanks again ken,i erased the build directory, as well as the
extracted one(again, and again, and even after a restart), and i got this
config.log, i guess this would be the most recent one aint that so? i am
not sure.
the error, was exactly the same as before.
@Bruce : well, it may look fine there, but the make throws those errors for
sure, so i dont want to continue to compile the next packages with a bugged
compiler, it wouldnt work correctly right?



2013/4/7 Ken Moffat zarniwh...@ntlworld.com

 On Sun, Apr 07, 2013 at 05:28:04PM -0500, Bruce Dubbs wrote:
  francisco martinez wrote:
   here is my config log
  
  
   2013/4/7 Bruce Dubbs bruce.du...@gmail.com
  
   francisco martinez wrote:
  
   • The package or section the problem was encountered in : GCC first
   compilation
   • The exact error message or symptom being received :
   checking for suffix of object files .. configure: error : in
   `/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc ' :
   configure : error : cannot compute suffix of object files: cannot
 compile
   make[1]: *** [configure-target-libgcc] Error 1
   make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
   • Note whether you have deviated from the book at all : didnt
 deviate.
 
  Well your log has:
 
  configure:4230: checking for suffix of object files
  configure:4252: gcc -c   conftest.c 5
  configure:4256: $? = 0
  configure:4277: result: o
 
  That doesn't show a problem.
 
 -- Bruce
  Both binutils and gcc are slightly unusual - they run configure in
 multiple directories (gcc may also run it more than once during its
 various stages).  So, what francisco needs to look at is the
 _newest_ config.log

 ĸen
 --
 das eine Mal als Tragödie, das andere Mal als Farce
 --
 http://linuxfromscratch.org/mailman/listinfo/lfs-support
 FAQ: http://www.linuxfromscratch.org/lfs/faq.html
 Unsubscribe: See the above information page



config.log
Description: Binary data
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] GCC compilation,Pass 1

2013-04-07 Thread William Harrington

Hello Francisco,

Is that the config.log from /mnt/lfs/sources/gcc-build/i686-lfs-linux- 
gnu/libgcc  ? That's what was being configured before it errored and  
that is the last directory mentioned.

The config.log you had exited with status 0 so that is the wrong log.

Sincerely,

William Harrington-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] GCC compilation,Pass 1

2013-04-07 Thread francisco martinez
@William Harrington i see, thanks a lot william, i was looking at the other
one.


2013/4/7 William Harrington berzerk...@cox.net

 Hello Francisco,

 Is that the config.log from 
 /mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc
  ? That's what was being configured before it errored and that is the last
 directory mentioned.
 The config.log you had exited with status 0 so that is the wrong log.

 Sincerely,

 William Harrington

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




config.log
Description: Binary data
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] GCC compilation,Pass 1

2013-04-07 Thread Gordon Findlay
I've encountered this error when the MPC, GMP and/or  MPFR directories have
not been set up correctly. There's an oblique mention of this in the gcc
FAQ: http://gcc.gnu.org/wiki/FAQ#configure_suffix

This may not be the cause, but it's one easy thing to check - all three
packages should be (during this pass anyway) subdirectories of gcc-4.7.2.

This has also been mentioned previously in this list's archives.

Slainte
Gordon
-- 
Gordon Findlay
gordon.find...@gmail.com
Intelligence fell like snow you know. Not just among the posh voices.
The consumer society is in fact the most efficient mechanism ever devised
for the creation and distribution of unhappiness


On Mon, Apr 8, 2013 at 1:11 PM, francisco martinez fram...@gmail.comwrote:

 @William Harrington i see, thanks a lot william, i was looking at the
 other one.


 2013/4/7 William Harrington berzerk...@cox.net

 Hello Francisco,

 Is that the config.log from 
 /mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc
  ? That's what was being configured before it errored and that is the last
 directory mentioned.
 The config.log you had exited with status 0 so that is the wrong log.

 Sincerely,

 William Harrington

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



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


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


Re: [lfs-support] GCC compilation,Pass 1

2013-04-07 Thread francisco martinez
@Gordon, thanks for your reply, but i must say that the packages are there,
i made a copy of each of those packages that i downloaded into the sources
directory into the gcc-4.7.2 directory, i extracted them as the
instructions indicated and used mv to rename the extracted directories to
mpfr,mpc, and gmp. But i shall try to find any tip concerning the problem
in the gcc FAQ


2013/4/7 Gordon Findlay gordon.find...@gmail.com

 I've encountered this error when the MPC, GMP and/or  MPFR directories
 have not been set up correctly. There's an oblique mention of this in the
 gcc FAQ: http://gcc.gnu.org/wiki/FAQ#configure_suffix

 This may not be the cause, but it's one easy thing to check - all three
 packages should be (during this pass anyway) subdirectories of gcc-4.7.2.

 This has also been mentioned previously in this list's archives.

 Slainte
 Gordon
 --
 Gordon Findlay
 gordon.find...@gmail.com
 Intelligence fell like snow you know. Not just among the posh voices.
 The consumer society is in fact the most efficient mechanism ever devised
 for the creation and distribution of unhappiness


 On Mon, Apr 8, 2013 at 1:11 PM, francisco martinez fram...@gmail.comwrote:

 @William Harrington i see, thanks a lot william, i was looking at the
 other one.


 2013/4/7 William Harrington berzerk...@cox.net

 Hello Francisco,

 Is that the config.log from 
 /mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc
  ? That's what was being configured before it errored and that is the last
 directory mentioned.
 The config.log you had exited with status 0 so that is the wrong log.

 Sincerely,

 William Harrington

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



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



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


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