[lfs-support] LFS 7.2 GCC pass 1

2012-09-03 Thread Israel Silberg
Hi all,

I started working on LFS 7.2 and I get the following error in GCC 4.7.1
pass 1 (section 5.5.1)
as far as I can tell I'm following the book to the letter and the configure
I have copied and pasted.
I tried the section three times already and every time I get the same
error, is it OK or should I check something?
My host is Ubuntu 12.04 and the prerequisites passed.
the error:

checking for MPFR... no
configure: error: libmpfr not found or uses a different ABI (including
static vs shared).
make[2]: *** [configure-stage1-mpc] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2

I have done the tar and mv of the MPFR-3.1.1 for sure.
Regards,
Israel
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] LFS 7.2 GCC pass 1

2012-09-03 Thread Jasmine Iwanek
On 2012-09-03 07:53, Israel Silberg wrote:

 checking for MPFR... no
  configure: error: libmpfr not found or uses a different ABI
 (including static vs shared).
 make[2]: *** [configure-stage1-mpc] Error 1
 make[2]: Leaving directory `/mnt/lfs/sources/gcc-build
 make[1]: *** [stage1-bubble] Error 2
  make[1]: Leaving directory `/mnt/lfs/sources/gcc-build
 make: *** [all] Error 2

 I have done the tar and mv of the MPFR-3.1.1 for sure.
 Regards,
 Israel

The question is did you do them inside the gcc-4.7.1 directory as it 
states?

Could you attach the output of ls -lah run inside the gcc-4.7.1 
directory please.

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


Re: [lfs-support] Video Tutorials

2012-09-03 Thread Jasmine Iwanek
On 2012-09-03 08:54, muhammadreza haghiri wrote:
 Hi.

 Will you put video tutorials of LFS book on website?

 Regards.

 Muhammadreza Haghiri

Without bruce's input I can only really speak for myself and by 
experiance:

1) Video turorials would be unlikely as they would provide *no* extra 
benefit to the target audience of the book.

2) They take up valuable space and (see point 1) Provide no added 
benefit.

3) It can on some systems take 12+ HOURS to do a full build, on some 
older systems this can be days instead, nobody is going to sit there for 
12 hours to watch a video tutorial.

4) If you need a video tutorial the most likely reason is because you 
dont have the necessary skill level to use the book competently.

see:

http://www.linuxfromscratch.org/lfs/view/development/prologue/prerequisites.html

Building an LFS system is not a simple task. It requires a certain 
level of existing knowledge of Unix system administration in order to 
resolve problems and correctly execute the commands listed. In 
particular, as an absolute minimum, you should already have the ability 
to use the command line (shell) to copy or move files and directories, 
list directory and file contents, and change the current directory. It 
is also expected that you have a reasonable knowledge of using and 
installing Linux software.

Because the LFS book assumes at least this basic level of skill, the 
various LFS support forums are unlikely to be able to provide you with 
much assistance in these areas. You will find that your questions 
regarding such basic knowledge will likely go unanswered or you will 
simply be referred to the LFS essential pre-reading list.


However there are lots of available examples on youtube and other sites 
on how to *use* the Linux commandline and related commands, so at least 
in my opinion it would just be diverting resources to perform a task 
that has already been done:

http://www.youtube.com/watch?v=d4rn_ZsuO6I

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


Re: [lfs-support] LFS 7.2 GCC pass 1

2012-09-03 Thread William Harrington

On Sep 3, 2012, at 01:53 AM, Israel Silberg wrote:

 checking for MPFR... no
 configure: error: libmpfr not found or uses a different ABI  
 (including static vs shared).

Most likely trying to use the host's installed mpfr.

First extract the gcc tarball from the sources directory and then  
change to the directory created. Only then should you proceed with  
the instructions below. (note at gcc pass1)

Example:



cd $LFS/sources

tar xf gcc-4.7.1.tar.bz2

cd gcc-4.7.1

tar -Jxf ../mpfr-3.1.1.tar.xz
mv -v mpfr-3.1.1 mpfr
tar -Jxf ../gmp-5.0.5.tar.xz
mv -v gmp-5.0.5 gmp
tar -zxf ../mpc-1.0.tar.gz
mv -v mpc-1.0 mpc

.rest of book commands for gcc pass1

Section 5.3 is clear, the note of gcc is clear. not sure what else  
could be said to make it clear.
Prerequisites are clear.

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] Video Tutorials

2012-09-03 Thread William Harrington

On Sep 3, 2012, at 02:54 AM, muhammadreza haghiri wrote:

 Hi.

 Will you put video tutorials of LFS book on website?

 Regards.

 Muhammadreza Haghiri

They won't be on the website, there are already many video tutorials  
users have committed to Youtube for building LFS. Go watch them.

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] Video Tutorials

2012-09-03 Thread muhammadreza haghiri
On Mon, Sep 3, 2012 at 12:53 PM, William Harrington berzerk...@cox.netwrote:


 On Sep 3, 2012, at 02:54 AM, muhammadreza haghiri wrote:

  Hi.
 
  Will you put video tutorials of LFS book on website?
 
  Regards.
 
  Muhammadreza Haghiri

 They won't be on the website, there are already many video tutorials
 users have committed to Youtube for building LFS. Go watch them.

 Sincerely,

 William Harrington

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


Hi.

I want to teach LFS to my students , but they don't have enough skill.

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


Re: [lfs-support] Video Tutorials

2012-09-03 Thread Jasmine Iwanek
On 2012-09-03 09:33, muhammadreza haghiri wrote:

 Hi.

 I want to teach LFS to my students , but they dont have enough skill.

 Regards.
  


Start by teaching them how to use a linux system then.

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


Re: [lfs-support] Video Tutorials

2012-09-03 Thread William Harrington

On Sep 3, 2012, at 03:33 AM, muhammadreza haghiri wrote:

 Hi.

 I want to teach LFS to my students , but they don't have enough skill.

 Regards.

A video won't give them the skills.

Your course should have prerequisites, just like the book.

http://www.linuxfromscratch.org/lfs/view/stable/prologue/ 
prerequisites.html

If the students aren't able to meet the objectives, it's difficult to  
meet the goals.

Also, many people require more hands on experience than watching a  
video. Videos turn people into robots.

I may suggest an audio book, as well!
Heh

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] Video Tutorials

2012-09-03 Thread Oshadha Gunawardena
As William mentioned earlier it would be more appropriate if you can teach
your students to gain the skills required by prerequisites.

On Mon, Sep 3, 2012 at 2:20 PM, William Harrington berzerk...@cox.netwrote:


 On Sep 3, 2012, at 03:33 AM, muhammadreza haghiri wrote:
 
  Hi.
 
  I want to teach LFS to my students , but they don't have enough skill.
 
  Regards.

 A video won't give them the skills.

 Your course should have prerequisites, just like the book.

 http://www.linuxfromscratch.org/lfs/view/stable/prologue/
 prerequisites.html

 If the students aren't able to meet the objectives, it's difficult to
 meet the goals.

 Also, many people require more hands on experience than watching a
 video. Videos turn people into robots.

 I may suggest an audio book, as well!
 Heh

 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


