pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/45784
The following reply was made to PR pkg/45784; it has been noted by GNATS.
From: Michai Ramakers <m.ramakers%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/45784
Date: Wed, 24 Jul 2013 19:32:26 +0200
On a relatively clean 6.1.0 install, I find using cpuflags breaks
(pkgsrc) build because of a seemingly unsupported "-march=native"
flag.
---
$ uname -a
NetBSD dwarf.LAN 6.1.0_PATCH NetBSD 6.1.0_PATCH (MIC) #0: Mon Jul 22
22:41:14 UTC 2013 root@:/usr/src/sys/arch/i386/compile/MIC i386
$ cpuflags
-mfpmath=sse -msse3 -march=native
$ cat /etc/mk.conf
.sinclude "/usr/pkg/share/mk/cpuflags.mk"
COPTS?= -pipe ${DEFCOPTS}
CFLAGS+=-pipe
$ echo 'int main( void ) { return 1; }' > c.c
$ cc -march=native c.c
c.c:1:0: error: bad value (native) for -march= switch
$ pkg_info cpuflags | head -n 1
Information for cpuflags-1.42:
$ gcc --version
gcc (NetBSD nb2 20110806) 4.5.3
Copyright (C) 2010 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.
---
I noticed this issue while building lang/perl5 from pkgsrc 2013Q2, but
I hope the above isolates the issue enough (i.e. it is not
package-related).
Michai
Home |
Main Index |
Thread Index |
Old Index