NetBSD Problem Report #25759
Received: (qmail 19291 invoked by uid 605); 31 May 2004 11:12:25 -0000
Message-Id: <200405310605.i4V65sB11329@idlebox.net.bsd>
Date: Mon, 31 May 2004 03:05:54 -0300 (ART)
From: aleyoo@hotmail.com
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: aleyoo@hotmail.com
To: gnats-bugs@gnats.netbsd.org
Subject: cpuflags.mk gives wrong flags, can not compile packages
X-Send-Pr-Version: 3.95
>Number: 25759
>Category: pkg
>Synopsis: cpuflags.mk gives wrong flags, can not compile packages
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: abs
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 31 11:13:00 +0000 2004
>Closed-Date: Tue Jun 08 08:03:03 +0000 2004
>Last-Modified: Tue Jun 08 08:03:03 +0000 2004
>Originator: Alejandro Yoo
>Release: NetBSD 1.6.2
>Organization:
>Environment:
System: NetBSD idlebox.net.bsd 1.6.2 NetBSD 1.6.2 (GENERIC) #0: Tue Feb 10 21:53:10 UTC 2004 autobuild@tgm.netbsd.org:/autobuild/netbsd-1-6-PATCH002/i386/OBJ/autobuild/netbsd-1-6-PATCH002/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
After a fresh install of NetBSD 1.6.2 -with fresh cvsuped pkgsrc-, installing cpuflags (/usr/pkgsrc/devel/cpuflags) with "make install clean clean-depends" makes the system no longer able to compile any packages.
Cpuflags installs correctly, and
.sinclude "/usr/pkg/share/mk/cpuflags.mk"
is added to /etc/mk.conf (which in my case I had to create, because it was a fresh installed system).
Executing "cpuflags" returns:
-march=pentium3 -mno-sse
Trying to compile /usr/pkgsrc/lang/perl58:
What optimizer/debugger flag should be used? [-O2 -march=pentium3 -mno-sse]
Any additional cc flags? [-fno-strict-aliasing -I/usr/pkg/include]
Let me guess what the preprocessor flags are...
Any additional ld flags (NOT including libraries)?
[-Wl,-R/usr/pkg/lib -L/usr/pkg/lib]
Checking your choice of C compiler and flags for coherency...
I've tried to compile and run the following simple program:
#include <stdio.h>
int main() { printf("Ok\n"); return(0); }
I used the command:
gcc -o try -O2 -march=pentium3 -mno-sse -fno-strict-aliasing -I/usr/pkg/include -Wl,-R/usr/pkg/lib -L/usr/pkg/lib try.c -lm -lcrypt
./try
and I got the following output:
cc1: Invalid option `no-sse'
cc1: bad value (pentium3) for -march= switch
I can't compile the test program.
You have a BIG problem. Shall I abort Configure [y]
Ok. Stopping Configure.
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/lang/perl58
*** Error code 1
Stop.
>How-To-Repeat:
Explained above. Other packages return similar errors.
>Fix:
Deleting the .sinclude line from /etc/mk.conf makes de system able to compile packages again, but they are not cpu specific.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->abs
Responsible-Changed-By: recht
Responsible-Changed-When: Thu Jun 3 21:58:18 UTC 2004
Responsible-Changed-Why:
over to maintainer
From: David Brownlee <abs@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/25759 CVS commit: pkgsrc/devel/cpuflags
Date: Sun, 6 Jun 2004 22:59:30 +0000 (UTC)
Module Name: pkgsrc
Committed By: abs
Date: Sun Jun 6 22:59:30 UTC 2004
Modified Files:
pkgsrc/devel/cpuflags: Makefile
pkgsrc/devel/cpuflags/files: cpuflags.NetBSD
Log Message:
Update cpuflags to 0.70
Correctly 'downgrade' -march=pentium3 -mno-sse to -march=pentiumpro
for older compilers. Should address PR pkg/25759
To generate a diff of this commit:
cvs rdiff -r1.72 -r1.73 pkgsrc/devel/cpuflags/Makefile
cvs rdiff -r1.48 -r1.49 pkgsrc/devel/cpuflags/files/cpuflags.NetBSD
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: abs
State-Changed-When: Sun Jun 6 23:00:23 UTC 2004
State-Changed-Why:
cpuflags has been updated and should now handle this case. Could you confirm
if it works for you?
Thanks
From: David Brownlee <abs@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/25759 CVS commit: pkgsrc/doc
Date: Sun, 6 Jun 2004 23:00:04 +0000 (UTC)
Module Name: pkgsrc
Committed By: abs
Date: Sun Jun 6 23:00:04 UTC 2004
Modified Files:
pkgsrc/doc: CHANGES
Log Message:
Update cpuflags to 0.70
Correctly 'downgrade' -march=pentium3 -mno-sse to -march=pentiumpro
for older compilers. Should address PR pkg/25759
To generate a diff of this commit:
cvs rdiff -r1.6169 -r1.6170 pkgsrc/doc/CHANGES
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "alejandro yoo" <aleyoo@hotmail.com>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: Re: pkg/25759
Date: Tue, 08 Jun 2004 00:48:31 -0300
Cpuflags now works, thank you very much.
I noticed that the "-march" flag changed from "pentium3 -mno-sse" to
"pentiumpro".
I have a Celeron Mendocino, is this ok?
Again, thank you.
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
State-Changed-From-To: feedback->closed
State-Changed-By: abs
State-Changed-When: Tue Jun 8 08:02:53 UTC 2004
State-Changed-Why:
All OK.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.