[lfs-support] [ot] Top posting vs bottom posting

2012-09-03 Thread Jasmine Iwanek
This is a top post, as has been mentioned counteless times on list DONT 
DO IT.

On 2012-09-03 10:26, Oshadha Gunawardena wrote:
 As William mentioned earlier it would be more appropriate if you can
 teach your students to gain the skills required by prerequisites.


This is a bottom post, the correct way of replying.

Maybe you in particular didn't deserve this particular larting, but 
somebody had to recieve it, because people have been told repeatedly NOT 
TO TOP POST.

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


Re: [lfs-support] no rc.d, no /etc/udev/rules.d/70-persistent-net.rules

2012-09-03 Thread Tobi Ipaye
Thanks for that, I continued fine without the missing bits.

On Wed, Aug 29, 2012 at 5:17 PM, Bruce Dubbs bruce.du...@gmail.com wrote:
 Tobi Ipaye wrote:
 Hi all,
 I've been following the stable LFS 7.1 book on-line, details -

 I noticed the problem when I got to chapter 7.2. General Network 
 Configuration
 The first part suggests removing network symlinks if there is no
 network card. I have a network card, but I wanted to see what the
 symlinks were, this is when I discovered I had no /etc/rc.d

 This is created when the lfs bootscripts in section 7.6 are installed.

 I proceeded with the rest of the page, and when it came to doing cat
 /etc/udev/rules.d/70-persistent-net.rules., I found I had no cat
 /etc/udev/rules.d/70-persistent-net.rules as well. The only file I
 have in cat /etc/udev/rule.d is /etc/udev/rules.d/55-lfs.rules.

 /sys and /proc need to be mounted as in Section 6.2.

 In some cases, e.g. vmware, the rules are not created (or needed)
 because the network mac address is not consistent across boots.

-- Bruce

 --
 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] LFS 7.2 GCC pass 1

2012-09-03 Thread Israel Silberg
Hi,
Thanks for your reply.
I extracted all of these packages from within the GCC-4.7.1 folder
and the configure and make are from gcc-build
Here is the output for ls -lah of gcc-4.7.1

lfs@kitt-Lenovo-Product:/mnt/lfs/sources/gcc-4.7.1$ ls -lah
total 11M
drwxr-xr-x 33 lfs lfs 4.0K Sep  3 09:25 .
drwxrwxrwt  4 lfs lfs 4.0K Sep  3 09:27 ..
-rw-r--r--  1 lfs lfs  38K Jul  4  2003 ABOUT-NLS
-rw-r--r--  1 lfs lfs  18K Jul 14  2005 COPYING
-rw-r--r--  1 lfs lfs  26K Jul 14  2005 COPYING.LIB
-rw-r--r--  1 lfs lfs 3.3K Apr  9  2009 COPYING.RUNTIME
-rw-r--r--  1 lfs lfs  35K Jul 17  2007 COPYING3
-rw-r--r--  1 lfs lfs 7.5K Jul 17  2007 COPYING3.LIB
-rw-r--r--  1 lfs lfs 524K Jun 14 11:27 ChangeLog
-rw-r--r--  1 lfs lfs 3.2K May 13  2004 ChangeLog.tree-ssa
drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:48 INSTALL
-rw-r--r--  1 lfs lfs   58 Jun 14 11:48 LAST_UPDATED
-rw-r--r--  1 lfs lfs  22K Feb 17  2012 MAINTAINERS
-rw-r--r--  1 lfs lfs 6.0M Jun 14 13:01 MD5SUMS
-rw-r--r--  1 lfs lfs  25K Jan  2  2012 Makefile.def
-rw-r--r--  1 lfs lfs 1.4M May 16 18:54 Makefile.in
-rw-r--r--  1 lfs lfs  67K May 16 18:54 Makefile.tpl
-rw-r--r--  1 lfs lfs 579K Jun 14 11:48 NEWS
-rw-r--r--  1 lfs lfs  815 Oct 10  2009 README
drwxr-xr-x  7 lfs lfs 4.0K Jun 14 11:35 boehm-gc
-rwxr-xr-x  1 lfs lfs 3.7K Aug 22  2009 compile
drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:35 config
-rw-r--r--  1 lfs lfs  25K Mar 22  2011 config-ml.in
-rwxr-xr-x  1 lfs lfs  44K Jun  6  2011 config.guess
-rwxr-xr-x  1 lfs lfs  15K Feb 13  2011 config.rpath
-rwxr-xr-x  1 lfs lfs  35K Nov  2  2011 config.sub
-rwxr-xr-x  1 lfs lfs 458K Feb  2  2012 configure
-rw-r--r--  1 lfs lfs 101K Feb  2  2012 configure.ac
drwxr-xr-x  5 lfs lfs 4.0K Jun 14 11:35 contrib
-rwxr-xr-x  1 lfs lfs  19K Aug 22  2009 depcomp
drwxr-xr-x  3 lfs lfs 4.0K Jun 14 11:48 fixincludes
drwxr-xr-x 17 lfs lfs  20K Sep  3 09:27 gcc
drwxr-xr-x 14 lfs lfs 4.0K May  6 14:20 gmp
drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:37 gnattools
drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:35 include
-rwxr-xr-x  1 lfs lfs  14K Aug 22  2009 install-sh
drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:34 intl
drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:48 libada
drwxr-xr-x  4 lfs lfs 4.0K Jun 14 11:48 libcpp
drwxr-xr-x  4 lfs lfs 4.0K Jun 14 11:37 libdecnumber
drwxr-xr-x  7 lfs lfs 4.0K Jun 14 11:48 libffi
drwxr-xr-x  4 lfs lfs 4.0K Jun 14 11:37 libgcc
drwxr-xr-x  9 lfs lfs 4.0K Jun 14 11:48 libgfortran
drwxr-xr-x  6 lfs lfs 4.0K Jun 14 11:47 libgo
drwxr-xr-x  4 lfs lfs 4.0K Jun 14 12:02 libgomp
drwxr-xr-x  4 lfs lfs 4.0K Jun 14 11:35 libiberty
drwxr-xr-x  4 lfs lfs 4.0K Jun 14 13:01 libitm
drwxr-xr-x 15 lfs lfs 4.0K Jun 14 11:37 libjava
drwxr-xr-x  3 lfs lfs 4.0K Jun 14 11:34 libmudflap
drwxr-xr-x  4 lfs lfs 4.0K Jun 14 11:47 libobjc
drwxr-xr-x  5 lfs lfs 4.0K Jun 14 12:49 libquadmath
drwxr-xr-x  3 lfs lfs 4.0K Jun 14 11:48 libssp
drwxr-xr-x 11 lfs lfs 4.0K Jun 14 11:34 libstdc++-v3
-rwxr-xr-x  1 lfs lfs 3.3K Sep 20  2007 libtool-ldflags
-rw-r--r--  1 lfs lfs 258K Nov 21  2011 libtool.m4
-rw-r--r--  1 lfs lfs 1.8K Sep 26  2008 ltgcc.m4
-rw-r--r--  1 lfs lfs 244K Jan 13  2011 ltmain.sh
drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:35 lto-plugin
-rw-r--r--  1 lfs lfs  12K Dec  5  2009 ltoptions.m4
-rw-r--r--  1 lfs lfs 4.3K Sep 26  2008 ltsugar.m4
-rw-r--r--  1 lfs lfs  703 Dec  5  2009 ltversion.m4
-rw-r--r--  1 lfs lfs 6.0K Dec  5  2009 lt~obsolete.m4
drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:37 maintainer-scripts
-rwxr-xr-x  1 lfs lfs  12K Aug 22  2009 missing
-rwxr-xr-x  1 lfs lfs 2.2K Jul 22  2000 mkdep
-rwxr-xr-x  1 lfs lfs 3.5K Aug 22  2009 mkinstalldirs
-rwxr-xr-x  1 lfs lfs 2.6K Feb 12  2011 move-if-change
drwxr-xr-x  6 lfs lfs 4.0K Jul 19 15:46 mpc
drwxr-xr-x  9 lfs lfs 4.0K Jul  3 18:02 mpfr
-rwxr-xr-x  1 lfs lfs 2.3K Jul 14  2005 symlink-tree
-rwxr-xr-x  1 lfs lfs 6.1K Aug 22  2009 ylwrap
drwxr-xr-x 11 lfs lfs 4.0K Jun 14 11:34 zlib


