Re: [gentoo-user] chage can't open /etc/passwd [SOLVED]
On Tue, 2007-09-18 at 18:56 -0500, Albert Hopkins wrote: [...] I think i'm going to have to use gdb (yeck) and step through the program. Well, I hate to sound like a ricer, but apparently it's my CFLAGS :| CFLAGS=-O2 -march=k8 -msse3 -ggdb -pipe -fomit-frame-pointer I have an Athlon 64 X2, and according to the Gentoo Wiki my CFLAGS are safe. My CPU supports SSE3 (according to /proc/cpuinfo). Oddly enough, I tried taking out -msse3 but no-go. I've tried a few permutations of those flags, but the only way I was able to get it to work is to take out -O2 (even *just* having CFLAGS=-O2 doesn't work). So now the question is: GCC bug?[1] CPU bug?[2] Wiki bug?[3] Anyway I just wanted to thank everyone who collectively scratched their heads with me :-) 1. GCC 4.2.0 2. AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ 3. http://gentoo-wiki.com/Safe_Cflags#Athlon_64_X2_.28AMD.29 -- Albert W. Hopkins -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] chage can't open /etc/passwd [SOLVED]
Quoting Albert Hopkins [EMAIL PROTECTED]: On Tue, 2007-09-18 at 18:56 -0500, Albert Hopkins wrote: Well, I hate to sound like a ricer, but apparently it's my CFLAGS :| CFLAGS=-O2 -march=k8 -msse3 -ggdb -pipe -fomit-frame-pointer I have an Athlon 64 X2, Hmmm... I have one of those. Try: CFLAGS=-march=athlon64 -O2 -fomit-frame-pointer -pipe This message was sent using IMP, the Internet Messaging Program. -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] chage can't open /etc/passwd [SOLVED]
On Tue, 2007-09-18 at 22:08 -0300, Norberto Bensa wrote: Hmmm... I have one of those. Try: CFLAGS=-march=athlon64 -O2 -fomit-frame-pointer -pipe No, doesn't work. I'm going to try downgrading GCC (w/o any optimizations), re-compiling shadow with my original CFLAGS and see what happens. -- Albert W. Hopkins -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] chage can't open /etc/passwd [SOLVED]
On Tue, 2007-09-18 at 20:16 -0500, Albert Hopkins wrote: No, doesn't work. I'm going to try downgrading GCC (w/o any optimizations), re-compiling shadow with my original CFLAGS and see what happens. # grep ^CFLAGS /etc/make.conf CFLAGS=-O2 -march=k8 -msse3 -ggdb -pipe -fomit-frame-pointer # gcc-config i686-pc-linux-gnu-4.2.0 # source /etc/profile # chage -l marduk chage: can't open password file # gcc-config i686-pc-linux-gnu-4.1.2 # source /etc/profile # emerge -1 shadow /dev/null # chage -l marduk Last password change: Sep 18, 2007 Password expires: Nov 17, 2007 Password inactive : never Account expires : never Minimum number of days between password change : 0 Maximum number of days between password change : 60 Number of days of warning before password expires : 14 Seems to be a problem with GCC. -- Albert W. Hopkins -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] chage can't open /etc/passwd [SOLVED]
Quoting Albert Hopkins [EMAIL PROTECTED]: Seems to be a problem with GCC. Or with your CFLAGS: [EMAIL PROTECTED] ~ $ cat /proc/cpuinfo | grep ^model\ name | head -n 1 model name : AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ [EMAIL PROTECTED] ~ $ grep CFLAG /etc/make.conf CFLAGS=-march=athlon64 -O2 -fomit-frame-pointer -pipe [EMAIL PROTECTED] ~ $ gcc --version gcc (GCC) 4.2.0 (Gentoo 4.2.0 p1.4) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [EMAIL PROTECTED] ~ $ chage -l nbensa Last password change: Dec 23, 2006 Password expires: never Password inactive : never Account expires : never Minimum number of days between password change : 0 Maximum number of days between password change : 9 Number of days of warning before password expires : 7 This message was sent using IMP, the Internet Messaging Program. -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] chage can't open /etc/passwd [SOLVED]
Norberto Bensa skrev: Quoting Albert Hopkins [EMAIL PROTECTED]: On Tue, 2007-09-18 at 18:56 -0500, Albert Hopkins wrote: Well, I hate to sound like a ricer, but apparently it's my CFLAGS :| CFLAGS=-O2 -march=k8 -msse3 -ggdb -pipe -fomit-frame-pointer I have an Athlon 64 X2, Hmmm... I have one of those. Try: CFLAGS=-march=athlon64 -O2 -fomit-frame-pointer -pipe athlon64 is an alias for k8, it makes no difference if you put one or the other. If you check gcc's code you will see there is many march flags, but only a handful is actually unique at the code level. smime.p7s Description: S/MIME Cryptographic Signature
Re: [gentoo-user] chage can't open /etc/passwd [SOLVED]
On Tue, 2007-09-18 at 23:01 -0300, Norberto Bensa wrote: Or with your CFLAGS: [EMAIL PROTECTED] ~ $ cat /proc/cpuinfo | grep ^model\ name | head -n 1 model name : AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ [EMAIL PROTECTED] ~ $ grep CFLAG /etc/make.conf CFLAGS=-march=athlon64 -O2 -fomit-frame-pointer -pipe Possibly, but it still breaks with your CFLAGS. Even with CFLAGS=-O2 it breaks. According to the Wiki all the optimization flags I'm using should be ok on my arch, and indeed they do work with GCC 4.1. The only thing that's changed relatively recently was the upgrade to GCC 4.2 (and other software). The hardware and CFLAGS have been constant. -- Albert W. Hopkins -- [EMAIL PROTECTED] mailing list