[Bug 214173] gcc48 doesn't accept -march=nehalem

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 3 18:24:17 UTC 2016


            Bug ID: 214173
           Summary: gcc48 doesn't accept -march=nehalem
           Product: Base System
           Version: 11.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: conf
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: lantw44 at gmail.com
                CC: freebsd-amd64 at FreeBSD.org
                CC: freebsd-amd64 at FreeBSD.org

/usr/share/mk/bsd.cpu.mk in FreeBSD 11 unconditionally convert CPUTYPE=corei7
to CPUTYPE=nehalem. It can cause error in ports built with the default version
of gcc, including gcc itself, ghc, and other ports with USE_GCC=yes.

A simple test:

$ echo 'int main(){}' > main.c
$ gcc48 -march=corei7 main.c && echo "OK"
$ gcc48 -march=nehalem main.c && echo "OK"
main.c:1:0: error: bad value (nehalem) for -march= switch
 int main(){}

You are receiving this mail because:
You are on the CC list for the bug.

More information about the freebsd-amd64 mailing list