On Mon, Sep 3, 2012 at 11:22 AM, William Harrington berzerk...@cox.netwrote:


 On Sep 3, 2012, at 01:53 AM, Israel Silberg wrote:

  checking for MPFR... no
  configure: error: libmpfr not found or uses a different ABI
  (including static vs shared).

 Most likely trying to use the host's installed mpfr.

 First extract the gcc tarball from the sources directory and then
 change to the directory created. Only then should you proceed with
 the instructions below. (note at gcc pass1)

 Example:



 cd $LFS/sources

 tar xf gcc-4.7.1.tar.bz2

 cd gcc-4.7.1

 tar -Jxf ../mpfr-3.1.1.tar.xz
 mv -v mpfr-3.1.1 mpfr
 tar -Jxf ../gmp-5.0.5.tar.xz
 mv -v gmp-5.0.5 gmp
 tar -zxf ../mpc-1.0.tar.gz
 mv -v mpc-1.0 mpc

 .rest of book commands for gcc pass1

 Section 5.3 is clear, the note of gcc is clear. not sure what else
 could be said to make it clear.
 Prerequisites are clear.

 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: 

Re: [lfs-support] /usr/lib/libstdc++.la getting trashed

2012-09-03 Thread Baho Utot
On 09/02/2012 10:46 PM, Ken Moffat wrote:
   For some months now, I've had failures in BLFS when
 /usr/libstdc++.la was found to be empty ('not a valid libtool
 archive') : I know Armin removes these .la files, but I've found
 that some things don't rebuild on updates if I do that - on x86_64
 and previously on ppc/{,64}.  Last week, I had another such failure
 in something, and finally bit the bullet and reworked my scripts to
 test that this file - if it exists - is not empty.

   Tonight, I'm building 7.2 on my server.  On the way into chroot
 [ my scripts do a few things here which are done inside chroot in
 the book ] the test triggered.

   Looking at the timestamp, /usr/lib/libstdc++.la with a length of
 zero was updated within the 5 minutes before I saw the error and
 looked at it.  I restored it from a backup, and now chapter 6 is
 building.

   Bu now that I think about this : when it happened (somewhere at the
 end of chapter 5) I was user lfs, so I should not have been able to
 wipe this file.

   I know that I've got problems that are specific to my scripts (e.g.
 automake tests fail in chroot), so I need to ask : has anyone else
 ever seen this sort of error, or am I out on my own ?

 ĸen


I remove all the *.la files on my builds
Although I am only building LFS-7.1 and LFS-7.2 as of now
I will see how that affects BLFS once I get there.

Arch linux has most always removed the *.la files and I am following 
that lead, I will then learn if it works ;)
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] LFS 7.2 GCC pass 1

2012-09-03 Thread William Harrington

On Sep 3, 2012, at 06:33 AM, Israel Silberg wrote:

 Hi,
 Thanks for your reply.
 I extracted all of these packages from within the GCC-4.7.1 folder
 and the configure and make are from gcc-build
 Here is the output for ls -lah of gcc-4.7.1

 drwxr-xr-x 14 lfs lfs 4.0K May  6 14:20 gmp
 drwxr-xr-x  6 lfs lfs 4.0K Jul 19 15:46 mpc
 drwxr-xr-x  9 lfs lfs 4.0K Jul  3 18:02 mpfr


Also, the other problem would be that LFS_TGT isn't set.

We can tell by looking at config.log .  You should be the lfs user  
the whole time.
Double check your environment as created in chapter 4 when creating  
the lfs user.

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] LFS 7.2 GCC pass 1

