Re: [lfs-support] A startup quesion

2012-11-22 Thread Fernando de Oliveira
--- Em qua, 21/11/12, Tobias Gasser escreveu:

 De: Tobias Gasser
 Assunto: Re: [lfs-support] A startup quesion
 Para: LFS Support List
 Data: Quarta-feira, 21 de Novembro de 2012, 20:52
 Am 21.11.2012 14:38, schrieb Fernando
 de Oliveira:
 
  I thought in stripping it, but I am still not sure if
 any problem would
  appear. What is the command you used to strip?
 
 
 i use DESTDIR on all packages, so i can loop thru all files
 in DESTDIR 

My scripts have a choice for DESTDIR, depending on a variable passed
when invoked.

 here the snipet for stripping:
 
OK=$( LC_ALL=C file ${line} )
if [ ! -z $( echo ${OK} | grep ' ELF ' )
 ] ; then
  strip -p --strip-unneeded $line
elif [ ! -z $( echo ${OK} | grep '
 current ar archive' )  ] ; then
  strip -p --strip-debug $line
fi

Thanks. Debug symbols only decrease 28MB. Stripping both, decrease from
446MB to 357MB (89MB).

  Does this include the sources (compressed and
 uncompressed) as in my
  case? If so, please, would you post the switches used?
 
 
 what else if not the sources???

Before LO was in the book, I used to untag the libreoffice* files
outside the build directory and link them, so the build directory itself
was very small. I believe this is documented somwhere in the lists, when
I was discussing with Andy about including it here.

 here my autogen switches:
 

   --with-system-db \

   --with-system-redland \

   --with-system-mysql \

  --with-system-mozilla \
  --with-system-mesa-headers \

  --with-openldap \

  --without-ppds \
  --without-afms \
  --without-myspell-dicts \
  --without-system-dicts \
  --without-help \
  --without-helppack-integration \

Ok, these I do not use. Probably from there, the difference in size.

 as i'm running xfce, i need no kde or gtk3, just gtk2.

I am running less than xfce, but build with gtk3, no kde.

 it's a pitty lo is not able to check the installed
 libraries. either you 
 use --with-system-xx (or as for librsvg --enable-xx=system)
 or lo will 
 build it's own package again! even better to check for
 installed 
 libraries first to avoid even the download - last time i
 counted, i 
 could save 30 out of 100 (as far as i remember nearly 200
 out of 500g).

That is true!

Thanks again, Tobias.

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


[lfs-support] gcc pass 2 fails in LFS 7.2 ?

2012-11-22 Thread Olivier Desbiens
Hi,

I'm trying to upgrade my previous LFS (which was 6.7) to LFS 7.2.

When I get to the second pass of gcc build, it fails with this message:

/tools-7.2/i686-pc-linux-gnu/bin/ld: cannot find crti.o: No such file 
or directory

When I look to my previous LFS, I see that I had to patch gcc before 
building it again with gcc-4.5.1-startfiles_fix-1.patch.

I checked if I didn't forget to patch gcc in 7.2 but there is 
no patch command.

Finally I found a patch in 
http://www.linuxfromscratch.org/patches/downloads/gcc/, 
for gcc 4.7.1, I used it and it worked. 

Is this normal ? Is that patch missing from LFS 7.2 book ?

Thanks !

Olivier

-- 
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 pass 2 fails in LFS 7.2 ?

2012-11-22 Thread Ken Moffat
On Thu, Nov 22, 2012 at 02:35:42PM +, Olivier Desbiens wrote:
 Hi,
 
 I'm trying to upgrade my previous LFS (which was 6.7) to LFS 7.2.
 
 When I get to the second pass of gcc build, it fails with this message:
 
 /tools-7.2/i686-pc-linux-gnu/bin/ld: cannot find crti.o: No such file 
 or directory
 
 When I look to my previous LFS, I see that I had to patch gcc before 
 building it again with gcc-4.5.1-startfiles_fix-1.patch.
 
 I checked if I didn't forget to patch gcc in 7.2 but there is 
 no patch command.
 
 Finally I found a patch in 
 http://www.linuxfromscratch.org/patches/downloads/gcc/, 
 for gcc 4.7.1, I used it and it worked. 
 
 Is this normal ? Is that patch missing from LFS 7.2 book ?
 
 Thanks !
 
 Olivier
 
 No, not at all normal - in 7.2 we don't patch gcc.

/tools/lib/crti.o comes from glibc.  Did you run the sanity check
after installing glibc ?

 You are also using /tools-7.2 - perhaps something broke when you
decided not to use /tools.

ĸ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