[gentoo-user] Re: aligning SSD partitions

2012-09-07 Thread Nicolas Sebrecht
The 06/09/12, Dale wrote:

 But whether it is on tmpfs or just regular memory doesn't matter.  Once
 emerge starts, everything is in ram including portages work directory
 which would be on tmpfs here.  That's why it doesn't matter if portage
 is on tmpfs or not.  Once emerge loads up the files, it's the same
 thing.  That's why using tmpfs doesn't matter.  I knew that the whole
 time.  The amount of ram on a system doesn't matter either.  If you have
 a system that doesn't have a lot of ram, then you can't really use tmpfs
 anyway.  That is not something I would recommend to anyone. 

But you're wrong with this assumption. I guess you never tried to
upgrade a Gentoo system running as server (a working one, with users and
workload).

The amount of memory is only /one/ helper parameter to not see a
difference.

Like I've already said, the issue is all about the persistence strategy
used by the VM to mark memory as pinned, reclaimable or swappable. Where
tmpfs do change the matter is that a file stored in it is not going be
dropped from RAM until there is a unlink(2) call on it or that other
running processes are running out of memory and some page needs to be
swapped (so there is _already_ no more available RAM in the kernel cache).

If not using tmpfs and because memory cache is the first place where the
kernel will free up memory, you don't have to wait for the processes to
run out of available memory to hit a situation where you'll have to wait
for the disk to retrieve files. So, this will affect times.

-- 
Nicolas Sebrecht



[gentoo-user] Re: aligning SSD partitions

2012-09-07 Thread Nicolas Sebrecht
The 06/09/12, Dale wrote:

 But this is what you guys are missing too.  If you want to use tmpfs,
 you have to have enough ram to begin with.  Whether you use tmpfs or
 not, you have to have enough ram to do the compile otherwise you start
 using swap or it just crashes.  Having ram is a prerequisite to using
 tmpfs.  

This is too minimal overview to get the point. Memory is not a static
place. This is not a cake beeing shared once. Memory is living. See my
other mail.

 There is another flaw in your assumption above.  I already had the
 tarballs downloaded BEFORE even the first emerge.

This is not a flaw in assumption. This is negligible.

 What the people wanted to test is if putting portages work directory on
 tmpfs would make emerge times faster.

Come'on. We all understood your goal from the beginning.

 Do we all admit that having portage on tmpfs does not make emerge times
 faster yet? 

No. It depends on factors and underlying processes you claim they don't
matter, which is wrong. They *might* be not relevant in some cases.

-- 
Nicolas Sebrecht



[gentoo-user] Broken GCC

2012-09-07 Thread Samuraiii

Hello
yesterday I probably broke my GCC

Problem is following:
When i try to emerge ANY package it fails with this :

checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
`/tmp/portage/www-client/links-2.6/work/links-2.6':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

I tried
gcc-config -f x86_64-pc-linux-gnu-4.5.4
without any luck.
same with
 binutils-config x86_64-pc-linux-gnu-2.22

Thak you for your help
S


emerge --info
Portage 2.1.11.9 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.4,
glibc-2.15-r2, 3.4.9-gentoo x86_64)
=
System uname:
Linux-3.4.9-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Thu, 06 Sep 2012 10:45:01 +
app-shells/bash:  4.2_p37
dev-java/java-config: 2.1.11-r3
dev-lang/python:  2.7.3-r2, 3.2.3
dev-util/cmake:   2.8.8-r3
dev-util/pkgconfig:   0.27
sys-apps/baselayout:  2.1-r1
sys-apps/openrc:  0.9.8.4
sys-apps/sandbox: 2.5
sys-devel/autoconf:   2.13, 2.68
sys-devel/automake:   1.9.6-r3, 1.10.3, 1.11.6
sys-devel/binutils:   2.22-r1
sys-devel/gcc:4.5.4
sys-devel/gcc-config: 1.7.3
sys-devel/libtool:2.4-r1
sys-devel/make:   3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:   2.15-r2
Repositories:

gentoo
location: /usr/portage
sync: rsync://rsync.europe.gentoo.org/gentoo-portage
priority: -1000

ABI=amd64
ACCEPT_KEYWORDS=amd64
ACCEPT_LICENSE=*
ACCEPT_PROPERTIES=*
ALSA_CARDS=ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci
emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0
intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci
ALSA_PCM_PLUGINS=adpcm alaw asym copy dmix dshare dsnoop empty extplug
file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw
multi null plug rate route share shm softvol
ANT_HOME=/usr/share/ant
APACHE2_MODULES=actions alias auth_basic authn_alias authn_anon
authn_dbm authn_default authn_file authz_dbm authz_default
authz_groupfile authz_host authz_owner authz_user autoindex cache dav
dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache
filter headers include info log_config logio mem_cache mime mime_magic
negotiation rewrite setenvif speling status unique_id userdir usertrack
vhost_alias
ARCH=amd64
AUTOCLEAN=yes
BOOTSTRAP_USE=cxx unicode multilib
CALLIGRA_FEATURES=kexi words flow plan sheets stage tables krita karbon
braindump
CAMERAS=ptp2
CBUILD=x86_64-pc-linux-gnu
CFLAGS=-march=core2 -O2 -pipe
CFLAGS_amd64=-m64
CFLAGS_x32=-mx32
CFLAGS_x86=-m32
CHOST=x86_64-pc-linux-gnu
CHOST_amd64=x86_64-pc-linux-gnu
CHOST_x32=x86_64-pc-linux-gnux32
CHOST_x86=i686-pc-linux-gnu
CLEAN_DELAY=12
COLLECTD_PLUGINS=df interface irq load memory rrdtool swap syslog
COLLISION_IGNORE=/lib/modules/* *.py[co]
COLORTERM=gnome-terminal
CONFIG_PROTECT=/etc /usr/share/config /usr/share/gnupg/qualified.txt
/usr/share/openvpn/easy-rsa
CONFIG_PROTECT_MASK=/etc/ca-certificates.conf /etc/dconf /etc/env.d
/etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
/etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/
/etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d
/etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d
/etc/texmf/updmap.d /etc/texmf/web2c
CXXFLAGS=-march=core2 -O2 -pipe
DEFAULT_ABI=amd64
DISPLAY=:0
DISTDIR=/usr/portage/distfiles
EDITOR=/bin/nano
ELIBC=glibc
EMERGE_DEFAULT_OPTS=--quiet-build --jobs=4 --load-average=3.0
--with-bdeps=y --ask -v --ask-enter-invalid
EMERGE_WARNING_DELAY=10
EPREFIX=
EROOT=/
FCFLAGS=-O2 -pipe
FEATURES=assume-digests binpkg-logs candy compress-build-logs
config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles
metadata-transfer news parallel-fetch parallel-install
parse-eapi-ebuild-head protect-owned sandbox sfperms strict
unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv
usersandbox usersync xattr
FETCHCOMMAND=wget -t 3 -T 60 --passive-ftp -O ${DISTDIR}/${FILE}
${URI}
FETCHCOMMAND_RSYNC=rsync -avP ${URI} ${DISTDIR}/${FILE}
FETCHCOMMAND_SFTP=bash -c x=\${2#sftp://} ; host=\${x%%/*} ;
port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] 
port=22 ; exec sftp -P \${port} \\${host}:/\${x#*/}\ \\$1\ sftp
${DISTDIR}/${FILE} ${URI}
FETCHCOMMAND_SSH=bash -c x=\${2#ssh://} ; host=\${x%%/*} ;
port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] 
port=22 ; exec rsync --rsh=\ssh -p\${port}\ -avP
\\${host}:/\${x#*/}\ \\$1\ rsync ${DISTDIR}/${FILE} ${URI}
FFLAGS=-O2 -pipe
GCC_SPECS=
GDK_USE_XFT=1
GENTOO_MIRRORS=http://gentoo.mirror.dkm.cz/pub/gentoo/
http://gentoo.supp.name/ http://gentoo.mneisen.org/

[gentoo-user] Re: aligning SSD partitions

2012-09-07 Thread Nicolas Sebrecht
The 07/09/12, Nicolas Sebrecht wrote:

  There is another flaw in your assumption above.  I already had the
  tarballs downloaded BEFORE even the first emerge.
 
 This is not a flaw in assumption. This is negligible.

Fixing myself: s/negligible/out of the scope/

-- 
Nicolas Sebrecht



Re: [gentoo-user] Broken GCC

2012-09-07 Thread Andrey Moshbear
On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com wrote:

 Hello
 yesterday I probably broke my GCC

 Problem is following:
 When i try to emerge ANY package it fails with this :

 checking whether the C compiler works... yes
 checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... configure: error: in
 `/tmp/portage/www-client/links-2.6/work/links-2.6':
 configure: error: cannot run C compiled programs.
 If you meant to cross compile, use `--host'.
 See `config.log' for more details