2012-09-03 Thread Richard Melville

 I extracted all of these packages from within the GCC-4.7.1 folder
 and the configure and make are from gcc-build
 Here is the output for ls -lah of gcc-4.7.1

 lfs@kitt-Lenovo-Product:/mnt/lfs/sources/gcc-4.7.1$ ls -lah
 total 11M
 drwxr-xr-x 33 lfs lfs 4.0K Sep  3 09:25 .
 drwxrwxrwt  4 lfs lfs 4.0K Sep  3 09:27 ..
 -rw-r--r--  1 lfs lfs  38K Jul  4  2003 ABOUT-NLS
 -rw-r--r--  1 lfs lfs  18K Jul 14  2005 COPYING
 -rw-r--r--  1 lfs lfs  26K Jul 14  2005 COPYING.LIB
 -rw-r--r--  1 lfs lfs 3.3K Apr  9  2009 COPYING.RUNTIME
 -rw-r--r--  1 lfs lfs  35K Jul 17  2007 COPYING3
 -rw-r--r--  1 lfs lfs 7.5K Jul 17  2007 COPYING3.LIB
 -rw-r--r--  1 lfs lfs 524K Jun 14 11:27 ChangeLog
 -rw-r--r--  1 lfs lfs 3.2K May 13  2004 ChangeLog.tree-ssa
 drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:48 INSTALL
 -rw-r--r--  1 lfs lfs   58 Jun 14 11:48 LAST_UPDATED
 -rw-r--r--  1 lfs lfs  22K Feb 17  2012 MAINTAINERS
 -rw-r--r--  1 lfs lfs 6.0M Jun 14 13:01 MD5SUMS
 -rw-r--r--  1 lfs lfs  25K Jan  2  2012 Makefile.def
 -rw-r--r--  1 lfs lfs 1.4M May 16 18:54 Makefile.in
 -rw-r--r--  1 lfs lfs  67K May 16 18:54 Makefile.tpl
 -rw-r--r--  1 lfs lfs 579K Jun 14 11:48 NEWS
 -rw-r--r--  1 lfs lfs  815 Oct 10  2009 README
 drwxr-xr-x  7 lfs lfs 4.0K Jun 14 11:35 boehm-gc
 -rwxr-xr-x  1 lfs lfs 3.7K Aug 22  2009 compile
 drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:35 config
 -rw-r--r--  1 lfs lfs  25K Mar 22  2011 config-ml.in
 -rwxr-xr-x  1 lfs lfs  44K Jun  6  2011 config.guess
 -rwxr-xr-x  1 lfs lfs  15K Feb 13  2011 config.rpath
 -rwxr-xr-x  1 lfs lfs  35K Nov  2  2011 config.sub
 -rwxr-xr-x  1 lfs lfs 458K Feb  2  2012 configure
 -rw-r--r--  1 lfs lfs 101K Feb  2  2012 configure.ac
 drwxr-xr-x  5 lfs lfs 4.0K Jun 14 11:35 contrib
 -rwxr-xr-x  1 lfs lfs  19K Aug 22  2009 depcomp
 drwxr-xr-x  3 lfs lfs 4.0K Jun 14 11:48 fixincludes
 drwxr-xr-x 17 lfs lfs  20K Sep  3 09:27 gcc
 drwxr-xr-x 14 lfs lfs 4.0K May  6 14:20 gmp
 drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:37 gnattools
 drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:35 include
 -rwxr-xr-x  1 lfs lfs  14K Aug 22  2009 install-sh
 drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:34 intl
 drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:48 libada
 drwxr-xr-x  4 lfs lfs 4.0K Jun 14 11:48 libcpp
 drwxr-xr-x  4 lfs lfs 4.0K Jun 14 11:37 libdecnumber
 drwxr-xr-x  7 lfs lfs 4.0K Jun 14 11:48 libffi
 drwxr-xr-x  4 lfs lfs 4.0K Jun 14 11:37 libgcc
 drwxr-xr-x  9 lfs lfs 4.0K Jun 14 11:48 libgfortran
 drwxr-xr-x  6 lfs lfs 4.0K Jun 14 11:47 libgo
 drwxr-xr-x  4 lfs lfs 4.0K Jun 14 12:02 libgomp
 drwxr-xr-x  4 lfs lfs 4.0K Jun 14 11:35 libiberty
 drwxr-xr-x  4 lfs lfs 4.0K Jun 14 13:01 libitm
 drwxr-xr-x 15 lfs lfs 4.0K Jun 14 11:37 libjava
 drwxr-xr-x  3 lfs lfs 4.0K Jun 14 11:34 libmudflap
 drwxr-xr-x  4 lfs lfs 4.0K Jun 14 11:47 libobjc
 drwxr-xr-x  5 lfs lfs 4.0K Jun 14 12:49 libquadmath
 drwxr-xr-x  3 lfs lfs 4.0K Jun 14 11:48 libssp
 drwxr-xr-x 11 lfs lfs 4.0K Jun 14 11:34 libstdc++-v3
 -rwxr-xr-x  1 lfs lfs 3.3K Sep 20  2007 libtool-ldflags
 -rw-r--r--  1 lfs lfs 258K Nov 21  2011 libtool.m4
 -rw-r--r--  1 lfs lfs 1.8K Sep 26  2008 ltgcc.m4
 -rw-r--r--  1 lfs lfs 244K Jan 13  2011 ltmain.sh
 drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:35 lto-plugin
 -rw-r--r--  1 lfs lfs  12K Dec  5  2009 ltoptions.m4
 -rw-r--r--  1 lfs lfs 4.3K Sep 26  2008 ltsugar.m4
 -rw-r--r--  1 lfs lfs  703 Dec  5  2009 ltversion.m4
 -rw-r--r--  1 lfs lfs 6.0K Dec  5  2009 lt~obsolete.m4
 drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:37 maintainer-scripts
 -rwxr-xr-x  1 lfs lfs  12K Aug 22  2009 missing
 -rwxr-xr-x  1 lfs lfs 2.2K Jul 22  2000 mkdep
 -rwxr-xr-x  1 lfs lfs 3.5K Aug 22  2009 mkinstalldirs
 -rwxr-xr-x  1 lfs lfs 2.6K Feb 12  2011 move-if-change
 drwxr-xr-x  6 lfs lfs 4.0K Jul 19 15:46 mpc
 drwxr-xr-x  9 lfs lfs 4.0K Jul  3 18:02 mpfr
 -rwxr-xr-x  1 lfs lfs 2.3K Jul 14  2005 symlink-tree
 -rwxr-xr-x  1 lfs lfs 6.1K Aug 22  2009 ylwrap
 drwxr-xr-x 11 lfs lfs 4.0K Jun 14 11:34 zlib


I know it's frustrating -- it's the same bug that I and numerous others
have experienced, but none of the team will accept that it's a bug.  It
took me four or five attempts to get GCC to build, but my problem was at
pass 2.  At one attempt I even copied and pasted the whole instruction set
and it still failed at the same point that you've found.

Bruce suggested wrapping the commands in a script so you can see what's
happening, and that seems like a good idea, however I had already built it
by then by doing nothing different -- just trying it yet again.

I'd still be interested to know why we build GMP, MPC, and MPFR inside GCC
except on the final build where they are built separately.

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


Re: [lfs-support] LFS 7.2 GCC pass 1

2012-09-03 Thread Eleanore Boyd
On 9/3/2012 11:23 AM, Richard Melville wrote:

 I'd still be interested to know why we build GMP, MPC, and MPFR inside GCC
 except on the final build where they are built separately.

 Richard



As I understand it, with the first two times the toolchain is being 
built, and GMP, MPC, and MPFR aren't actually needed as part of said 
toolchain. With the last build, you're building the final system, and so 
they need to be installed in the system before building the new system's 
compiler.

Of course, I expect to be corrected by an editor who's been building it 
several thousand times a year. :)

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


Re: [lfs-support] /usr/lib/libstdc++.la getting trashed

2012-09-03 Thread Bruce Dubbs
Ken Moffat wrote:

   I know that I've got problems that are specific to my scripts (e.g.
 automake tests fail in chroot), so I need to ask : has anyone else
 ever seen this sort of error, or am I out on my own ?

No I haven't.  In my latest build I have:

$ cd /mnt/lfs/
$ ls -l usr/lib/libstd*
-rw-r--r-- 1 root root 2851280 Sep  2 01:40 usr/lib/libstdc++.a
-rwxr-xr-x 1 root root 959 Sep  1 23:26 usr/lib/libstdc++.la
lrwxrwxrwx 1 root root  19 Sep  1 23:26 usr/lib/libstdc++.so - 
libstdc++.so.6.0.17
lrwxrwxrwx 1 root root  19 Sep  1 23:26 usr/lib/libstdc++.so.6 - 
libstdc++.so.6.0.17
-rwxr-xr-x 1 root root 1260202 Sep  2 01:40 usr/lib/libstdc++.so.6.0.17

Once those files are there, I don't know of anything that would alter or 
remove them.

The only automake failure I have is due to not having python installed.

It might be an interesting experiment if you have a zero length .la file 
to just delete it and see if the error still occurs.

Personally I've never seen the purpose of libtool or .la files.

   -- 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] LFS 7.2 GCC pass 1

