[gentoo-user] distcc to compile Gentoo on the laptop

2012-06-13 Thread Christopher Lemire
Hello Gentoo users, I have one of the higher end pentium 3s running at 1ghz
on a laptop. I have started to install Gentoo on it. Once Stage 3
(Hardened) and Portage were installed, the first things I installed
were vim and distcc. My desktop is a amd quad core at 2.8 ghz stock.
When I had Gentoo on it once before, compiling went really fast using
MAKEOPT=-j5. My desktop is now running Fedora 16 and it's 64-bit,
LUKS, RAID0. I looked up from the Gentoo Handbook and the Gentoo Wiki
documentation about distcc. It all seems to assume that all the other
computers are also running Gentoo. Also because the desktop is running
64-bit Fedora, and the laptop can only run 32 bit, there is the need
for cross compiling. Here's all the issues I am running into that I'm
asking for help to solve.

1. Both systems are not Gentoo.

2. Fedora has distcc and distccd available in the repos, but both
packages are 64 bit.

3. The need for cross-compiling between architectures. The Gentoo Wiki
says use crossdev. That package is available in the Gentoo
repositories through emerge, but when I checked with my Fedora system,
it was not.

4. According to what I read, gcc version a.b.c where a, b, and c are
numbers, a and b need to be the same on both systems. It is ok for c
to be different. My Gentoo has gcc 4.5.x while Fedora has gcc 4.6.x.

So my question is if this is do-able and if anybody has experience
doing this. I want to do the distcc both for the learning experience
and because just emerging distcc on the laptop alone took at least 2
hours.

Christopher Lemire christopher.lem...@gmail.com
Ubuntu 64 bit Linux Raid Level 0

Gnu Privacy Guard Key Fingerprint = 3E1A 9103 EF3D 4885 6866  E9DE
C69F 18B3 E13B 0909

Web: http://linuxinnovations.blogspot.com
Jabber: recursivequicks...@jabber.org



Re: [gentoo-user] Can't get any microphone to work

2012-06-13 Thread v_2e
  Hello!

On Tue, 12 Jun 2012 19:05:45 -0300
Ezequiel Garcia elezegar...@gmail.com wrote:

  ...
 I still can't get the webcam mic to work :-(
 
  Perhaps, your webcam microphone appears as a separate device. Start
'alsamixer', press 'F6' and see a list of your sound cards. I'm not
sure about it, but maybe your webcam would be there, in which case you
should just choose it and tune the volume for it.

  Good luck!
Vladimir


- 
 v...@ukr.net



[gentoo-user] iftop and 'ipv6' USE-flag

2012-06-13 Thread v_2e
  Hello!
  During a recent upgrade, I noticed that 'net-analyzer/iftop'  now
needs 'net-libs/libpcap' with the 'ipv6' USE flag. It seemed strange to
me and I decided to ask here. Does 'iftop' really needs IPv6? Can't it
be optional?

  Thank you.
Vladimir

- 
 v...@ukr.net



Re: [gentoo-user] iftop and 'ipv6' USE-flag

2012-06-13 Thread Michael Orlitzky
On 06/13/12 05:11, v...@ukr.net wrote:
   Hello!
   During a recent upgrade, I noticed that 'net-analyzer/iftop'  now
 needs 'net-libs/libpcap' with the 'ipv6' USE flag. It seemed strange to
 me and I decided to ask here. Does 'iftop' really needs IPv6? Can't it
 be optional?

It's an upstream bug, if they consider it one. From the Gentoo ChangeLog:

  30 May 2012; Lars Wendler polynomia...@gentoo.org iftop-
  1.0_pre2.ebuild:
  Non-maintainer commit: We need libpcap with ipv6 support or else iftop
  doesn't work at all.

I downloaded the latest iftop tarball and,

  1  There is no ./configure option for ipv6

  2  Compiling it against libpcap without ipv6 support works, but it
 crashes at runtime:

   $ sudo ./iftop
   ...
   set_filter_code: ip6 not supported




Re: [gentoo-user] iftop and 'ipv6' USE-flag