Can you post the contents of config.log to a pastebin and link to it in a reply?



Re: [gentoo-user] Broken GCC

2012-09-07 Thread Andrey Moshbear
On Fri, Sep 7, 2012 at 5:47 AM, Andrey Moshbear andrey@gmail.com wrote:
 On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com wrote:

 Hello
 yesterday I probably broke my GCC

 Problem is following:
 When i try to emerge ANY package it fails with this :

 checking whether the C compiler works... yes
 checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... configure: error: in
 `/tmp/portage/www-client/links-2.6/work/links-2.6':
 configure: error: cannot run C compiled programs.
 If you meant to cross compile, use `--host'.
 See `config.log' for more details

 Can you post the contents of config.log to a pastebin and link to it in a 
 reply?

Specifically,  .../portage/www-client/links-2.6/work/links-2.6/config.log



Re: [gentoo-user] Broken GCC

2012-09-07 Thread Samuraiii

  
  

  
  


On 2012-09-07 11:49, Andrey Moshbear
  wrote:


  On Fri, Sep 7, 2012 at 5:47 AM, Andrey Moshbear andrey@gmail.com wrote:

  
On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com wrote:


  Hello
yesterday I probably broke my GCC

Problem is following:
When i try to emerge ANY package it fails with this :

checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
`/tmp/portage/www-client/links-2.6/work/links-2.6':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details


Can you post the contents of config.log to a pastebin and link to it in a reply?

  
  Specifically,  .../portage/www-client/links-2.6/work/links-2.6/config.log



Here it is http://pastebin.com/s59mU9fm

  --
  
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id-15719 (from 2012-09-07 06:00:07) is included in
header of html.
  

  



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Broken GCC

2012-09-07 Thread William Kenworthy
On Fri, 2012-09-07 at 12:46 +0200, Samuraiii wrote:
 
 
 
 On 2012-09-07 11:49, Andrey Moshbear wrote:
 
  On Fri, Sep 7, 2012 at 5:47 AM, Andrey Moshbear andrey@gmail.com 
  wrote:
   On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com 
   wrote:
Hello
yesterday I probably broke my GCC

Problem is following:
When i try to emerge ANY package it fails with this :

checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
`/tmp/portage/www-client/links-2.6/work/links-2.6':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
   Can you post the contents of config.log to a pastebin and link to it in a 
   reply?
  Specifically,  .../portage/www-client/links-2.6/work/links-2.6/config.log
  
 Here it is http://pastebin.com/s59mU9fm
 
 --
 Samuraiii
 e-mail: samurai.no.d...@gmail.com
 GnuPG key ID: 0x80C752EA (obtainable on http://pgp.mit.edu)
 Full copy of public timestamp block signatures id-15719 (from
 2012-09-07 06:00:07) is included in header of html. 



conftest.c:11:19: fatal error: /usr/local/include/stdio.h: Permission
denied


BillK






[gentoo-user] GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

2012-09-07 Thread Tanstaafl

This has never happened to me before...

Since when did a simple GCC upgrade *automatically* REMOVE my prior GCC 
install???


I have *always* kept my prior GCC around for a while, if not until the 
next upgrade, just as something to fall back on if the current one breaks.


I am NOT a happy camper.



Re: [gentoo-user] GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

2012-09-07 Thread Neil Bothwick
On Fri, 07 Sep 2012 07:24:44 -0400, Tanstaafl wrote:

 Since when did a simple GCC upgrade *automatically* REMOVE my prior GCC 
 install???

Since always if both versions are in the same slot, which is what I would
expect for a simple upgrade. A major version step would be in a
different slot (4.5, 4.6 etc) and would be installed alongside your old
version (until you depclean).


-- 
Neil Bothwick

One difference between a man and a machine is that a machine is quiet
when well oiled.


signature.asc
Description: PGP signature


Re: [gentoo-user] static IP issue

2012-09-07 Thread pat
On Fri, 7 Sep 2012 00:14:00 -0400, Walter Dnes wrote
 On Thu, Sep 06, 2012 at 02:13:04PM +0100, pat wrote
  On Thu, 6 Sep 2012 14:00:22 +0100, Neil Bothwick wrote
   
   Please post contents of /etc/conf.d/net
   
   -- 
   Neil Bothwick
   
   Top Oxymorons Number 5: Twelve-ounce pound cake
  
  Here it is.
 
 config_eth0=192.168.74.101 netmask 255.255.255.0
 #routes_eth0=default via 8.8.8.8
 routes_eth0=default via 192.168.74.1
 
   I assume 192.168.74.1 is your modem.  Correct?  No mention of
 broadcast address.  I don't know if that's critical or not.  Try either
 of the following...
 
 config_eth0=192.168.74.101 netmask 255.255.255.0 broadcast 192.168.74.255
 routes_eth0=default via 192.168.74.1
 
 or
 
 config_eth0=192.168.74.101/24 broadcast 192.168.74.255
 routes_eth0=default via 192.168.74.1
 
 -- 
 Walter Dnes waltd...@waltdnes.org
 I don't run desktop environments; I run useful applications
 

Doesn't help :-(

Thanks

 Pat



Freehosting PIPNI - http://www.pipni.cz/




[gentoo-user] Re: GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

2012-09-07 Thread Nikos Chantziaras

On 07/09/12 14:24, Tanstaafl wrote:

This has never happened to me before...

Since when did a simple GCC upgrade *automatically* REMOVE my prior GCC
install???

I have *always* kept my prior GCC around for a while, if not until the
next upgrade, just as something to fall back on if the current one breaks.

I am NOT a happy camper.


It has always been that way for packages in the same slot.  4.5.3 and 
4.5.4 are both in the 4.5 slot.  I think you're confusing 
patch-version upgrades with major and minor-version ones.  If you emerge 
GCC 4.6.3, your 4.5.4 version will be kept.


If you really wont to keep multiple patch-versions, then you must set 
the multislot USE flag for GCC.  But unless you have a reason to do 
that, and it seems you don't, there's no reason to have multiple such 
versions installed.





Re: [gentoo-user] GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

2012-09-07 Thread Markos Chandras
On Fri, Sep 7, 2012 at 12:24 PM, Tanstaafl tansta...@libertytrek.org wrote:
 This has never happened to me before...

 Since when did a simple GCC upgrade *automatically* REMOVE my prior GCC
 install???

 I have *always* kept my prior GCC around for a while, if not until the next
 upgrade, just as something to fall back on if the current one breaks.

 I am NOT a happy camper.


This always happens if the gcc your are upgrading to is in the same
slot as the previous one. It is like a normal package upgrade. You
can't keep both gccs in the same slot. gcc preserves installations
only if they are on different slots. And please write proper subject
on emails. WTF is not really appropriate for a mailing list.

Regards,
Markos



Re: [gentoo-user] Re: aligning SSD partitions

2012-09-07 Thread Dale
Nicolas Sebrecht wrote:
 The 06/09/12, Dale wrote:

 But this is what you guys are missing too.  If you want to use tmpfs,
 you have to have enough ram to begin with.  Whether you use tmpfs or
 not, you have to have enough ram to do the compile otherwise you start
 using swap or it just crashes.  Having ram is a prerequisite to using
 tmpfs.  
 This is too minimal overview to get the point. Memory is not a static
 place. This is not a cake beeing shared once. Memory is living. See my
 other mail.

I understand that memory is static but that is NOT what I was testing or
others either.  The test it whether putting portage's work directory on
tmpfs makes emerges faster not whether emerge using memory itself makes
it faster.  Since when you run emerge it loads everything into ram,
regardless of whether portages work directory is on tmpfs or not, it
doesn't matter.  This test is NOT about portage loading things into ram
WHILE emerging, it was about having the work directory on tmpfs and
speed.  Since emerge loads everything right after you hit the enter key,
it doesn't matter where the work directory is located. 

We wanted to change only one thing for this test, where portage's work
directory was.  It was not about how much ram a system has but where
tmpfs was located.  To use tmpfs, the system has to have enough ram to
begin with so systems that do not have larger amounts of ram were not
even relevant to the question.  If a system has small amounts of ram,
then most likely they can't use tmpfs anyway. 

 There is another flaw in your assumption above.  I already had the
 tarballs downloaded BEFORE even the first emerge.
 This is not a flaw in assumption. This is negligible.

It can make a huge difference.  The download times are included in the
emerge times if it is not already in distfiles.  So, if a tarball takes
a hour to download, it adds one hour to the emerge time.  Depending on
internet speed, it can be more than negligible.  I have DSL but it is
the slower package so this can in some cases make a HUGE difference
here.  Since I was running my tests here, I know it makes a difference
but you assumed it didn't.  That would be incorrect.  It does make a
difference and it can be a big one depending on the tarball size.


 What the people wanted to test is if putting portages work directory on
 tmpfs would make emerge times faster.
 Come'on. We all understood your goal from the beginning.

Well great.  We, and I, were only testing one thing not two or three
things.  We just wanted to change one setting, not disable a whole bunch
of stuff. 



 Do we all admit that having portage on tmpfs does not make emerge times
 faster yet? 
 No. It depends on factors and underlying processes you claim they don't
 matter, which is wrong. They *might* be not relevant in some cases.


Actually, they don't matter on my system and since others got the same
results, it doesn't matter.  Again, we only wanted to change one
specific setting, tmpfs, nothing else.  That was the only thing we were
testing and it was the only thing I tested here and it is the only
results I am reporting.  I'm not reporting on how well emerge is using
ram after the command is given. 

So, accept it or not, it makes no difference whether portage's work
directory is on tmpfs or not speed wise.  You get the same results
either way.  In the case of the OP of this thread, it would likely be a
good idea if he can but he should not expect emerge to be any faster. 

Dale

:-)  :-) 

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




Re: [gentoo-user] Re: aligning SSD partitions

2012-09-07 Thread Dale
Nicolas Sebrecht wrote:
 The 06/09/12, Dale wrote:

 But whether it is on tmpfs or just regular memory doesn't matter.  Once
 emerge starts, everything is in ram including portages work directory
 which would be on tmpfs here.  That's why it doesn't matter if portage
 is on tmpfs or not.  Once emerge loads up the files, it's the same
 thing.  That's why using tmpfs doesn't matter.  I knew that the whole
 time.  The amount of ram on a system doesn't matter either.  If you have
 a system that doesn't have a lot of ram, then you can't really use tmpfs
 anyway.  That is not something I would recommend to anyone. 
 But you're wrong with this assumption. I guess you never tried to
 upgrade a Gentoo system running as server (a working one, with users and
 workload).

Actually, I do that a lot here but we were not testing this on a server
but on what a regular user would have.  I ran most of my tests while in
single user mode tho.  I didn't want the fact that I use KDE and it may
be doing something to use CPU resources or even memory to skew the
results.  I went over this in another reply long ago. 


 The amount of memory is only /one/ helper parameter to not see a
 difference.

 Like I've already said, the issue is all about the persistence strategy
 used by the VM to mark memory as pinned, reclaimable or swappable. Where
 tmpfs do change the matter is that a file stored in it is not going be
 dropped from RAM until there is a unlink(2) call on it or that other
 running processes are running out of memory and some page needs to be
 swapped (so there is _already_ no more available RAM in the kernel cache).

 If not using tmpfs and because memory cache is the first place where the
 kernel will free up memory, you don't have to wait for the processes to
 run out of available memory to hit a situation where you'll have to wait
 for the disk to retrieve files. So, this will affect times.


Swap was disabled when I ran the tests even tho I have it set to not use
swap unless it is a must.  Memory is memory whether it is tmpfs or just
being used by a process or as disk cache.  I only have one type of
memory in my system here.  It is all the same no matter how the system
uses it.  Since the only setting changed was where the work directory
was located, then emerge pinned the use of memory the same in both
cases.  As it should. 

The thing is tho, whether it is using the memory as cache or using it as
tmpfs, it is the same memory.  There is no difference.  That's the whole
point. 

Dale

:-)  :-) 

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




Re: [gentoo-user] GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

2012-09-07 Thread Tanstaafl

On 2012-09-07 7:44 AM, Markos Chandras hwoar...@gentoo.org wrote:

On Fri, Sep 7, 2012 at 12:24 PM, Tanstaafltansta...@libertytrek.org  wrote:

This has never happened to me before...

Since when did a simple GCC upgrade *automatically* REMOVE my prior GCC
install???

I have *always* kept my prior GCC around for a while, if not until the next
upgrade, just as something to fall back on if the current one breaks.

I am NOT a happy camper.



This always happens if the gcc your are upgrading to is in the same
slot as the previous one.


Well, I've been managing this gentoo server since I installed it over 8 
years ago, and I don't *ever* recall a GCC upgrade removing my prior 
version.



And please write proper subject on emails. WTF is not really
appropriate for a mailing list.


Don't be stupid. I see that all the time... if you don't like it just 
ignore it.




Re: [gentoo-user] GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

2012-09-07 Thread Michael Mol
On Fri, Sep 7, 2012 at 8:53 AM, Tanstaafl tansta...@libertytrek.org wrote:
 On 2012-09-07 7:44 AM, Markos Chandras hwoar...@gentoo.org wrote:

 On Fri, Sep 7, 2012 at 12:24 PM, Tanstaafltansta...@libertytrek.org
 wrote:

 This has never happened to me before...

 Since when did a simple GCC upgrade *automatically* REMOVE my prior GCC
 install???

 I have *always* kept my prior GCC around for a while, if not until the
 next
 upgrade, just as something to fall back on if the current one breaks.

 I am NOT a happy camper.


 This always happens if the gcc your are upgrading to is in the same
 slot as the previous one.


 Well, I've been managing this gentoo server since I installed it over 8
 years ago, and I don't *ever* recall a GCC upgrade removing my prior
 version.

FWIW, My boxes for the last two years have always removed patch
versions. Depcleans remove old minor versions, if nothing depends on
them.

-- 
:wq



Re: [gentoo-user] GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

2012-09-07 Thread Markos Chandras
On Fri, Sep 7, 2012 at 1:53 PM, Tanstaafl tansta...@libertytrek.org wrote:
 On 2012-09-07 7:44 AM, Markos Chandras hwoar...@gentoo.org wrote:

 On Fri, Sep 7, 2012 at 12:24 PM, Tanstaafltansta...@libertytrek.org
 wrote:

 This has never happened to me before...

 Since when did a simple GCC upgrade *automatically* REMOVE my prior GCC
 install???

 I have *always* kept my prior GCC around for a while, if not until the
 next
 upgrade, just as something to fall back on if the current one breaks.

 I am NOT a happy camper.


 This always happens if the gcc your are upgrading to is in the same
 slot as the previous one.


 Well, I've been managing this gentoo server since I installed it over 8
 years ago, and I don't *ever* recall a GCC upgrade removing my prior
 version.

All of us told you that you are wrong. Since you insist that Gentoo
always keep multiple gcc versions of the same slot around, then ok , I
guess you know better.



Re: [gentoo-user] GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

2012-09-07 Thread Markos Chandras
On Fri, Sep 7, 2012 at 1:53 PM, Tanstaafl tansta...@libertytrek.org wrote:
 On 2012-09-07 7:44 AM, Markos Chandras hwoar...@gentoo.org wrote:

 On Fri, Sep 7, 2012 at 12:24 PM, Tanstaafltansta...@libertytrek.org
 wrote:

 This has never happened to me before...

 Since when did a simple GCC upgrade *automatically* REMOVE my prior GCC
 install???

 I have *always* kept my prior GCC around for a while, if not until the
 next
 upgrade, just as something to fall back on if the current one breaks.

 I am NOT a happy camper.


 This always happens if the gcc your are upgrading to is in the same
 slot as the previous one.


 Well, I've been managing this gentoo server since I installed it over 8
 years ago, and I don't *ever* recall a GCC upgrade removing my prior
 version.


 And please write proper subject on emails. WTF is not really
 appropriate for a mailing list.


 Don't be stupid. I see that all the time... if you don't like it just ignore
 it.


And calling someone who is trying to help you stupid is not very
mature. You are on your own



[gentoo-user] Re: GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

2012-09-07 Thread Grant Edwards
On 2012-09-07, Tanstaafl tansta...@libertytrek.org wrote:
 On 2012-09-07 7:44 AM, Markos Chandras hwoar...@gentoo.org wrote:

 This always happens if the gcc your are upgrading to is in the same
 slot as the previous one.

 Well, I've been managing this gentoo server since I installed it over 8 
 years ago, and I don't *ever* recall a GCC upgrade removing my prior 
 version.

 And please write proper subject on emails. WTF is not really
 appropriate for a mailing list.

 Don't be stupid. I see that all the time... if you don't like it just 
 ignore it.

Will do.

plonk

-- 
Grant Edwards   grant.b.edwardsYow! Here I am in 53
  at   B.C. and all I want is a
  gmail.comdill pickle!!




Re: [gentoo-user] GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

2012-09-07 Thread Tanstaafl

On 2012-09-07 9:12 AM, Markos Chandras hwoar...@gentoo.org wrote:

On Fri, Sep 7, 2012 at 1:53 PM, Tanstaafltansta...@libertytrek.org  wrote:

Well, I've been managing this gentoo server since I installed it over 8
years ago, and I don't *ever* recall a GCC upgrade removing my prior
version.



All of us told you that you are wrong. Since you insist that Gentoo
always keep multiple gcc versions of the same slot around, then ok , I
guess you know better.


I'm simply saying that I have always been very careful with GCC upgrades 
(among a few others), and I have always kept the prior version around, 
using gcc-select to switch to the new version after the upgrade.


I guess the only explanation if what you guys are saying is correct is 
that I've never done a minor upgrade for the version in the current slot...


Weird...



Re: [gentoo-user] GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

2012-09-07 Thread Tanstaafl

On 2012-09-07 9:22 AM, Markos Chandras hwoar...@gentoo.org wrote:

On Fri, Sep 7, 2012 at 1:53 PM, Tanstaafltansta...@libertytrek.org  wrote:

Don't be stupid. I see that all the time... if you don't like it just ignore
it.



And calling someone who is trying to help you stupid is not very
mature. You are on your own


Sorry... I should have said 'That is stupid'... I didn't mean that *you* 
were stupid, I meant that what you said was stupid, and it was... I see 
people use wtf on lists all the time, so saying I shouldn't use it is - 
well, stupid...




Re: [gentoo-user] GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

2012-09-07 Thread Michael Mol
On Fri, Sep 7, 2012 at 10:29 AM, Tanstaafl tansta...@libertytrek.org wrote:
 On 2012-09-07 9:22 AM, Markos Chandras hwoar...@gentoo.org wrote:

 On Fri, Sep 7, 2012 at 1:53 PM, Tanstaafltansta...@libertytrek.org
 wrote:

 Don't be stupid. I see that all the time... if you don't like it just
 ignore
 it.


 And calling someone who is trying to help you stupid is not very
 mature. You are on your own


 Sorry... I should have said 'That is stupid'... I didn't mean that *you*
 were stupid, I meant that what you said was stupid, and it was... I see
 people use wtf on lists all the time, so saying I shouldn't use it is -
 well, stupid...

Every mailing list is like its own group of friends and acquaintances,
and has its own social rules. Just because some lists uses phrases
like WTF doesn't mean it fits into the cultures of the rest.

Not that _I_ care, but obviously others do, and so I filter myself accordingly.

-- 
:wq



Re: [gentoo-user] GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

2012-09-07 Thread Paul Hartman
On Fri, Sep 7, 2012 at 9:27 AM, Tanstaafl tansta...@libertytrek.org wrote:
 I guess the only explanation if what you guys are saying is correct is that
 I've never done a minor upgrade for the version in the current slot...

Basically any slotted package works this way. Upgrades within the same
slot replace the previous version within the same slot.  You can only
have one version installed in each slot at any given time.

Using eix we can see the versions currently in portage (as of my last
sync) for each slot:

[I] sys-devel/gcc
 Available versions:
(2.95)  *2.95.3-r9 ~*2.95.3-r10^s
(3.1)   *3.1.1-r2
(3.2)   **3.2.2^s *3.2.3-r4
(3.3)   (~)3.3.6-r1^s
(3.4)   3.4.6-r2^s
(4.0)   ~*4.0.4^s
(4.1)   4.1.2^s
(4.2)   (~)4.2.4-r1^s
(4.3)   (~)4.3.3-r2^s{tbz2} 4.3.4^s{tbz2} (~)4.3.5^s 4.3.6-r1^s
(4.4)   (~)4.4.2^s{tbz2} (~)4.4.3-r3^s 4.4.4-r2^s{tbz2}
4.4.5^s{tbz2} 4.4.6-r1^s 4.4.7^s
(4.5)   (~)4.5.1-r1^s{tbz2} (~)4.5.2^s{tbz2} 4.5.3-r2^s{tbz2} 4.5.4^s
(4.6)   (~)4.6.0^s (~)4.6.1-r1^s (~)4.6.2^s (~)4.6.3^s{tbz2}
(4.7)   [M]**4.7.0^s [M]**4.7.1^s

So, for example, you can see the 4.5 slot contains 4.5.1, 4.5.2,
4.5.3, 4.5.4. You can only have one of those installed at any given
time.

Off the top of my head, the only packages that routinely have slots
for every patch release are kernel packages.



Re: [gentoo-user] Broken GCC

2012-09-07 Thread Samuraiii

  
  

  
  


On 2012-09-07 13:04, William Kenworthy
  wrote:


  On Fri, 2012-09-07 at 12:46 +0200, Samuraiii wrote:

  


On 2012-09-07 11:49, Andrey Moshbear wrote:



  On Fri, Sep 7, 2012 at 5:47 AM, Andrey Moshbear andrey@gmail.com wrote:

  
On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com wrote:


  Hello
yesterday I probably broke my GCC

Problem is following:
When i try to emerge ANY package it fails with this :

checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
`/tmp/portage/www-client/links-2.6/work/links-2.6':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details