2012-09-03 Thread Bruce Dubbs
Eleanore Boyd wrote:
 On 9/3/2012 11:23 AM, Richard Melville wrote:

 I'd still be interested to know why we build GMP, MPC, and MPFR inside GCC
 except on the final build where they are built separately.

 As I understand it, with the first two times the toolchain is being
 built, and GMP, MPC, and MPFR aren't actually needed as part of said
 toolchain. With the last build, you're building the final system, and so
 they need to be installed in the system before building the new system's
 compiler.

The only program in Chapter 5 that needs GMP, MPC, and MPFR is gcc and 
having gcc build them is easier than three additional sections.  In 
Chapter 6 they are separate so other programs can use them if desired.

   -- 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] /usr/lib/libstdc++.la getting trashed

2012-09-03 Thread Ken Moffat
On Mon, Sep 03, 2012 at 11:41:55AM -0500, Bruce Dubbs wrote:
 Ken Moffat wrote:
 
I know that I've got problems that are specific to my scripts (e.g.
  automake tests fail in chroot), so I need to ask : has anyone else
  ever seen this sort of error, or am I out on my own ?
 
 No I haven't.  In my latest build I have:
 
 $ cd /mnt/lfs/
 $ ls -l usr/lib/libstd*
 -rw-r--r-- 1 root root 2851280 Sep  2 01:40 usr/lib/libstdc++.a
 -rwxr-xr-x 1 root root 959 Sep  1 23:26 usr/lib/libstdc++.la
 lrwxrwxrwx 1 root root  19 Sep  1 23:26 usr/lib/libstdc++.so - 
 libstdc++.so.6.0.17
 lrwxrwxrwx 1 root root  19 Sep  1 23:26 usr/lib/libstdc++.so.6 - 
 libstdc++.so.6.0.17
 -rwxr-xr-x 1 root root 1260202 Sep  2 01:40 usr/lib/libstdc++.so.6.0.17
 
 Once those files are there, I don't know of anything that would alter or 
 remove them.

 Yeah, this is on the host.  When I've been hit by it in the past,
it has been some days after it disappeared - I've eventually started
to believe a seriously broken package, or a build failure at an
obscure place in a c++ package was doing it.

 But, now that I think about it, I'm almost certain that one of the
scripts I run on the way _into_ chroot (different from the book, so
directories and symlinks should be prefixed ${LFS} when I create them)
is suffering from a thinko.  That would probably explain why I haven't
noticed until much later.  
 
 The only automake failure I have is due to not having python installed.
 

 My automake failures were just as an example to note that my
scripts are known to sometimes be buggy.  But, if I build and test
automake *by hand* in a completed system, with python installed, that
test still fails - unlike the 80+ tests that are now ok.

 It might be an interesting experiment if you have a zero length .la file 
 to just delete it and see if the error still occurs.
 

 Normally, I notice it when I'm upgrading or looking at new packages
in BLFS.  Most recently, gcr failed to compile, and the time when
the .la had been trashed matches when I was playing about with
building 7.2 from itself.

 Some packages build ok if I remove the empty .la file.  Others
don't.  At the moment the only one I can find noted for certain is
ImageMagick - that isn't surprising, that package *needs* its own
.la files at *runtime* to be able to use the 'delegates'.

 Personally I've never seen the purpose of libtool or .la files.
 
-- Bruce
 Well, they seem to be redundant on linux, and I spent some time
back in my clfs days checking what the distros were doing, and then
decided to remove them.  On i686 I never saw a problem (except,
perhaps, in ImageMagick - or perhaps its need for .la files is more
recent).  On ppc, ppc64, and non-multilib x86_64 everything seemed
to build fine (I had a much smaller set of packages in those days),
but I ran into problems during upgrades - not the same missing .la
files on each architecture! - and eventually gave up.

ĸ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] LFS 7.2 GCC pass 1