2012-06-13 Thread v_2e
On Wed, 13 Jun 2012 10:11:45 -0400
Michael Orlitzky mich...@orlitzky.com wrote:
 
 It's an upstream bug, if they consider it one. From the Gentoo
 ChangeLog:
 
   30 May 2012; Lars Wendler polynomia...@gentoo.org iftop-
   1.0_pre2.ebuild:
   Non-maintainer commit: We need libpcap with ipv6 support or else
 iftop doesn't work at all.
 
 I downloaded the latest iftop tarball and,
 
   1  There is no ./configure option for ipv6
 
   2  Compiling it against libpcap without ipv6 support works, but it
  crashes at runtime:
 
$ sudo ./iftop
...
set_filter_code: ip6 not supported
 
  Hm... That's bad.


Vladimir

- 
 v...@ukr.net



Re: [gentoo-user] iftop and 'ipv6' USE-flag

2012-06-13 Thread Michael Orlitzky
On 06/13/12 12:02, v...@ukr.net wrote:
 On Wed, 13 Jun 2012 10:11:45 -0400
 Michael Orlitzky mich...@orlitzky.com wrote:

 It's an upstream bug, if they consider it one. From the Gentoo
 ChangeLog:
 ...

   Hm... That's bad.
 

Agreed. I reported it upstream and opened a bug:

  https://bugs.gentoo.org/show_bug.cgi?id=421003



Re: [gentoo-user] distcc to compile Gentoo on the laptop

2012-06-13 Thread Daniel Wagener
On Wed, 13 Jun 2012 01:04:19 -0500
Christopher Lemire christopher.lem...@gmail.com wrote:

 Hello Gentoo users, I have one of the higher end pentium 3s running at 1ghz
 on a laptop. I have started to install Gentoo on it. Once Stage 3
 (Hardened) and Portage were installed, the first things I installed
 were vim and distcc. My desktop is a amd quad core at 2.8 ghz stock.
 When I had Gentoo on it once before, compiling went really fast using
 MAKEOPT=-j5. My desktop is now running Fedora 16 and it's 64-bit,
 LUKS, RAID0. I looked up from the Gentoo Handbook and the Gentoo Wiki
 documentation about distcc. It all seems to assume that all the other
 computers are also running Gentoo. Also because the desktop is running
 64-bit Fedora, and the laptop can only run 32 bit, there is the need
 for cross compiling. Here's all the issues I am running into that I'm
 asking for help to solve.
 
 1. Both systems are not Gentoo.
 
 2. Fedora has distcc and distccd available in the repos, but both
 packages are 64 bit.
 
 3. The need for cross-compiling between architectures. The Gentoo Wiki
 says use crossdev. That package is available in the Gentoo
 repositories through emerge, but when I checked with my Fedora system,
 it was not.
 
 4. According to what I read, gcc version a.b.c where a, b, and c are
 numbers, a and b need to be the same on both systems. It is ok for c
 to be different. My Gentoo has gcc 4.5.x while Fedora has gcc 4.6.x.
 
 So my question is if this is do-able and if anybody has experience
 doing this. I want to do the distcc both for the learning experience
 and because just emerging distcc on the laptop alone took at least 2
 hours.
 
 Christopher Lemire christopher.lem...@gmail.com
 Ubuntu 64 bit Linux Raid Level 0


What about a different approach: gentoo in a VM on the desktop
Would that not be much easier?
Of course some processor power is used for the VM itself, but it should still 
significantly decrease compilation time on the laptop.
Plus you can easily equip other machines with that VM and use their power too.



Re: [gentoo-user] adobe-flash and constant errors.