Can you post the contents of config.log to a pastebin and link to it in a reply?

  
  Specifically,  .../portage/www-client/links-2.6/work/links-2.6/config.log



Here it is http://pastebin.com/s59mU9fm

--
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA (obtainable on http://pgp.mit.edu)
Full copy of public timestamp block signatures id-15719 (from
2012-09-07 06:00:07) is included in header of html. 

  
  

conftest.c:11:19: fatal error: /usr/local/include/stdio.h: Permission
denied


BillK






What next?
ls -l /usr/local/include/stdio.h
ls: cannot access /usr/local/include/stdio.h: No such file or
directory

  



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Broken GCC

2012-09-07 Thread Andrey Moshbear
On Fri, Sep 7, 2012 at 7:04 AM, William Kenworthy bi...@iinet.net.au wrote:
 On Fri, 2012-09-07 at 12:46 +0200, Samuraiii wrote:



 On 2012-09-07 11:49, Andrey Moshbear wrote:

  On Fri, Sep 7, 2012 at 5:47 AM, Andrey Moshbear andrey@gmail.com 
  wrote:
   On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com 
   wrote:
Hello
yesterday I probably broke my GCC
   
Problem is following:
When i try to emerge ANY package it fails with this :
   
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
`/tmp/portage/www-client/links-2.6/work/links-2.6':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
   Can you post the contents of config.log to a pastebin and link to it in 
   a reply?
  Specifically,  .../portage/www-client/links-2.6/work/links-2.6/config.log
 
 Here it is http://pastebin.com/s59mU9fm

 --
 Samuraiii
 e-mail: samurai.no.d...@gmail.com
 GnuPG key ID: 0x80C752EA (obtainable on http://pgp.mit.edu)
 Full copy of public timestamp block signatures id-15719 (from
 2012-09-07 06:00:07) is included in header of html.



 conftest.c:11:19: fatal error: /usr/local/include/stdio.h: Permission
 denied

Indeed. The question here is what's more concerning: the use of
/usr/local in the default gcc arguments or not having root:root 644
for the files in a global include dir.



Re: [gentoo-user] Broken GCC

2012-09-07 Thread Michael Mol
On Fri, Sep 7, 2012 at 11:35 AM, Samuraiii samurai.no.d...@gmail.com wrote:
 On 2012-09-07 13:04, William Kenworthy wrote:

 On Fri, 2012-09-07 at 12:46 +0200, Samuraiii wrote:

 On 2012-09-07 11:49, Andrey Moshbear wrote:

 On Fri, Sep 7, 2012 at 5:47 AM, Andrey Moshbear andrey@gmail.com
 wrote:

 On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com wrote:

 Hello
 yesterday I probably broke my GCC

 Problem is following:
 When i try to emerge ANY package it fails with this :

 checking whether the C compiler works... yes
 checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... configure: error: in
 `/tmp/portage/www-client/links-2.6/work/links-2.6':
 configure: error: cannot run C compiled programs.
 If you meant to cross compile, use `--host'.
 See `config.log' for more details

 Can you post the contents of config.log to a pastebin and link to it in a
 reply?

 Specifically,  .../portage/www-client/links-2.6/work/links-2.6/config.log

 Here it is http://pastebin.com/s59mU9fm

 --
 Samuraiii
 e-mail: samurai.no.d...@gmail.com
 GnuPG key ID: 0x80C752EA (obtainable on http://pgp.mit.edu)
 Full copy of public timestamp block signatures id-15719 (from
 2012-09-07 06:00:07) is included in header of html.

 conftest.c:11:19: fatal error: /usr/local/include/stdio.h: Permission
 denied


 BillK




 What next?
 ls -l /usr/local/include/stdio.h
 ls: cannot access /usr/local/include/stdio.h: No such file or directory

Any idea why you'd have anything under /usr/local? On Gentoo, that's
usually unnecessary. (Or always unnecessary, if you care to make a
personal overlay to have your personal packages integrated
properly...not that hard, actually)


-- 
:wq



Re: [gentoo-user] Broken GCC

2012-09-07 Thread Samuraiii

  
  

  
  


On 2012-09-07 17:37, Andrey Moshbear
  wrote:


  On Fri, Sep 7, 2012 at 7:04 AM, William Kenworthy bi...@iinet.net.au wrote:

  
On Fri, 2012-09-07 at 12:46 +0200, Samuraiii wrote:


  

On 2012-09-07 11:49, Andrey Moshbear wrote:


  
On Fri, Sep 7, 2012 at 5:47 AM, Andrey Moshbear andrey@gmail.com wrote:


  On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com wrote:

  
Hello
yesterday I probably broke my GCC

Problem is following:
When i try to emerge ANY package it fails with this :

checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
`/tmp/portage/www-client/links-2.6/work/links-2.6':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

  
  Can you post the contents of config.log to a pastebin and link to it in a reply?


Specifically,  .../portage/www-client/links-2.6/work/links-2.6/config.log


  
  Here it is http://pastebin.com/s59mU9fm

--
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA (obtainable on http://pgp.mit.edu)
Full copy of public timestamp block signatures id-15719 (from
2012-09-07 06:00:07) is included in header of html.




conftest.c:11:19: fatal error: /usr/local/include/stdio.h: Permission
denied


  
  Indeed. The question here is what's more concerning: the use of
/usr/local in the default gcc arguments or not having root:root 644
for the files in a global include dir.



I was thinkig if its possible to "half-reinstall" system by
preserving (read making backup) my hand modified config and then
download stage3 untar it to / (from live cd) , restore config, sync,
emerge -NuDe @world and reboot?
-- 
  
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id- (from ) is included in header of html.
  

  



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Broken GCC

2012-09-07 Thread Samuraiii

  
  

  
  


On 2012-09-07 17:44, Michael Mol wrote:


  On Fri, Sep 7, 2012 at 11:35 AM, Samuraiii samurai.no.d...@gmail.com wrote:

  
On 2012-09-07 13:04, William Kenworthy wrote:

On Fri, 2012-09-07 at 12:46 +0200, Samuraiii wrote:

On 2012-09-07 11:49, Andrey Moshbear wrote:

On Fri, Sep 7, 2012 at 5:47 AM, Andrey Moshbear andrey@gmail.com
wrote:

On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com wrote:

Hello
yesterday I probably broke my GCC

Problem is following:
When i try to emerge ANY package it fails with this :

checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
`/tmp/portage/www-client/links-2.6/work/links-2.6':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

Can you post the contents of config.log to a pastebin and link to it in a
reply?

Specifically,  .../portage/www-client/links-2.6/work/links-2.6/config.log

Here it is http://pastebin.com/s59mU9fm

--
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA (obtainable on http://pgp.mit.edu)
Full copy of public timestamp block signatures id-15719 (from
2012-09-07 06:00:07) is included in header of html.

conftest.c:11:19: fatal error: /usr/local/include/stdio.h: Permission
denied


BillK




What next?
ls -l /usr/local/include/stdio.h
ls: cannot access /usr/local/include/stdio.h: No such file or directory

  
  Any idea why you'd have anything under /usr/local? On Gentoo, that's
usually unnecessary. (Or always unnecessary, if you care to make a
personal overlay to have your personal packages integrated
properly...not that hard, actually)




That wasn't intentionally made...
-- 
  
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id- (from ) is included in header of html.
  

  



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Broken GCC

2012-09-07 Thread Michael Mol
On Fri, Sep 7, 2012 at 11:56 AM, Samuraiii samurai.no.d...@gmail.com wrote:



 On 2012-09-07 17:37, Andrey Moshbear wrote:

 On Fri, Sep 7, 2012 at 7:04 AM, William Kenworthy bi...@iinet.net.au
 wrote:

 On Fri, 2012-09-07 at 12:46 +0200, Samuraiii wrote:

 On 2012-09-07 11:49, Andrey Moshbear wrote:

 On Fri, Sep 7, 2012 at 5:47 AM, Andrey Moshbear andrey@gmail.com
 wrote:

 On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com wrote:

 Hello
 yesterday I probably broke my GCC

 Problem is following:
 When i try to emerge ANY package it fails with this :

 checking whether the C compiler works... yes
 checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... configure: error: in
 `/tmp/portage/www-client/links-2.6/work/links-2.6':
 configure: error: cannot run C compiled programs.
 If you meant to cross compile, use `--host'.
 See `config.log' for more details

 Can you post the contents of config.log to a pastebin and link to it in a
 reply?

 Specifically,  .../portage/www-client/links-2.6/work/links-2.6/config.log

 Here it is http://pastebin.com/s59mU9fm

 --
 Samuraiii
 e-mail: samurai.no.d...@gmail.com
 GnuPG key ID: 0x80C752EA (obtainable on http://pgp.mit.edu)
 Full copy of public timestamp block signatures id-15719 (from
 2012-09-07 06:00:07) is included in header of html.

 conftest.c:11:19: fatal error: /usr/local/include/stdio.h: Permission
 denied

 Indeed. The question here is what's more concerning: the use of
 /usr/local in the default gcc arguments or not having root:root 644
 for the files in a global include dir.

 I was thinkig if its possible to half-reinstall system by preserving (read
 making backup) my hand modified config and then download stage3 untar it to
 / (from live cd) , restore config, sync, emerge -NuDe @world and reboot?

I've done that, and it can work, but you're probably better off
reinstalling gcc via binpkgs. Someone probably has a repository that
matches your configuration enough for the purpose.

-- 
:wq



Re: [gentoo-user] Broken GCC

2012-09-07 Thread Andrey Moshbear
On Fri, Sep 7, 2012 at 12:03 PM, Michael Mol mike...@gmail.com wrote:
 On Fri, Sep 7, 2012 at 11:56 AM, Samuraiii samurai.no.d...@gmail.com wrote:



 On 2012-09-07 17:37, Andrey Moshbear wrote:

 On Fri, Sep 7, 2012 at 7:04 AM, William Kenworthy bi...@iinet.net.au
 wrote:

 On Fri, 2012-09-07 at 12:46 +0200, Samuraiii wrote:

 On 2012-09-07 11:49, Andrey Moshbear wrote:

 On Fri, Sep 7, 2012 at 5:47 AM, Andrey Moshbear andrey@gmail.com
 wrote:

 On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com wrote:

 Hello
 yesterday I probably broke my GCC

 Problem is following:
 When i try to emerge ANY package it fails with this :

 checking whether the C compiler works... yes
 checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... configure: error: in
 `/tmp/portage/www-client/links-2.6/work/links-2.6':
 configure: error: cannot run C compiled programs.
 If you meant to cross compile, use `--host'.
 See `config.log' for more details

 Can you post the contents of config.log to a pastebin and link to it in a
 reply?

 Specifically,  .../portage/www-client/links-2.6/work/links-2.6/config.log

 Here it is http://pastebin.com/s59mU9fm

 --
 Samuraiii
 e-mail: samurai.no.d...@gmail.com
 GnuPG key ID: 0x80C752EA (obtainable on http://pgp.mit.edu)
 Full copy of public timestamp block signatures id-15719 (from
 2012-09-07 06:00:07) is included in header of html.

 conftest.c:11:19: fatal error: /usr/local/include/stdio.h: Permission
 denied

 Indeed. The question here is what's more concerning: the use of
 /usr/local in the default gcc arguments or not having root:root 644
 for the files in a global include dir.

 I was thinkig if its possible to half-reinstall system by preserving (read
 making backup) my hand modified config and then download stage3 untar it to
 / (from live cd) , restore config, sync, emerge -NuDe @world and reboot?

 I've done that, and it can work, but you're probably better off
 reinstalling gcc via binpkgs. Someone probably has a repository that
 matches your configuration enough for the purpose.


gcc *and* glibc - most stdXXX.h files are in glibc's hands, so
binpkg of glibc will also be helpful.



Re: [gentoo-user] Broken GCC

2012-09-07 Thread Michael Mol
On Fri, Sep 7, 2012 at 11:57 AM, Samuraiii samurai.no.d...@gmail.com wrote:



 On 2012-09-07 17:44, Michael Mol wrote:

 On Fri, Sep 7, 2012 at 11:35 AM, Samuraiii samurai.no.d...@gmail.com
 wrote:

 On 2012-09-07 13:04, William Kenworthy wrote:

 On Fri, 2012-09-07 at 12:46 +0200, Samuraiii wrote:

 On 2012-09-07 11:49, Andrey Moshbear wrote:

 On Fri, Sep 7, 2012 at 5:47 AM, Andrey Moshbear andrey@gmail.com
 wrote:

 On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com wrote:

 Hello
 yesterday I probably broke my GCC

 Problem is following:
 When i try to emerge ANY package it fails with this :

 checking whether the C compiler works... yes
 checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... configure: error: in
 `/tmp/portage/www-client/links-2.6/work/links-2.6':
 configure: error: cannot run C compiled programs.
 If you meant to cross compile, use `--host'.
 See `config.log' for more details

 Can you post the contents of config.log to a pastebin and link to it in a
 reply?

 Specifically,  .../portage/www-client/links-2.6/work/links-2.6/config.log

 Here it is http://pastebin.com/s59mU9fm

 --
 Samuraiii
 e-mail: samurai.no.d...@gmail.com
 GnuPG key ID: 0x80C752EA (obtainable on http://pgp.mit.edu)
 Full copy of public timestamp block signatures id-15719 (from
 2012-09-07 06:00:07) is included in header of html.

 conftest.c:11:19: fatal error: /usr/local/include/stdio.h: Permission
 denied


 BillK




 What next?
 ls -l /usr/local/include/stdio.h
 ls: cannot access /usr/local/include/stdio.h: No such file or directory

 Any idea why you'd have anything under /usr/local? On Gentoo, that's
 usually unnecessary. (Or always unnecessary, if you care to make a
 personal overlay to have your personal packages integrated
 properly...not that hard, actually)


 That wasn't intentionally made...

Intentional or not, do you have any idea how it might have gotten
there? Or what you did that might have caused things to look there?

If we knew more, we could tell you more about how to fix it, and even
how better to do what you had been trying to do.

-- 
:wq



Re: [gentoo-user] Broken GCC

2012-09-07 Thread Samuraiii

  
  

  
  


On 2012-09-07 18:09, Michael Mol wrote:


  On Fri, Sep 7, 2012 at 11:57 AM, Samuraiii samurai.no.d...@gmail.com wrote:

  


On 2012-09-07 17:44, Michael Mol wrote:

On Fri, Sep 7, 2012 at 11:35 AM, Samuraiii samurai.no.d...@gmail.com
wrote:

On 2012-09-07 13:04, William Kenworthy wrote:

On Fri, 2012-09-07 at 12:46 +0200, Samuraiii wrote:

On 2012-09-07 11:49, Andrey Moshbear wrote:

On Fri, Sep 7, 2012 at 5:47 AM, Andrey Moshbear andrey@gmail.com
wrote:

On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com wrote:

Hello
yesterday I probably broke my GCC

Problem is following:
When i try to emerge ANY package it fails with this :

checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
`/tmp/portage/www-client/links-2.6/work/links-2.6':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

Can you post the contents of config.log to a pastebin and link to it in a
reply?

Specifically,  .../portage/www-client/links-2.6/work/links-2.6/config.log

Here it is http://pastebin.com/s59mU9fm

--
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA (obtainable on http://pgp.mit.edu)
Full copy of public timestamp block signatures id-15719 (from
2012-09-07 06:00:07) is included in header of html.

conftest.c:11:19: fatal error: /usr/local/include/stdio.h: Permission
denied


BillK




What next?
ls -l /usr/local/include/stdio.h
ls: cannot access /usr/local/include/stdio.h: No such file or directory

Any idea why you'd have anything under /usr/local? On Gentoo, that's
usually unnecessary. (Or always unnecessary, if you care to make a
personal overlay to have your personal packages integrated
properly...not that hard, actually)


That wasn't intentionally made...

  
  Intentional or not, do you have any idea how it might have gotten
there? Or what you did that might have caused things to look there?

If we knew more, we could tell you more about how to fix it, and even
how better to do what you had been trying to do.




I must admit that this is my lame fault:

I had some issues with pidgin-otr/libotr so I stupidly thought that
I can get me latest version myslef. 
*But* when I run configure; make; make install it wasn't working as
expected so I just stupidly tried to issue make uninstall and that
probably made this problem

I feel so embarrased
S


-- 
  
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id- (from ) is included in header of html.
  

  



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Broken GCC

2012-09-07 Thread Samuraiii

  
  

  
  


On 2012-09-07 18:03, Michael Mol wrote:


  On Fri, Sep 7, 2012 at 11:56 AM, Samuraiii samurai.no.d...@gmail.com wrote:

  


On 2012-09-07 17:37, Andrey Moshbear wrote:

On Fri, Sep 7, 2012 at 7:04 AM, William Kenworthy bi...@iinet.net.au
wrote:

On Fri, 2012-09-07 at 12:46 +0200, Samuraiii wrote:

On 2012-09-07 11:49, Andrey Moshbear wrote:

On Fri, Sep 7, 2012 at 5:47 AM, Andrey Moshbear andrey@gmail.com
wrote:

On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com wrote:

Hello
yesterday I probably broke my GCC

Problem is following:
When i try to emerge ANY package it fails with this :

checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
`/tmp/portage/www-client/links-2.6/work/links-2.6':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

Can you post the contents of config.log to a pastebin and link to it in a
reply?

Specifically,  .../portage/www-client/links-2.6/work/links-2.6/config.log

Here it is http://pastebin.com/s59mU9fm

--
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA (obtainable on http://pgp.mit.edu)
Full copy of public timestamp block signatures id-15719 (from
2012-09-07 06:00:07) is included in header of html.

conftest.c:11:19: fatal error: /usr/local/include/stdio.h: Permission
denied

Indeed. The question here is what's more concerning: the use of
/usr/local in the default gcc arguments or not having root:root 644
for the files in a global include dir.

I was thinkig if its possible to "half-reinstall" system by preserving (read
making backup) my hand modified config and then download stage3 untar it to
/ (from live cd) , restore config, sync, emerge -NuDe @world and reboot?

  
  I've done that, and it can work, but you're probably better off
reinstalling gcc via binpkgs. Someone probably has a repository that
matches your configuration enough for the purpose.




Are there any tips for gentoo amd64 with core2duo?
Google doesn't seem to give any usable answers (I don't need
configure binhost yet) 

-- 
  
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id- (from ) is included in header of html.
  

  



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

2012-09-07 Thread Michael Hampicke
Am 07.09.2012 14:53, schrieb Tanstaafl:
 On 2012-09-07 7:44 AM, Markos Chandras hwoar...@gentoo.org wrote:
 On Fri, Sep 7, 2012 at 12:24 PM, Tanstaafltansta...@libertytrek.org 
 wrote:
 This has never happened to me before...

 Since when did a simple GCC upgrade *automatically* REMOVE my prior GCC
 install???

 I have *always* kept my prior GCC around for a while, if not until
 the next
 upgrade, just as something to fall back on if the current one breaks.

 I am NOT a happy camper.
 
 This always happens if the gcc your are upgrading to is in the same
 slot as the previous one.
 
 Well, I've been managing this gentoo server since I installed it over 8
 years ago, and I don't *ever* recall a GCC upgrade removing my prior
 version.
 

Well, then this simple little command should help you refresh your
memory. It shows every install and uninstall of gcc on your system.

With 8 years of emerge.log you are good to go

genlop -ul | grep 'sys-devel/gcc-[0-9]'



Re: [gentoo-user] Broken GCC

2012-09-07 Thread Michael Mol
On Fri, Sep 7, 2012 at 1:21 PM, Samuraiii samurai.no.d...@gmail.com wrote:



 On 2012-09-07 18:09, Michael Mol wrote:

 On Fri, Sep 7, 2012 at 11:57 AM, Samuraiii samurai.no.d...@gmail.com
 wrote:

 On 2012-09-07 17:44, Michael Mol wrote:

 On Fri, Sep 7, 2012 at 11:35 AM, Samuraiii samurai.no.d...@gmail.com
 wrote:

 On 2012-09-07 13:04, William Kenworthy wrote:

 On Fri, 2012-09-07 at 12:46 +0200, Samuraiii wrote:

 On 2012-09-07 11:49, Andrey Moshbear wrote:

 On Fri, Sep 7, 2012 at 5:47 AM, Andrey Moshbear andrey@gmail.com
 wrote:

 On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com wrote:

 Hello
 yesterday I probably broke my GCC

 Problem is following:
 When i try to emerge ANY package it fails with this :

 checking whether the C compiler works... yes
 checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... configure: error: in
 `/tmp/portage/www-client/links-2.6/work/links-2.6':
 configure: error: cannot run C compiled programs.
 If you meant to cross compile, use `--host'.
 See `config.log' for more details

 Can you post the contents of config.log to a pastebin and link to it in a
 reply?

 Specifically,  .../portage/www-client/links-2.6/work/links-2.6/config.log

 Here it is http://pastebin.com/s59mU9fm

 --
 Samuraiii
 e-mail: samurai.no.d...@gmail.com
 GnuPG key ID: 0x80C752EA (obtainable on http://pgp.mit.edu)
 Full copy of public timestamp block signatures id-15719 (from
 2012-09-07 06:00:07) is included in header of html.

 conftest.c:11:19: fatal error: /usr/local/include/stdio.h: Permission
 denied


 BillK




 What next?
 ls -l /usr/local/include/stdio.h
 ls: cannot access /usr/local/include/stdio.h: No such file or directory

 Any idea why you'd have anything under /usr/local? On Gentoo, that's
 usually unnecessary. (Or always unnecessary, if you care to make a
 personal overlay to have your personal packages integrated
 properly...not that hard, actually)


 That wasn't intentionally made...

 Intentional or not, do you have any idea how it might have gotten
 there? Or what you did that might have caused things to look there?

 If we knew more, we could tell you more about how to fix it, and even
 how better to do what you had been trying to do.


 I must admit that this is my lame fault:

 I had some issues with pidgin-otr/libotr so I stupidly thought that I can
 get me latest version myslef.
 *But* when I run configure; make; make install it wasn't working as expected
 so I just stupidly tried to issue make uninstall and that probably made this
 problem

Yeah, it was probably the 'make uninstall' that revealed the issue.
The 'make install' didn't help. :)



 I feel so embarrased
 S

Bah. Pretty sure everyone expected something like this.


(But would you mind not using whitespace to quote previous
conversations? It looks like crap when it gets collapsed to
plaintext.)

-- 
:wq



Re: [gentoo-user] Broken GCC

2012-09-07 Thread Andrey Moshbear
On Fri, Sep 7, 2012 at 1:24 PM, Samuraiii samurai.no.d...@gmail.com wrote:

 Are there any tips for gentoo amd64 with core2duo?
 Google doesn't seem to give any usable answers (I don't need configure
 binhost yet)

While I can make a binpkg for gcc:{4,5,4.6,4.7} or glibc-2.15-r2 on my
c2d-penryn laptop, my adsl upload rate is pretty slow, so it'll take a
while to upload it to my VPS.

In terms of guides, a 5-second googling showed up:
https://wiki.gentoo.org/wiki/Binary_package_guide
http://en.gentoo-wiki.com/wiki/Using_Portage_BINHOST



Re: Re: [gentoo-user] Fix for getting libxml2 compiled!

2012-09-07 Thread Doug Hunley
On Thu, Sep 6, 2012 at 11:32 AM, Roland Häder r.hae...@web.de wrote:
 Weird, I'm on 2.8.0-r1 and didn't have to do any hoop jumping to get
 there (~amd64).
 Yes, it is really weird thing. :/ I use x86 (i686, my laptop does only 
 support 32 bit; it is a Thinkpad R51).

Did you check b.g.o to see if anyone else files this issue? I suppose
it could be a USE flag difference, or maybe a dependent software
package version difference..


-- 
Douglas J Hunley (doug.hun...@gmail.com)
Twitter: @hunleyd   Web:
douglasjhunley.com
G+: http://goo.gl/sajR3



Re: [gentoo-user] Re: aligning SSD partitions

2012-09-07 Thread Neil Bothwick
On Fri, 07 Sep 2012 07:25:42 -0500, Dale wrote:

 Since when you run emerge it loads everything into ram,
 regardless of whether portages work directory is on tmpfs or not, it
 doesn't matter.  This test is NOT about portage loading things into ram
 WHILE emerging, it was about having the work directory on tmpfs and
 speed.

Of course it doesn't. The tarball is unpacked from DISTDIR to the work
directory. Then individual source files in the work directory are
compiled to object files, also in the work directory. Then those object
files are linked to executables, also in the work directory. Finally,
everything is install to an image directory, also on TMPDIR. The speed of
the work directory would appear to be of critical importance - but it
isn't, as shown by your tests. The reason for this, and the point
everyone else has been making, is because the files are cached by the
kernel, so the filesystem is less important if you have enough RAM.


-- 
Neil Bothwick

30 minutes of begging is not considered foreplay.


signature.asc
Description: PGP signature


Re: [gentoo-user] GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

2012-09-07 Thread Neil Bothwick
On Fri, 07 Sep 2012 19:26:40 +0200, Michael Hampicke wrote:

 Well, then this simple little command should help you refresh your
 memory. It shows every install and uninstall of gcc on your system.
 
 With 8 years of emerge.log you are good to go
 
 genlop -ul | grep 'sys-devel/gcc-[0-9]'

And this week's prize for unnecessary use of pipes and grep goes to...

genlop -u sys-devel/gcc

:P


-- 
Neil Bothwick

BING But It's Not Google


signature.asc
Description: PGP signature


Re: [gentoo-user] Broken GCC

2012-09-07 Thread Samuraiii



On 2012-09-07 19:38, Andrey Moshbear wrote:
 On Fri, Sep 7, 2012 at 1:24 PM, Samuraiii samurai.no.d...@gmail.com wrote:

 Are there any tips for gentoo amd64 with core2duo?
 Google doesn't seem to give any usable answers (I don't need configure
 binhost yet)
 While I can make a binpkg for gcc:{4,5,4.6,4.7} or glibc-2.15-r2 on my
 c2d-penryn laptop, my adsl upload rate is pretty slow, so it'll take a
 while to upload it to my VPS.

 In terms of guides, a 5-second googling showed up:
 https://wiki.gentoo.org/wiki/Binary_package_guide
 http://en.gentoo-wiki.com/wiki/Using_Portage_BINHOST

I have an idea waht about make chrooted mini install just to compile gcc
glibc and binutils... wouldn't take so long time than upload or emerge
-NuDe @world...

-- 
Samuraiii
e-mail: samurai.no.d...@gmail.com mailto:samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EAop=vindexfingerprint=onexact=on
(obtainable on http://pgp.mit.edu)
Full copy of public timestamp block http://publictimestamp.org
signatures id- (from ) is included in header of html.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

2012-09-07 Thread Michael Hampicke
Am 07.09.2012 21:52, schrieb Neil Bothwick:
 On Fri, 07 Sep 2012 19:26:40 +0200, Michael Hampicke wrote:
 
 Well, then this simple little command should help you refresh your
 memory. It shows every install and uninstall of gcc on your system.

 With 8 years of emerge.log you are good to go

 genlop -ul | grep 'sys-devel/gcc-[0-9]'
 
 And this week's prize for unnecessary use of pipes and grep goes to...
 
 genlop -u sys-devel/gcc
 
 :P
 
 

Nope, we not only need the time when gcc was unmerged (-u), but also
when it was merged (-l). When there's little time difference between
merge and unmerge we can assume, that portage auto-cleaned the old
version of gcc. If you combine -u and -l you need to grep (to be exact
sys-devel/gcc-[0-9], because of sys-devel/gcc-config and
sys-devel/gcc-apple).

Yeehaw cowboy :) :)



Re: [gentoo-user] GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

2012-09-07 Thread Neil Bothwick
On Fri, 07 Sep 2012 23:14:05 +0200, Michael Hampicke wrote:

  genlop -ul | grep 'sys-devel/gcc-[0-9]'  
  
  And this week's prize for unnecessary use of pipes and grep goes to...
  
  genlop -u sys-devel/gcc

 Nope, we not only need the time when gcc was unmerged (-u), but also
 when it was merged (-l). When there's little time difference between
 merge and unmerge we can assume, that portage auto-cleaned the old
 version of gcc. If you combine -u and -l you need to grep (to be exact
 sys-devel/gcc-[0-9], because of sys-devel/gcc-config and
 sys-devel/gcc-apple).

genlop, unlike qlop, does exact matching by default, so gcc mtches only
gcc, not gcc-config (use -s if you want that). When you give a package
name all merges are shown by default (-l is to show the full
history), so the command I gave does what you want, like this

 Thu Jun 21 01:45:05 2012  sys-devel/gcc-4.5.3-r2
 Thu Jun 21 01:45:33 2012  sys-devel/gcc-4.5.3-r2
 Mon Jul 16 10:30:01 2012  sys-devel/gcc-4.5.3-r2
 Mon Jul 16 10:30:32 2012  sys-devel/gcc-4.5.4
 Thu Sep  6 11:24:27 2012  sys-devel/gcc-4.6.3
 Thu Sep  6 11:24:45 2012  sys-devel/gcc-4.6.3
 Thu Sep  6 11:26:15 2012  sys-devel/gcc-4.5.4
 Thu Sep  6 11:26:43 2012  sys-devel/gcc-4.5.4

Except it is coloured by default when outputting to a terminal, merges in
green, unmerges in red. Using -l and then grep is saying show me
everything, oh no, cut out anything that's not gcc rather than show me
all gcc merges and unmerges.


-- 
Neil Bothwick

There's no place like http://www.home.com


signature.asc
Description: PGP signature


Re: [gentoo-user] GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

2012-09-07 Thread Michael Hampicke
2012/9/8 Neil Bothwick n...@digimed.co.uk

 On Fri, 07 Sep 2012 23:14:05 +0200, Michael Hampicke wrote:

   genlop -ul | grep 'sys-devel/gcc-[0-9]'
  
   And this week's prize for unnecessary use of pipes and grep goes to...
  
   genlop -u sys-devel/gcc

  Nope, we not only need the time when gcc was unmerged (-u), but also
  when it was merged (-l). When there's little time difference between
  merge and unmerge we can assume, that portage auto-cleaned the old
  version of gcc. If you combine -u and -l you need to grep (to be exact
  sys-devel/gcc-[0-9], because of sys-devel/gcc-config and
  sys-devel/gcc-apple).

 genlop, unlike qlop, does exact matching by default, so gcc mtches only
 gcc, not gcc-config (use -s if you want that). When you give a package
 name all merges are shown by default (-l is to show the full
 history), so the command I gave does what you want, like this

  Thu Jun 21 01:45:05 2012  sys-devel/gcc-4.5.3-r2
  Thu Jun 21 01:45:33 2012  sys-devel/gcc-4.5.3-r2
  Mon Jul 16 10:30:01 2012  sys-devel/gcc-4.5.3-r2
  Mon Jul 16 10:30:32 2012  sys-devel/gcc-4.5.4
  Thu Sep  6 11:24:27 2012  sys-devel/gcc-4.6.3
  Thu Sep  6 11:24:45 2012  sys-devel/gcc-4.6.3
  Thu Sep  6 11:26:15 2012  sys-devel/gcc-4.5.4
  Thu Sep  6 11:26:43 2012  sys-devel/gcc-4.5.4

 Except it is coloured by default when outputting to a terminal, merges in
 green, unmerges in red. Using -l and then grep is saying show me
 everything, oh no, cut out anything that's not gcc rather than show me
 all gcc merges and unmerges.


I tried your command before answering you - so I don't look like a fool :)
And I am 100% certain that genlop -u package only showed unmerges when I
tested it on my workstation (that's the reason I added -l | grep). However,
just now I tested it again on my notebook, and it works like you described
it (and like how you would expect it to work). Have to try it again on my
WS on monday.

Anyhoo, my point was to show the OP how he could check for himself that
portage always unmerges older packages when upgrading to newer versions in
the same slot - and for that, both solutions work.

Going to bed now


Re: [gentoo-user] Broken GCC

2012-09-07 Thread Andrey Moshbear
On Fri, Sep 7, 2012 at 5:03 PM, Samuraiii samurai.no.d...@gmail.com wrote:



 On 2012-09-07 19:38, Andrey Moshbear wrote:
 On Fri, Sep 7, 2012 at 1:24 PM, Samuraiii samurai.no.d...@gmail.com wrote:

 Are there any tips for gentoo amd64 with core2duo?
 Google doesn't seem to give any usable answers (I don't need configure
 binhost yet)
 While I can make a binpkg for gcc:{4,5,4.6,4.7} or glibc-2.15-r2 on my
 c2d-penryn laptop, my adsl upload rate is pretty slow, so it'll take a
 while to upload it to my VPS.

 In terms of guides, a 5-second googling showed up:
 https://wiki.gentoo.org/wiki/Binary_package_guide
 http://en.gentoo-wiki.com/wiki/Using_Portage_BINHOST

 I have an idea waht about make chrooted mini install just to compile gcc
 glibc and binutils... wouldn't take so long time than upload or emerge
 -NuDe @world...

Download stage1, chroot into it, and run
/usr/portage/scripts/bootstrap.sh, then exit the chroot and copy
usr/include recursively.
However, you will still need to do emerge -e @world because the rest
of /usr/include may still be dysfunctional.

Also, -D -N -u is redundant when combined with -e. -e implies -D and
-N -u is pointless when -e is used, since everything is already
included.



[gentoo-user] Heads-up; bash now uses readline USE flag

2012-09-07 Thread Walter Dnes
  I updated world yesterday, and discovered that bash functionality was
severly degraded on my machine.  No up-arrow to scroll through history,
no tab-completion, etc, etc.  A bit of Google searching turned up the
fact that bash no-longer uses an internal readline library, but now
depends on the readline USE flag for this functionality.  If you don't
have readline globally enabled set...

app-shells/bash readline

...in package.use.

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