2012-09-03 Thread Israel Silberg
Thaks all for the replies,
Richard, what do you mean by puting it in a script to what is going on? How
do I make the script write me the data I need?
I know some bash scripting but clearly not enogh :-)
And another question, if I want in the end tohave a LFS or BLFS system
without gcc in it, shold I keep it in the toolchain or should I remove it
when the system is done?
How can I remove it? Should I keep its installation folder and not delete
it in order to do make remove?
On Sep 3, 2012 7:24 PM, Richard Melville 
richard.melvill...@googlemail.com wrote:

 I extracted all of these packages from within the GCC-4.7.1 folder
 and the configure and make are from gcc-build
 Here is the output for ls -lah of gcc-4.7.1

 lfs@kitt-Lenovo-Product:/mnt/lfs/sources/gcc-4.7.1$ ls -lah
 total 11M
 drwxr-xr-x 33 lfs lfs 4.0K Sep  3 09:25 .
 drwxrwxrwt  4 lfs lfs 4.0K Sep  3 09:27 ..
 -rw-r--r--  1 lfs lfs  38K Jul  4  2003 ABOUT-NLS
 -rw-r--r--  1 lfs lfs  18K Jul 14  2005 COPYING
 -rw-r--r--  1 lfs lfs  26K Jul 14  2005 COPYING.LIB
 -rw-r--r--  1 lfs lfs 3.3K Apr  9  2009 COPYING.RUNTIME
 -rw-r--r--  1 lfs lfs  35K Jul 17  2007 COPYING3
 -rw-r--r--  1 lfs lfs 7.5K Jul 17  2007 COPYING3.LIB
 -rw-r--r--  1 lfs lfs 524K Jun 14 11:27 ChangeLog
 -rw-r--r--  1 lfs lfs 3.2K May 13  2004 ChangeLog.tree-ssa
 drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:48 INSTALL
 -rw-r--r--  1 lfs lfs   58 Jun 14 11:48 LAST_UPDATED
 -rw-r--r--  1 lfs lfs  22K Feb 17  2012 MAINTAINERS
 -rw-r--r--  1 lfs lfs 6.0M Jun 14 13:01 MD5SUMS
 -rw-r--r--  1 lfs lfs  25K Jan  2  2012 Makefile.def
 -rw-r--r--  1 lfs lfs 1.4M May 16 18:54 Makefile.in
 -rw-r--r--  1 lfs lfs  67K May 16 18:54 Makefile.tpl
 -rw-r--r--  1 lfs lfs 579K Jun 14 11:48 NEWS
 -rw-r--r--  1 lfs lfs  815 Oct 10  2009 README
 drwxr-xr-x  7 lfs lfs 4.0K Jun 14 11:35 boehm-gc
 -rwxr-xr-x  1 lfs lfs 3.7K Aug 22  2009 compile
 drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:35 config
 -rw-r--r--  1 lfs lfs  25K Mar 22  2011 config-ml.in
 -rwxr-xr-x  1 lfs lfs  44K Jun  6  2011 config.guess
 -rwxr-xr-x  1 lfs lfs  15K Feb 13  2011 config.rpath
 -rwxr-xr-x  1 lfs lfs  35K Nov  2  2011 config.sub
 -rwxr-xr-x  1 lfs lfs 458K Feb  2  2012 configure
 -rw-r--r--  1 lfs lfs 101K Feb  2  2012 configure.ac
 drwxr-xr-x  5 lfs lfs 4.0K Jun 14 11:35 contrib
 -rwxr-xr-x  1 lfs lfs  19K Aug 22  2009 depcomp
 drwxr-xr-x  3 lfs lfs 4.0K Jun 14 11:48 fixincludes
 drwxr-xr-x 17 lfs lfs  20K Sep  3 09:27 gcc
 drwxr-xr-x 14 lfs lfs 4.0K May  6 14:20 gmp
 drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:37 gnattools
 drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:35 include
 -rwxr-xr-x  1 lfs lfs  14K Aug 22  2009 install-sh
 drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:34 intl
 drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:48 libada
 drwxr-xr-x  4 lfs lfs 4.0K Jun 14 11:48 libcpp
 drwxr-xr-x  4 lfs lfs 4.0K Jun 14 11:37 libdecnumber
 drwxr-xr-x  7 lfs lfs 4.0K Jun 14 11:48 libffi
 drwxr-xr-x  4 lfs lfs 4.0K Jun 14 11:37 libgcc
 drwxr-xr-x  9 lfs lfs 4.0K Jun 14 11:48 libgfortran
 drwxr-xr-x  6 lfs lfs 4.0K Jun 14 11:47 libgo
 drwxr-xr-x  4 lfs lfs 4.0K Jun 14 12:02 libgomp
 drwxr-xr-x  4 lfs lfs 4.0K Jun 14 11:35 libiberty
 drwxr-xr-x  4 lfs lfs 4.0K Jun 14 13:01 libitm
 drwxr-xr-x 15 lfs lfs 4.0K Jun 14 11:37 libjava
 drwxr-xr-x  3 lfs lfs 4.0K Jun 14 11:34 libmudflap
 drwxr-xr-x  4 lfs lfs 4.0K Jun 14 11:47 libobjc
 drwxr-xr-x  5 lfs lfs 4.0K Jun 14 12:49 libquadmath
 drwxr-xr-x  3 lfs lfs 4.0K Jun 14 11:48 libssp
 drwxr-xr-x 11 lfs lfs 4.0K Jun 14 11:34 libstdc++-v3
 -rwxr-xr-x  1 lfs lfs 3.3K Sep 20  2007 libtool-ldflags
 -rw-r--r--  1 lfs lfs 258K Nov 21  2011 libtool.m4
 -rw-r--r--  1 lfs lfs 1.8K Sep 26  2008 ltgcc.m4
 -rw-r--r--  1 lfs lfs 244K Jan 13  2011 ltmain.sh
 drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:35 lto-plugin
 -rw-r--r--  1 lfs lfs  12K Dec  5  2009 ltoptions.m4
 -rw-r--r--  1 lfs lfs 4.3K Sep 26  2008 ltsugar.m4
 -rw-r--r--  1 lfs lfs  703 Dec  5  2009 ltversion.m4
 -rw-r--r--  1 lfs lfs 6.0K Dec  5  2009 lt~obsolete.m4
 drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:37 maintainer-scripts
 -rwxr-xr-x  1 lfs lfs  12K Aug 22  2009 missing
 -rwxr-xr-x  1 lfs lfs 2.2K Jul 22  2000 mkdep
 -rwxr-xr-x  1 lfs lfs 3.5K Aug 22  2009 mkinstalldirs
 -rwxr-xr-x  1 lfs lfs 2.6K Feb 12  2011 move-if-change
 drwxr-xr-x  6 lfs lfs 4.0K Jul 19 15:46 mpc
 drwxr-xr-x  9 lfs lfs 4.0K Jul  3 18:02 mpfr
 -rwxr-xr-x  1 lfs lfs 2.3K Jul 14  2005 symlink-tree
 -rwxr-xr-x  1 lfs lfs 6.1K Aug 22  2009 ylwrap
 drwxr-xr-x 11 lfs lfs 4.0K Jun 14 11:34 zlib


 I know it's frustrating -- it's the same bug that I and numerous others
 have experienced, but none of the team will accept that it's a bug.  It
 took me four or five attempts to get GCC to build, but my problem was at
 pass 2.  At one attempt I even copied and pasted the whole instruction set
 and it still failed at the same point that you've found.

 Bruce suggested wrapping the commands in a script so you can see what's
 happening, and that seems like a good idea, however I had already built it
 by then by doing nothing different 

Re: [lfs-support] LFS 7.2 GCC pass 1

2012-09-03 Thread Eleanore Boyd
On 9/3/2012 12:24 PM, Israel Silberg wrote:
 Thaks all for the replies,
 Richard, what do you mean by puting it in a script to what is going on? How
 do I make the script write me the data I need?
 I know some bash scripting but clearly not enogh :-)
 And another question, if I want in the end tohave a LFS or BLFS system
 without gcc in it, shold I keep it in the toolchain or should I remove it
 when the system is done?
 How can I remove it? Should I keep its installation folder and not delete
 it in order to do make remove?


Why do you want to remove gcc at all? If you want to add ANY new 
programs at all, you'll need gcc in order to compile and install them 
properly. Even if you want to use other compilers, they still need to be 
compiled and installed with gcc prior to removing gcc at all.

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


Re: [lfs-support] LFS 7.2 GCC pass 1

2012-09-03 Thread Bruce Dubbs
Eleanore Boyd wrote:
 On 9/3/2012 12:24 PM, Israel Silberg wrote:
 Thaks all for the replies,
 Richard, what do you mean by puting it in a script to what is going on? How
 do I make the script write me the data I need?
 I know some bash scripting but clearly not enogh :-)
 And another question, if I want in the end tohave a LFS or BLFS system
 without gcc in it, shold I keep it in the toolchain or should I remove it
 when the system is done?
 How can I remove it? Should I keep its installation folder and not delete
 it in order to do make remove?

 Why do you want to remove gcc at all? If you want to add ANY new
 programs at all, you'll need gcc in order to compile and install them
 properly. Even if you want to use other compilers, they still need to be
 compiled and installed with gcc prior to removing gcc at all.

Removing gcc can do a couple of things.  First is saves some space. 
Second, it makes is more difficult for a bad guy to compile malware for 
the system.

The original worm, the Morris worm around 1988, propagated itself via 
email where sendmail automatically compiled a program and ran it.  That 
hole has been closed for a long time, but in theory, the same thing can 
happen if the compiler is present.

   -- 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] LFS 7.2 GCC pass 1

2012-09-03 Thread Israel Silberg
And another thing, when you have a compiler you never know if a software
works because you wrote it good or because it has the compiler's enviroment.
Anotger question a bit OT, can a LFS be built from rpms so we will have a
comfertable way to update it?
On Sep 3, 2012 9:21 PM, Bruce Dubbs bruce.du...@gmail.com wrote:

 Eleanore Boyd wrote:
  On 9/3/2012 12:24 PM, Israel Silberg wrote:
  Thaks all for the replies,
  Richard, what do you mean by puting it in a script to what is going on?
 How
  do I make the script write me the data I need?
  I know some bash scripting but clearly not enogh :-)
  And another question, if I want in the end tohave a LFS or BLFS system
  without gcc in it, shold I keep it in the toolchain or should I remove
 it
  when the system is done?
  How can I remove it? Should I keep its installation folder and not
 delete
  it in order to do make remove?

  Why do you want to remove gcc at all? If you want to add ANY new
  programs at all, you'll need gcc in order to compile and install them
  properly. Even if you want to use other compilers, they still need to be
  compiled and installed with gcc prior to removing gcc at all.

 Removing gcc can do a couple of things.  First is saves some space.
 Second, it makes is more difficult for a bad guy to compile malware for
 the system.

 The original worm, the Morris worm around 1988, propagated itself via
 email where sendmail automatically compiled a program and ran it.  That
 hole has been closed for a long time, but in theory, the same thing can
 happen if the compiler is present.

