FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 09-08-2012, 02:47 PM
Philip Webb
 
Default GCC : another trap for the unwary

My new machine is working & compiles lightning-fast :
it feels like the driver of a steam engine hurtling down the tracks
(I've just finished a biography of J G Robinson, the UK loco designer).

I've just recompiled most of the pkgs listed by 'emerge -ep system',
but found a few problems :

(1) Gcc 4.5.4 seems to require USE="cxx", not the previous "-nocxx",
which was covered by "-*" at the beginning of my list in make.conf .
4.5.4 compiled without "cxx" wouldn't recompile itself with "cxx" (!),
but I found I could get around the problem by emerging 4.4.5 ,
then using that to recompile 4.5.4 , after which 4.5.4 did recompile itself.
It doesn't hurt to have > 1 version of Gcc installed.

(2) Libxml2 failed : I simply left it till tomorrow to find out why.

(3) Groff + Openssh have an "X" flag : is this useful ?
Python has a "build" flag, which suppressed many deps,
but now I'm back in my regular machine
'euses' issues a grim warning vs setting it.

(4) The ancient distinction between 'world' / 'system'
seems to have degenerated into chaos :
some pkgs which clearly sb part of 'system' aren't,
while others -- eg virtuals -- have been added.

Incidentally, I've found out why the system creates many TTYs :
they're the equivalent of GUI workspaces = desktops,
allowing someone working without X to view different files etc.
I'm continually struck by the genius of those who created UNIX in 1969 ...

--
========================,,======================== ====================
SUPPORT ___________//___, Philip Webb
ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
TRANSIT `-O----------O---' purslowatchassdotutorontodotca
 
Old 09-08-2012, 04:24 PM
Alan McKinnon
 
Default GCC : another trap for the unwary

On Sat, 8 Sep 2012 10:47:47 -0400
Philip Webb <purslow@ca.inter.net> wrote:

> My new machine is working & compiles lightning-fast :
> it feels like the driver of a steam engine hurtling down the tracks
> (I've just finished a biography of J G Robinson, the UK loco
> designer).
>
> I've just recompiled most of the pkgs listed by 'emerge -ep system',
> but found a few problems :
>
> (1) Gcc 4.5.4 seems to require USE="cxx", not the previous "-nocxx",
> which was covered by "-*" at the beginning of my list in make.conf .

USE=-*" is really not a good idea. It undoes all the sane defaults that
cascading profiles give you.

It is far far better to select the closest most appropriate profile
and add any desired flags that are not in the profile.

All you have succeeded in doing is removing the sane defaults and
forcing yourself to do it all manually. Which is really a whole lot of
heavy lifting Gentoo is designed to not require you to do. It's
Gentoo, not LFS :-)


> 4.5.4 compiled without "cxx" wouldn't recompile itself with "cxx" (!),
> but I found I could get around the problem by emerging 4.4.5 ,
> then using that to recompile 4.5.4 , after which 4.5.4 did recompile
> itself. It doesn't hurt to have > 1 version of Gcc installed.

A sane profile would have prevented this from happening at all.

>
> (2) Libxml2 failed : I simply left it till tomorrow to find out why.
>
> (3) Groff + Openssh have an "X" flag : is this useful ?

for groff this builds gxditview, whatever that is. Probably an X
man-page viewer. I've never used it, I always run man in a terminal, I
suspect most other folk do too.

For openssh, the only thing this does is add xauth as a dependency.
For a workstation running X, you already have xauth.

So you can safely leave X enabled for both packages.


> Python has a "build" flag, which suppressed many deps,
> but now I'm back in my regular machine
> 'euses' issues a grim warning vs setting it.

Yes, you do not want to set USE="build" for python. You are not
building stage 1 images

>
> (4) The ancient distinction between 'world' / 'system'
> seems to have degenerated into chaos :
> some pkgs which clearly sb part of 'system' aren't,
> while others -- eg virtuals -- have been added.

This was discussed to death about a year ago.

Specific pagers and editors are not in system anymore. Virtuals are.

The standard stage 3s give you a default pager and editor, so that if
you remove it, portage will add it right back in (and thereby not leave
you stranded up shit creek with no paddle in sight).

If you don't like nano as you editor and like me can't abide it's
existence, then merge vi and unmerge nano. The virtual is still
satisfied.

All of this is a good thing, it just takes a little thinking and
acceptance on your part.

>
> Incidentally, I've found out why the system creates many TTYs :
> they're the equivalent of GUI workspaces = desktops,
> allowing someone working without X to view different files etc.
> I'm continually struck by the genius of those who created UNIX in
> 1969 ...
>

They are there because Unix was from the very start designed to be a
multi-user, multi-tasking operating system and each user needs a tty. In
the 60s it was unthinkable to do it any other way. I don't think this
was any special genius on Thompson's part, it was the norm back then



--
Alan McKinnon
alan.mckinnon@gmail.com
 
Old 09-08-2012, 08:05 PM
Andrea Conti
 
Default GCC : another trap for the unwary

> (1) Gcc 4.5.4 seems to require USE="cxx", not the previous "-nocxx",
> which was covered by "-*" at the beginning of my list in make.conf .

http://article.gmane.org/gmane.linux.gentoo.devel/73962

I guess they ended not putting in the check after all

andrea
 
Old 09-08-2012, 09:32 PM
Allan Gottlieb
 
Default GCC : another trap for the unwary

On Sat, Sep 08 2012, Alan McKinnon wrote:

> On Sat, 8 Sep 2012 10:47:47 -0400
> Philip Webb <purslow@ca.inter.net> wrote:
>
>> (3) Groff + Openssh have an "X" flag : is this useful ?
>
> for groff this builds gxditview, whatever that is. Probably an X
> man-page viewer. I've never used it, I always run man in a terminal, I
> suspect most other folk do too.

dit normally = device independent troff so this is a viewer for
processes troff files (including man pages).

allan
 
Old 09-10-2012, 07:43 PM
"Walter Dnes"
 
Default GCC : another trap for the unwary

On Sat, Sep 08, 2012 at 10:47:47AM -0400, Philip Webb wrote

> Incidentally, I've found out why the system creates many TTYs :
> they're the equivalent of GUI workspaces = desktops,
> allowing someone working without X to view different files etc.
> I'm continually struck by the genius of those who created UNIX in 1969 ...

From my slightly modified /etc/inittab

# TERMINALS
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
c3:2345:respawn:/sbin/agetty 38400 tty3 linux
c4:2345:respawn:/sbin/agetty 38400 tty4 linux
c5:2345:respawn:/sbin/agetty 38400 tty5 linux
c6:2345:respawn:/sbin/agetty 38400 tty6 linux
c7:2345:respawn:/sbin/agetty 38400 tty7 linux
c8:2345:respawn:/sbin/agetty 38400 tty8 linux
c9:2345:respawn:/sbin/agetty 38400 tty9 linux

This gives me 8 working ttys. I run startx from tty9, so various
logging gets spewed to tty9. It's usable in a pinch, but not for normal
use. I run X in tty10, and sometimes as a second user in tty11, even
with a different resolution and bit depth. tty12 gets kernel logging
stuff spewed to it

--
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications
 

Thread Tools




All times are GMT. The time now is 04:40 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org