2012-06-13 Thread Mick
On Monday 11 Jun 2012 14:46:19 Dale wrote:
 Top posting for obvious reasons.  ;-)
 
 I was thinking it could be this but this is the first time I have ever
 ran into this with adobe-flash.  I wanted to sort of check into it
 before doing anything that may cause issues' such as just redoing the
 manifest.  I did think about it tho.
 
 Now to go redo the manifest and try to get it so that sites will work
 again.  In ways flash is good but at times, I want to kick it in the
 family jewels.  O_O
 
 Thanks.
 
 Dale
 
 :-)  :-)
 
 William Kenworthy wrote:
  I get this, commonly with adobe-flash and google-earth.  I suspect that
  they change the file content or dynamically regenerate it faster than
  portage can track them/my local repos update. The only fix I have been
  able to come up with is check as far as possible where the binary came
  from and regenerate the manifest before emerging ... hardly secure.
  
  BillK
  
  On Mon, 2012-06-11 at 05:54 -0500, Dale wrote:
  Howdy,
  
  I been trying to play around with versions of adobe-flash to see which
  version a) works and b) doesn't crash or cause other problems.  Anyway,
  I was using one version, the 10 version, for a bit but am having issues
  so I wanted to try a newer version.  It seems tho, no matter what
  version I want to try, I get messages similar to this:
  
  2012-06-11 05:28:53 (292 MB/s) -
  `/usr/portage/distfiles/adobe-flash-11.2.202.235.i386.tar.gz' saved
  [6916648/6916648]
  
  !!! Fetched file: adobe-flash-11.2.202.235.i386.tar.gz VERIFY FAILED!
  !!! Reason: Filesize does not match recorded size
  !!! Got:  6916648
  !!! Expected: 6916435
  Refetching... File renamed to
  '/usr/portage/distfiles/adobe-flash-11.2.202.235.i386.tar.gz._checksum_f
  ailure_.8RQBX4'
  
  !!! Couldn't download 'adobe-flash-11.2.202.235.i386.tar.gz'. Aborting.
  
   * Fetch failed for 'www-plugins/adobe-flash-11.2.202.235', Log file:
   * 
   '/var/tmp/portage/www-plugins/adobe-flash-11.2.202.235/temp/build.log'
   *
  
  The values change but the error is the same no matter what version I try
  to use.  What I have tried so far:
  
  syncing the tree again.
  deleting the files in /usr/portage/www-plugins/adobe-flash/
  deleting anything adobe in distfiles and in http-replicator.
  syncing the tree again.
  
  I still get the same error.
  
  Another thing I noticed.  When I delete the adobe files in distfiles and
  
  try to emerge them, I get this on the tail end:
6750K   100%
  
  189M=0.02s
  
  I have DSL here but to put it bluntly, it ain't nowhere near that fast.
  Heck, my hard drives ain't that fast.  I run http-replicator but I also
  removed those files too so it is not coming from there.  If it is not
  local, it can't download it that fast, where is it coming from?  I only
  have one rig running locally, not that my network is that fast either.
  lol
  
  Is this just me or is anyone else having this issue?  If it is just me,
  what else can I do to fix this?

Haven't tried the latest, but it has happened here too in the past.

I recall following pretty much what you've done to resolve this problem 
(except for the replicator thing).  I seem to recall that on one occasion I 
had to try again the next day to get it to work, because I did not want to 
risk it with manifest-ing a dodgy download.

I guess you could try downloading it manually directly from adobe?

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] distcc to compile Gentoo on the laptop

2012-06-13 Thread Yohan Pereira
On Wed, Jun 13, 2012 at 08:43:20AM +0200, Daniel Wagener wrote:
 On Wed, 13 Jun 2012 01:04:19 -0500
 
 What about a different approach: gentoo in a VM on the desktop
 Would that not be much easier?
 Of course some processor power is used for the VM itself, but it should still 
 significantly decrease compilation time on the laptop.
 Plus you can easily equip other machines with that VM and use their power too.
 
What about a chroot? that would be much lighter compared to a VM.
Alternativly you can use the chroot to build binnary pkgs that can be
installed on the laptop. 

-- 

- Yohan Pereira

The difference between a Miracle and a Fact is exactly the difference
between a mermaid and a seal.
-- Mark Twain



Re: [gentoo-user] adobe-flash and constant errors.

2012-06-13 Thread Dale
Mick wrote:
 Haven't tried the latest, but it has happened here too in the past. I
 recall following pretty much what you've done to resolve this problem
 (except for the replicator thing). I seem to recall that on one
 occasion I had to try again the next day to get it to work, because I
 did not want to risk it with manifest-ing a dodgy download. I guess
 you could try downloading it manually directly from adobe? 

I watched the download, it came from adobe.  I wouldn't have done the
manifest thing if it came from anywhere else.  So far, I think the new
sources are working better.  It's not crashing/freezing so much.  I'm
not going to complain as long as it works.  lol

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS=--quiet-build=n




Re: [gentoo-user] distcc to compile Gentoo on the laptop

2012-06-13 Thread YoYo Siska
On Thu, Jun 14, 2012 at 01:49:16AM +0530, Yohan Pereira wrote:
 On Wed, Jun 13, 2012 at 08:43:20AM +0200, Daniel Wagener wrote:
  On Wed, 13 Jun 2012 01:04:19 -0500
  
  What about a different approach: gentoo in a VM on the desktop
  Would that not be much easier?
  Of course some processor power is used for the VM itself, but it should 
  still significantly decrease compilation time on the laptop.
  Plus you can easily equip other machines with that VM and use their power 
  too.
  
 What about a chroot? that would be much lighter compared to a VM.
 Alternativly you can use the chroot to build binnary pkgs that can be
 installed on the laptop. 

There are 3 solutions I can think of:

1. Get a cross compiler for i686 working under fedora (have no idea
about that, except manually setuping and compiling gcc) and setup the
Fedora's distcc to use that correctly (this should go more or less
according to the docs on the gentoo wiki regarding cmake and i686 vs
amd64)

2. Create a gentoo chroot on the Fedora OS. Much lightweight that a
virtual machine, you can setup the cross toolchain and distcc according
to the wiki, you just have to play a bit with how to start the distcc
inside the chroot (a plain /etc/init.d/distcc start inside the chroot 
won't work). Note that you can run a i686 chroot in an amd64 system, so
you actually don't need to set up any fancy crosscompiler inside the
chroot. Just run the chroot as 'linux32 chroot /mnt/chrooot ...' to make
sure uname and similar get correct info...

3. Mount the laptops root filesystem through nfs on the fast computer
(use no_root_squash on the laptop export to have correct root access to
files) bind-mount something local (disk or tmpfs if you have enough mem)
over /var/tmp/portage, chroot into it (don't forget to mount /proc,
maybe /sys and maybe bind-mount /dev, though that should not be needed
and don't forget 'linux32 chroot') and run emerges there... you will
actually be running everything on the fast computer, only the access to
the laptops disk will be through the network. With a fast network it
should be a lot faster then working ont the slower notebook (note that
if you bind-mount /var/tmp/portage inside the chroot, most of the
compilation will be working with a local disk...) Compared to the distcc
method, even the configure phases will be much faster...  I do this
often with my Pentium M 1.6Ghz thinkpad laptop and my quad core amd64
desktop...



yoyo

 



Re: [gentoo-user] distcc to compile Gentoo on the laptop

2012-06-13 Thread Thanasis
on 06/14/2012 02:05 AM YoYo Siska wrote the following:

 
 3. Mount the laptops root filesystem through nfs on the fast computer
 (use no_root_squash on the laptop export to have correct root access to
 files) bind-mount something local (disk or tmpfs if you have enough mem)
 over /var/tmp/portage, chroot into it (don't forget to mount /proc,
 maybe /sys and maybe bind-mount /dev, though that should not be needed
 and don't forget 'linux32 chroot') and run emerges there... you will
 actually be running everything on the fast computer, only the access to
 the laptops disk will be through the network. With a fast network it
 should be a lot faster then working ont the slower notebook (note that
 if you bind-mount /var/tmp/portage inside the chroot, most of the
 compilation will be working with a local disk...) Compared to the distcc
 method, even the configure phases will be much faster...  I do this
 often with my Pentium M 1.6Ghz thinkpad laptop and my quad core amd64
 desktop...

Exactly. I do this too.
You also need to pay attention and set CFLAGS correctly and not to native.
Like:
CFLAGS=-march=pentium3 -O2 -pipe -fomit-frame-pointer