-- Bruce

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


[lfs-support] remove or hide the build tools - was LFS 7.2 GCC pass 1

2012-09-03 Thread Tobias Gasser
Am 03.09.2012 19:24, schrieb Israel Silberg:

  And another question, if I want in the end tohave a LFS or BLFS system
  without gcc in it, shold I keep it in the toolchain or should I remove it
  when the system is done?


i just add

--bindir=${DEVLOP}
--sbindir=${DEVLOP}

to the following packages configure-options:
gcc glibc automake autoconf pkgconfig libtool binutils

there might be some other packages to consider, but for me these seem to 
be sufficient.

root and lfsuser (the user who builds all the stuff) have the following 
added to their profile

DEVLOP=/home/lfsuser/devlop
PATH=${DEVLOP}:${PATH}

no user but root and lfsuser have access to ${DEVLOP} by chown 
lfsuser.root ${DEVLOP}


everything but bin and sbin files are install in the usual place. but 
the binaries are some kind of hidden.

binutils is a little special:
some binaries are installed in ${DEVLOP} AND /usr/bin (ar as ld ld.bfd 
objcopy objdump ranlib strip) which i delete from /usr/bin to have juse 
one copy in ${DEVLOP}

if there is need, you can just move a file from ${DEVLOP} to /usr/bin.
i do so for size and strings from binutils

and i had to make a symlink from ${DEVLOP}/cpp to /lib/cpp as some 
packages require /lib/cpp (don't ask which - it's quite some time ago i 
'invented' this 'security scheme' for my servers)

to be even more paranoid, just move all the stuff in ${DEVLOP} to an usb 
stick - it's less than 8mb of data! whenever you have to build 
something, just insert the stick and mount it to ${DEVLOP}. that's what 
i did first. but as i have to maintain the servers over ssh (or travel 
for hours), i dropped it - except for the client-systems at our local 
school.

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


Re: [lfs-support] remove or hide the build tools - was LFS 7.2 GCC pass 1

2012-09-03 Thread Israel Silberg
Thanks for the clear explanation
On Sep 3, 2012 11:03 PM, Tobias Gasser l...@ebp-gasser.ch wrote:

 Am 03.09.2012 19:24, schrieb Israel Silberg:

   And another question, if I want in the end tohave a LFS or BLFS system
   without gcc in it, shold I keep it in the toolchain or should I remove
 it
   when the system is done?


 i just add

 --bindir=${DEVLOP}
 --sbindir=${DEVLOP}

 to the following packages configure-options:
 gcc glibc automake autoconf pkgconfig libtool binutils

 there might be some other packages to consider, but for me these seem to
 be sufficient.

 root and lfsuser (the user who builds all the stuff) have the following
 added to their profile

 DEVLOP=/home/lfsuser/devlop
 PATH=${DEVLOP}:${PATH}

 no user but root and lfsuser have access to ${DEVLOP} by chown
 lfsuser.root ${DEVLOP}


 everything but bin and sbin files are install in the usual place. but
 the binaries are some kind of hidden.

 binutils is a little special:
 some binaries are installed in ${DEVLOP} AND /usr/bin (ar as ld ld.bfd
 objcopy objdump ranlib strip) which i delete from /usr/bin to have juse
 one copy in ${DEVLOP}

 if there is need, you can just move a file from ${DEVLOP} to /usr/bin.
 i do so for size and strings from binutils

 and i had to make a symlink from ${DEVLOP}/cpp to /lib/cpp as some
 packages require /lib/cpp (don't ask which - it's quite some time ago i
 'invented' this 'security scheme' for my servers)

 to be even more paranoid, just move all the stuff in ${DEVLOP} to an usb
 stick - it's less than 8mb of data! whenever you have to build
 something, just insert the stick and mount it to ${DEVLOP}. that's what
 i did first. but as i have to maintain the servers over ssh (or travel
 for hours), i dropped it - except for the client-systems at our local
 school.

 tobias
 --
 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] LFS 7.2 GCC pass 1

2012-09-03 Thread Baho Utot

On 09/03/2012 01:24 PM, Israel Silberg wrote:


Thaks all for the replies,
Richard, what do you mean by puting it in a script to what is going 
on? How do I make the script write me the data I need?

I know some bash scripting but clearly not enogh :-)
And another question, if I want in the end tohave a LFS or BLFS system 
without gcc in it, shold I keep it in the toolchain or should I remove 
it when the system is done?
How can I remove it? Should I keep its installation folder and not 
delete it in order to do make remove?


On Sep 3, 2012 7:24 PM, Richard Melville 
richard.melvill...@googlemail.com 
mailto:richard.melvill...@googlemail.com wrote:


I extracted all of these packages from within the GCC-4.7.1 folder
and the configure and make are from gcc-build
Here is the output for ls -lah of gcc-4.7.1

lfs@kitt-Lenovo-Product:/mnt/lfs/sources/gcc-4.7.1$ ls -lah
total 11M
drwxr-xr-x 33 lfs lfs 4.0K Sep  3 09:25 .
drwxrwxrwt  4 lfs lfs 4.0K Sep  3 09:27 ..
-rw-r--r--  1 lfs lfs  38K Jul  4  2003 ABOUT-NLS
-rw-r--r--  1 lfs lfs  18K Jul 14  2005 COPYING
-rw-r--r--  1 lfs lfs  26K Jul 14  2005 COPYING.LIB
-rw-r--r--  1 lfs lfs 3.3K Apr  9  2009 COPYING.RUNTIME
-rw-r--r--  1 lfs lfs  35K Jul 17  2007 COPYING3
-rw-r--r--  1 lfs lfs 7.5K Jul 17  2007 COPYING3.LIB
-rw-r--r--  1 lfs lfs 524K Jun 14 11:27 ChangeLog
-rw-r--r--  1 lfs lfs 3.2K May 13  2004 ChangeLog.tree-ssa
drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:48 INSTALL
-rw-r--r--  1 lfs lfs   58 Jun 14 11:48 LAST_UPDATED
-rw-r--r--  1 lfs lfs  22K Feb 17  2012 MAINTAINERS
-rw-r--r--  1 lfs lfs 6.0M Jun 14 13:01 MD5SUMS
-rw-r--r--  1 lfs lfs  25K Jan  2  2012 Makefile.def
-rw-r--r--  1 lfs lfs 1.4M May 16 18:54 Makefile.in
-rw-r--r--  1 lfs lfs  67K May 16 18:54 Makefile.tpl
-rw-r--r--  1 lfs lfs 579K Jun 14 11:48 NEWS
-rw-r--r--  1 lfs lfs  815 Oct 10  2009 README
drwxr-xr-x  7 lfs lfs 4.0K Jun 14 11:35 boehm-gc
-rwxr-xr-x  1 lfs lfs 3.7K Aug 22  2009 compile
drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:35 config
-rw-r--r--  1 lfs lfs  25K Mar 22  2011 config-ml.in
http://config-ml.in
-rwxr-xr-x  1 lfs lfs  44K Jun  6  2011 config.guess
-rwxr-xr-x  1 lfs lfs  15K Feb 13  2011 config.rpath
-rwxr-xr-x  1 lfs lfs  35K Nov  2  2011 config.sub
-rwxr-xr-x  1 lfs lfs 458K Feb  2  2012 configure
-rw-r--r--  1 lfs lfs 101K Feb  2  2012 configure.ac
http://configure.ac
drwxr-xr-x  5 lfs lfs 4.0K Jun 14 11:35 contrib
-rwxr-xr-x  1 lfs lfs  19K Aug 22  2009 depcomp
drwxr-xr-x  3 lfs lfs 4.0K Jun 14 11:48 fixincludes
drwxr-xr-x 17 lfs lfs  20K Sep  3 09:27 gcc
drwxr-xr-x 14 lfs lfs 4.0K May  6 14:20 gmp
drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:37 gnattools
drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:35 include
-rwxr-xr-x  1 lfs lfs  14K Aug 22  2009 install-sh
drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:34 intl
drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:48 libada
drwxr-xr-x  4 lfs lfs 4.0K Jun 14 11:48 libcpp
drwxr-xr-x  4 lfs lfs 4.0K Jun 14 11:37 libdecnumber
drwxr-xr-x  7 lfs lfs 4.0K Jun 14 11:48 libffi
drwxr-xr-x  4 lfs lfs 4.0K Jun 14 11:37 libgcc
drwxr-xr-x  9 lfs lfs 4.0K Jun 14 11:48 libgfortran
drwxr-xr-x  6 lfs lfs 4.0K Jun 14 11:47 libgo
drwxr-xr-x  4 lfs lfs 4.0K Jun 14 12:02 libgomp
drwxr-xr-x  4 lfs lfs 4.0K Jun 14 11:35 libiberty
drwxr-xr-x  4 lfs lfs 4.0K Jun 14 13:01 libitm
drwxr-xr-x 15 lfs lfs 4.0K Jun 14 11:37 libjava
drwxr-xr-x  3 lfs lfs 4.0K Jun 14 11:34 libmudflap
drwxr-xr-x  4 lfs lfs 4.0K Jun 14 11:47 libobjc
drwxr-xr-x  5 lfs lfs 4.0K Jun 14 12:49 libquadmath
drwxr-xr-x  3 lfs lfs 4.0K Jun 14 11:48 libssp
drwxr-xr-x 11 lfs lfs 4.0K Jun 14 11:34 libstdc++-v3
-rwxr-xr-x  1 lfs lfs 3.3K Sep 20  2007 libtool-ldflags
-rw-r--r--  1 lfs lfs 258K Nov 21  2011 libtool.m4
-rw-r--r--  1 lfs lfs 1.8K Sep 26  2008 ltgcc.m4
-rw-r--r--  1 lfs lfs 244K Jan 13  2011 ltmain.sh
drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:35 lto-plugin
-rw-r--r--  1 lfs lfs  12K Dec  5  2009 ltoptions.m4
-rw-r--r--  1 lfs lfs 4.3K Sep 26  2008 ltsugar.m4
-rw-r--r--  1 lfs lfs  703 Dec  5  2009 ltversion.m4
-rw-r--r--  1 lfs lfs 6.0K Dec  5  2009 lt~obsolete.m4
drwxr-xr-x  2 lfs lfs 4.0K Jun 14 11:37 maintainer-scripts
-rwxr-xr-x  1 lfs lfs  12K Aug 22  2009 missing
-rwxr-xr-x  1 lfs lfs 2.2K Jul 22  2000 mkdep
-rwxr-xr-x  1 lfs lfs 3.5K Aug 22  2009 mkinstalldirs
-rwxr-xr-x  1 lfs lfs 2.6K Feb 12  2011 move-if-change
drwxr-xr-x  6 lfs lfs 4.0K Jul 19 15:46 mpc
drwxr-xr-x  9 lfs lfs 4.0K Jul  3 18:02 mpfr
-rwxr-xr-x 

Re: [lfs-support] LFS 7.2 GCC pass 1

2012-09-03 Thread Baho Utot
On 09/03/2012 03:51 PM, Israel Silberg wrote:

 And another thing, when you have a compiler you never know if a 
 software works because you wrote it good or because it has the 
 compiler's enviroment.
 Anotger question a bit OT, can a LFS be built from rpms so we will 
 have a comfertable way to update it?



[putolin]

I have built it using Arch linux pacman package manager which for my 
purpose is better.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[lfs-support] make modules_install

2012-09-03 Thread Garrett Gaston

Here on chapter 8.3 the command make modules_install is giving me the following 
warning upon completion.


Warning: you may need to install module-init-tools
  -- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] make modules_install

2012-09-03 Thread Bruce Dubbs
Garrett Gaston wrote:

 Here on chapter 8.3 the command make modules_install is giving me the 
 following warning upon completion.


 Warning: you may need to install module-init-tools

Do you have kmod installed properly?  What the kernel is looking for is 
depmod and that is provided by kmod.

$ ls -l /sbin/depmod
lrwxrwxrwx 1 root root 11 Aug 22 07:28 /sbin/depmod - ../bin/kmod

   -- 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] make modules_install

2012-09-03 Thread Ken Moffat
On Mon, Sep 03, 2012 at 05:04:37PM -0500, Bruce Dubbs wrote:
 Garrett Gaston wrote:
 
  Here on chapter 8.3 the command make modules_install is giving me the 
  following warning upon completion.
 
 
  Warning: you may need to install module-init-tools
 
 Do you have kmod installed properly?  What the kernel is looking for is 
 depmod and that is provided by kmod.
 
 $ ls -l /sbin/depmod
 lrwxrwxrwx 1 root root 11 Aug 22 07:28 /sbin/depmod - ../bin/kmod
 
 I think Garrett is using 7.1 - older kernels used to give that
message, but worked fine with the versions of kmod in LFS.
Certainly the message has gone with 3.5 kernels.

ĸ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


[lfs-support] LFS 7.2 GCC pass 1

2012-09-03 Thread Walter Webb
I just joined this list and can't respond properly.
I had a different file not found than Israel Silberg.
I unset MAKEFLAGS and retried, and it worked.

Walter Webb

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


Re: [lfs-support] LFS 7.2 GCC pass 1

2012-09-03 Thread Bruce Dubbs
Walter Webb wrote:
 I just joined this list and can't respond properly.
 I had a different file not found than Israel Silberg.
 I unset MAKEFLAGS and retried, and it worked.

Good point.  Using -j  1 can cause problems in some packages.  It can 
cause race conditions that sometimes cause a failure.

I suppose we can put a warning about this in the gcc sections, but we'd 
need it in three places.

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